Linux
ovpn: defer key slot crypto freeing to workqueue
In the Linux kernel, the following vulnerability has been resolved: ovpn: defer key slot crypto freeing to workqueue Key slots are released through a kref and the existing release path frees the AEAD transforms from an RCU callback. That is not safe for all crypto implementations: crypto_free_aead can sleep, for example when an async or hardware implementation has teardown work to complete. Use queue_rcu_work for key-slot release. This keeps the RCU grace period needed by lockless key-slot readers, but runs the actual crypto teardown from workqueue context where sleeping is allowed. Once the rcu_work callback runs, pre-existing RCU readers are gone, and the final kref put already proves that no transform user remains, so the worker can release the AEAD transforms and free the slot directly. The previous patch drains ovpn_wq during module exit, so queued key-slot teardown work cannot outlive module text.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8534731dbf2d52a539b94defd06d2a8d3514aacb, < 5cea365559449f2149ab724d33d406e3ec4c00c9
- >= 8534731dbf2d52a539b94defd06d2a8d3514aacb, < 0f77ed5ee91946ea63e29f2e0ff9dc9e722d8da3
- >= 8534731dbf2d52a539b94defd06d2a8d3514aacb, < 2da3dfa1ddfe55a065f484750c83660e3bd4ac00
Fixed in 5cea365559449f2149ab724d33d406e3ec4c00c9, 0f77ed5ee91946ea63e29f2e0ff9dc9e722d8da3, 2da3dfa1ddfe55a065f484750c83660e3bd4ac00
- 6.16
Fixed in 0, 6.18.57, 7.1.10, 7.2
Mitigation
Upgrade Linux to 5cea365559449f2149ab724d33d406e3ec4c00c9 or 0f77ed5ee91946ea63e29f2e0ff9dc9e722d8da3 or 2da3dfa1ddfe55a065f484750c83660e3bd4ac00 or later.
Upgrade Linux to 0 or 6.18.57 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.