Linux
ovpn: fix NULL dereference when killing missing key
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 89d3c0e4612afa1c6429ed68d298e35592fbe208, < a47a080d06ee9d94dc6a2da0fc2b9beeeedb92b3
- >= 89d3c0e4612afa1c6429ed68d298e35592fbe208, < acf32a5dff082044cf0fd9492f3c10b7357c15ee
- >= 89d3c0e4612afa1c6429ed68d298e35592fbe208, < 41d44ac7a61e2f74453af40d4fe1b82af9ea0ada
Fixed in a47a080d06ee9d94dc6a2da0fc2b9beeeedb92b3, acf32a5dff082044cf0fd9492f3c10b7357c15ee, 41d44ac7a61e2f74453af40d4fe1b82af9ea0ada
- 6.16
Fixed in 0, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to a47a080d06ee9d94dc6a2da0fc2b9beeeedb92b3 or acf32a5dff082044cf0fd9492f3c10b7357c15ee or 41d44ac7a61e2f74453af40d4fe1b82af9ea0ada or later.
Upgrade Linux to 0 or 6.18.46 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.