diff options
| author | Ralf Lici <ralf@mandelbit.com> | 2026-07-29 12:21:41 +0200 |
|---|---|---|
| committer | Antonio Quartulli <antonio@openvpn.net> | 2026-08-07 02:12:13 +0200 |
| commit | 41d44ac7a61e2f74453af40d4fe1b82af9ea0ada (patch) | |
| tree | ae670b683dc4ab84f0b6185402285a75dad703dc /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 594d905195024b228c962627ae5ae7c17bd582a4 (diff) | |
ovpn: fix NULL dereference when killing missing key
ovpn_crypto_kill_key assumes both crypto slots are populated and
dereferences each slot before checking it. That is not guaranteed: a
peer can have only one installed key, and the kill path may be asked to
remove a key that is not present.
Read each slot once while holding the crypto state lock, check for NULL
before looking at key_id, and only replace the slot that actually
matches.
Fixes: 89d3c0e4612a ("ovpn: kill key and notify userspace in case of IV exhaustion")
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
