CVE-2026-80753: ovpn: run deferred work on a module-owned workqueue
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-80753 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit 11851cbd60ea1e5abbd97619d69845ead99303d6 and fixed in 7.1.10 with commit bbe81f40582d451ac849b20707784220f33a23bd Issue introduced in 6.16 with commit 11851cbd60ea1e5abbd97619d69845ead99303d6 and fixed in 7.2 with commit e9714db8041763f59dde152c812b96b3de05c6d9
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80753
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ovpn/main.c
drivers/net/ovpn/ovpnpriv.h
drivers/net/ovpn/peer.c
drivers/net/ovpn/tcp.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/bbe81f40582d451ac849b20707784220f33a23bd https://git.kernel.org/stable/c/e9714db8041763f59dde152c812b96b3de05c6d9