Linux
ovpn: finish crypto callback cleanup before peer release
In the Linux kernel, the following vulnerability has been resolved: ovpn: finish crypto callback cleanup before peer release Crypto completion callbacks hold both key-slot and peer references. The peer reference pins the netdev, and dropping the last peer reference can let netdev unregistration and module removal make progress. Do not release that peer reference before the callback has finished its own cleanup. If ovpn_crypto_key_slot_put runs after ovpn_peer_put, it can schedule an RCU callback backed by module text after ovpn_cleanup rcu_barrier has already run. The TX error path also freed the remaining skb after ovpn_peer_put, leaving callback cleanup outside the peer/netdev lifetime window. Release the key slot and free any remaining skb first, then drop the peer reference as the last callback action.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8534731dbf2d52a539b94defd06d2a8d3514aacb, < a3a676495c6419e0cca04d6a67227604e92a3d5a
- >= 8534731dbf2d52a539b94defd06d2a8d3514aacb, < 4b0de8be288f5fbec5d8ee64ed4e8b14bf19b517
- >= 8534731dbf2d52a539b94defd06d2a8d3514aacb, < 9e163917a86c6adfbe150e13f4c73653a54616de
Fixed in a3a676495c6419e0cca04d6a67227604e92a3d5a, 4b0de8be288f5fbec5d8ee64ed4e8b14bf19b517, 9e163917a86c6adfbe150e13f4c73653a54616de
- 6.16
Fixed in 0, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to a3a676495c6419e0cca04d6a67227604e92a3d5a or 4b0de8be288f5fbec5d8ee64ed4e8b14bf19b517 or 9e163917a86c6adfbe150e13f4c73653a54616de 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.