CVE-2026-98491: net: openvswitch: conntrack: avoid modifying shared unconfirmed ct entry
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: openvswitch: conntrack: avoid modifying shared unconfirmed ct entry
In a case where skb with an unconfirmed ct entry gets cloned, we may end up committing both but with different sets of extensions.
The series of events:
1. The first clone wants to commit and runs the helpers wiring up the extension pointer into the expectation list.
2. Then it looses the confirmation keeping the entry unconfirmed.
3. Second clone now wants to commit labels and adds the new extension for that breaking the pointer in the expectation list causing UAF on the destruction path later.
While this is possible to trigger, there should be no practical network pipeline where committing both clones without modifications into the same zone is needed. So, let's just reset the entry in case for some reason we got an skb with a shared one during commit. This doesn't affect any known use cases, but avoids any potential problems with sharing and modification of the unconfirmed ct entry.
The fixes tag points to the introduction of helpers, since that's the main UAF trigger for the sharing.
The Linux kernel CVE team has assigned CVE-2026-98491 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 5.10.271 with commit e0fa5ea434b7e8467ef3adc64e3858b1ca2a642d Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 5.15.222 with commit 37e3c878b183a115f9a114067f9ef3b408ad27fb Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 6.1.189 with commit 707c2dc77891a874f4e8c52c285a511079164ec8 Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 6.6.158 with commit de41ee24f77b0fc45397db3e277cae2adbd43dfe Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 6.12.112 with commit 55e5256adf3940e71802e2f749cacf81518726b0 Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 6.18.55 with commit e2829ae5459ddb5fce526b2e84697edf6c0c3cef Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 7.2.9 with commit 457e0df1b5711fbeb7ba1b6bfd826f5ef30e7e55 Issue introduced in 4.3 with commit cae3a2627520c3795b54533c5328b77af3405dbe and fixed in 7.3-rc5 with commit 26b2bd70d22457556e2fa01cbf1192cb1a94d619
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-98491
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:
include/net/netfilter/nf_conntrack.h
net/openvswitch/conntrack.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/e0fa5ea434b7e8467ef3adc64e3858b1ca2a642d https://git.kernel.org/stable/c/37e3c878b183a115f9a114067f9ef3b408ad27fb https://git.kernel.org/stable/c/707c2dc77891a874f4e8c52c285a511079164ec8 https://git.kernel.org/stable/c/de41ee24f77b0fc45397db3e277cae2adbd43dfe https://git.kernel.org/stable/c/55e5256adf3940e71802e2f749cacf81518726b0 https://git.kernel.org/stable/c/e2829ae5459ddb5fce526b2e84697edf6c0c3cef https://git.kernel.org/stable/c/457e0df1b5711fbeb7ba1b6bfd826f5ef30e7e55 https://git.kernel.org/stable/c/26b2bd70d22457556e2fa01cbf1192cb1a94d619