CRITICAL Introduced in 4.3
openvswitch ConntrackHelper UAF
CVE-2026-98490
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.8MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: conntrack: fix helper UAF due to extensions realloc While calling the helpers, a raw pointer to the extensions area is wired into expectations list: -> nf_ct_helper() -> helper->help() -> nf_ct_expect_related_report() -> nf_ct_expect_insert() -> hlist_add_head_rcu(&exp->lnode, &master_help->expectations) In case the connection is not confirmed yet, more extensions can be added afterwards with *_ext_add() calls reallocating the extension space and leaving the now invalid pointer in the expectations list that is later accessed while removing the expectation. Make sure that helpers are called at the end after all the other extensions are already added. Note that the helper rejection now leaves the mark and labels set, but that's not different from how the NAT was handled before or how the mark and the labels were handled on confirmation failure. And there are no atomicity guarantees provided by the API anyway.
02KernelScan AI Analysis
Risk summary
A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can configure Open vSwitch flows that use conntrack helpers, triggering a use-after-free in the kernel's connection tracking subsystem. This can lead to kernel memory corruption, privilege escalation, or denial of service. Products running OVS with conntrack helpers enabled — especially container hosts, multi-tenant environments, or systems granting NET_ADMIN to untrusted workloads — are at risk.
Vulnerability analysis
When an Open vSwitch flow uses a conntrack helper (e.g., ct(helper=ftp)), the helper is invoked during packet processing and may register expectations for related connections. These expectations store a direct pointer into the connection's extension area. In the original code, the helper was called before all extensions were fully allocated for unconfirmed connections; later, when the connection was committed, additional extensions were added, causing the extension area to be reallocated. The expectation list retained the now-stale pointer, creating a use-after-free when the expectation was later accessed or removed. The fix reorders the helper invocation to occur only after all extensions have been added — for confirmed connections during lookup, and for unconfirmed connections during the commit phase after nf_conn_act_ct_ext_add() completes. This ensures the extension area is stable before any helper can wire pointers into the expectations list. The vulnerability is reachable by any local user or container process with CAP_NET_ADMIN (e.g., via user namespaces) that can install OVS flows with helper attributes; it does not require physical access or network-level interaction beyond the packets that match the crafted flow.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.3 | 5.10.273 | f53d13a286fb |
| 5.15 | 4.3 | 5.15.224 | 84d47a83b7b7 |
| 6.1 | 4.3 | 6.1.191 | 9f308197395c |
| 6.12 | 4.3 | 6.12.112 | afcf36262519 |
| 6.18 | 4.3 | 6.18.55 | 5f23080a625d |
| 6.6 | 4.3 | 6.6.160 | 18866dc1f525 |
| 7.2 | 4.3 | 7.2.9 | e02a83bb0b7a |
| mainline | 4.3 | 7.3 | 1a4151e6be57 |
| cip/6.12 | 4.3 | 6.12.112-cip33 | afcf36262519 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip116) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |