diff options
| author | 2026-07-29 12:21:41 +0200 | |
|---|---|---|
| committer | 2026-08-07 02:12:13 +0200 | |
| commit | 41d44ac7a61e2f74453af40d4fe1b82af9ea0ada (patch) | |
| tree | ae670b683dc4ab84f0b6185402285a75dad703dc /tools/lib/python/kdoc/python_version.py | |
| parent | af_unix: Unlink scc_entry in unix_del_edge(). (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/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
