- Fix Race Condition in autr_tp_create(),

reported by X41 D-Sec.
This commit is contained in:
W.C.A. Wijngaards 2019-11-20 11:01:56 +01:00
parent d79d75538b
commit 1fa40654d2
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,8 @@
20 November 2019: Wouter
- Fix Out of Bounds Read in rrinternal_get_owner(),
reported by X41 D-Sec.
- Fix Race Condition in autr_tp_create(),
reported by X41 D-Sec.
19 November 2019: Wouter
- Fix CVE-2019-18934, shell execution in ipsecmod.

View file

@ -370,10 +370,10 @@ autr_tp_create(struct val_anchors* anchors, uint8_t* own, size_t own_len,
free(tp);
return NULL;
}
lock_basic_unlock(&anchors->lock);
lock_basic_init(&tp->lock);
lock_protect(&tp->lock, tp, sizeof(*tp));
lock_protect(&tp->lock, tp->autr, sizeof(*tp->autr));
lock_basic_unlock(&anchors->lock);
return tp;
}