CVE-2026-31678: openvswitch: defer tunnel netdev_put to RCU release
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
openvswitch: defer tunnel netdev_put to RCU release
ovs_netdev_tunnel_destroy() may run after NETDEV_UNREGISTER already detached the device. Dropping the netdev reference in destroy can race with concurrent readers that still observe vport->dev.
Do not release vport->dev in ovs_netdev_tunnel_destroy(). Instead, let vport_netdev_free() drop the reference from the RCU callback, matching the non-tunnel destroy path and avoiding additional synchronization under RTNL.
The Linux kernel CVE team has assigned CVE-2026-31678 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.3 with commit a9020fde67a6eb77f8130feff633189f99264db1 and fixed in 6.1.168 with commit 9d56aced21fb9c104e8a3f3be9b21fbafe448ffc Issue introduced in 4.3 with commit a9020fde67a6eb77f8130feff633189f99264db1 and fixed in 6.6.131 with commit 42f0d3d81209654c08ffdde5a34b9b92d2645896 Issue introduced in 4.3 with commit a9020fde67a6eb77f8130feff633189f99264db1 and fixed in 6.12.80 with commit bbe7bd722bfaea36aab3da6cc60fb4a05c644643 Issue introduced in 4.3 with commit a9020fde67a6eb77f8130feff633189f99264db1 and fixed in 6.18.21 with commit 98b726ab5e2a4811e27c28e4d041f75bba147eab Issue introduced in 4.3 with commit a9020fde67a6eb77f8130feff633189f99264db1 and fixed in 6.19.11 with commit b8c56a3fc5d879c0928f207a756b0f067f06c6a8 Issue introduced in 4.3 with commit a9020fde67a6eb77f8130feff633189f99264db1 and fixed in 7.0 with commit 6931d21f87bc6d657f145798fad0bf077b82486c
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-31678
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:
net/openvswitch/vport-netdev.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/9d56aced21fb9c104e8a3f3be9b21fbafe448ffc https://git.kernel.org/stable/c/42f0d3d81209654c08ffdde5a34b9b92d2645896 https://git.kernel.org/stable/c/bbe7bd722bfaea36aab3da6cc60fb4a05c644643 https://git.kernel.org/stable/c/98b726ab5e2a4811e27c28e4d041f75bba147eab https://git.kernel.org/stable/c/b8c56a3fc5d879c0928f207a756b0f067f06c6a8 https://git.kernel.org/stable/c/6931d21f87bc6d657f145798fad0bf077b82486c