ovpn: run deferred work on a module-owned workqueue
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b5fe67111e63a8a81ec31056c4475509076fd266, Kernel bbe81f40582d451ac849b20707784220f33a23bd and Kernel e9714db8041763f59dde152c812b96b3de05c6d9.
In the Linux kernel, the following vulnerability has been resolved: ovpn: run deferred work on a module-owned workqueue ovpn queues several work items whose callbacks execute module text. These works currently run on the global system workqueues, so module exit has no driver-owned drain point that guarantees the callbacks have fully returned before the module text can be freed. Object references protect the objects used by the callbacks, but they do not prove that a workqueue function has returned. In particular, a worker can drop the final reference that unblocks device teardown while it is still executing ovpn code. Add a module-owned workqueue and queue all ovpn work items on it. During module exit, unregister rtnl and netlink first, flush the workqueue so ordinary ovpn workers finish, run the final RCU barrier, and destroy the workqueue last. This keeps the workqueue available for cleanup work queued from RCU callbacks, while ensuring no ovpn work item can outlive the module text. The per-device delayed keepalive work remains explicitly disabled during netdev teardown (disable_delayed_work_sync in ndo_uninit), since flush_workqueue does not flush delayed work that is still only pending on its timer.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=11851cbd60ea1e5abbd97619d69845ead99303d6 <b5fe67111e63a8a81ec31056c4475509076fd266, >=11851cbd60ea1e5abbd97619d69845ead99303d6 <bbe81f40582d451ac849b20707784220f33a23bd, >=11851cbd60ea1e5abbd97619d69845ead99303d6 <e9714db8041763f59dde152c812b96b3de05c6d9 | b5fe67111e63a8a81ec31056c4475509076fd266, bbe81f40582d451ac849b20707784220f33a23bd, e9714db8041763f59dde152c812b96b3de05c6d9 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket