# CVE-2026-80520: ovpn: fix NULL dereference when killing missing key

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-08-26T14:37:01.983Z
- Modified: 2026-08-27T06:17:30.450Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 89d3c0e4612afa1c6429ed68d298e35592fbe208 before a47a080d06ee9d94dc6a2da0fc2b9beeeedb92b3; from 89d3c0e4612afa1c6429ed68d298e35592fbe208 before acf32a5dff082044cf0fd9492f3c10b7357c15ee; from 89d3c0e4612afa1c6429ed68d298e35592fbe208 before 41d44ac7a61e2f74453af40d4fe1b82af9ea0ada; 6.16 (not affected: before 6.16; from 6.18.46 up to 6.18.*; from 7.1.10 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/a47a080d06ee9d94dc6a2da0fc2b9beeeedb92b3>
- <https://git.kernel.org/stable/c/acf32a5dff082044cf0fd9492f3c10b7357c15ee>
- <https://git.kernel.org/stable/c/41d44ac7a61e2f74453af40d4fe1b82af9ea0ada>

## Sources

- CVE List: [CVE-2026-80520](https://www.cve.org/CVERecord?id=CVE-2026-80520), CVE Terms of Use, modified 2026-08-27
- NVD: [CVE-2026-80520](https://nvd.nist.gov/vuln/detail/CVE-2026-80520), Public domain, modified 2026-08-27

---

Page: https://cve.day/CVE-2026-80520 · Whole record: https://cve.day/CVE-2026-80520.json · Rebuilt by cve.day 2026-11-25T22:59:35.381Z
