Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98320 Overview
CVE-2026-98320 is a use-after-free vulnerability in the Linux kernel's netfilter flowtable subsystem. The flaw stems from nf_ct_put() releasing the connection tracking (ct->ext) extension area immediately, while RCU typesafe semantics permit the flowtable datapath to reference a stale or incorrect conntrack entry. A local attacker with low privileges can trigger memory corruption through the netfilter flowtable code path, leading to potential kernel compromise.
Critical Impact
Local attackers can exploit this kernel memory safety issue to achieve privilege escalation, kernel information disclosure, or system crashes affecting confidentiality, integrity, and availability.
Affected Products
- Linux kernel netfilter subsystem (nf_flow_table)
- Multiple stable Linux kernel branches referenced in upstream commits
- Distributions shipping kernels with netfilter flowtable support enabled
Discovery Timeline
- 2026-10-06 - CVE-2026-98320 published to NVD
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-98320
Vulnerability Analysis
The vulnerability resides in the netfilter flowtable datapath, which accelerates connection tracking by caching flow entries. When nf_ct_put() is invoked, it immediately releases the ct->ext area that holds connection tracking extensions. However, the flowtable datapath relies on RCU (Read-Copy-Update) typesafe semantics to access conntrack entries concurrently.
Because the extension area is freed before the RCU grace period completes, concurrent readers in the flowtable fast path can dereference freed memory or access a reused conntrack structure. This classifies the issue as a Use-After-Free condition in kernel memory ([CWE-416] class). The upstream fix holds a reference on ct until the flow entry is released after an RCU grace period, and adds rcu_barrier() on the module exit path to ensure pending flow entries are released before module teardown.
Root Cause
The root cause is a lifetime mismatch between conntrack extension memory and RCU-protected flowtable readers. nf_ct_put() performed immediate deallocation of ct->ext without waiting for in-flight readers in the flowtable datapath to complete, violating the invariants assumed by RCU typesafe-by-kind semantics.
Attack Vector
Exploitation requires local access and low privileges, with no user interaction. An attacker triggers concurrent traffic through a configured netfilter flowtable while forcing conntrack teardown events. Winning the race causes the flowtable datapath to operate on a freed or recycled conntrack extension, enabling kernel memory corruption that can be shaped into privilege escalation or denial of service.
No verified public exploit code is available. See the upstream kernel commits referenced below for the authoritative technical fix: Kernel Commit 12c1ac2, Kernel Commit 61c6688, and Kernel Commit eed6997.
Detection Methods for CVE-2026-98320
Indicators of Compromise
- Unexpected kernel oops or panic messages referencing nf_flow_table, nf_conntrack, or nf_ct_ext in dmesg or /var/log/kern.log.
- KASAN use-after-free reports originating from the netfilter flowtable datapath on instrumented kernels.
- Sudden conntrack table instability or flow offload errors coinciding with privilege escalation attempts.
Detection Strategies
- Audit running kernel version against the fixed stable branches referenced in the upstream commits.
- Enable KASAN or KFENCE in test environments to surface use-after-free conditions in nf_conntrack extension memory.
- Correlate netfilter configuration changes with kernel crash telemetry to identify attempted race-condition exploitation.
Monitoring Recommendations
- Forward kernel ring buffer logs to a centralized logging platform and alert on BUG:, KASAN:, or general protection fault entries referencing netfilter symbols.
- Monitor for unexpected loading or unloading of nf_flow_table and related modules on production hosts.
- Track local privilege escalation indicators such as unexpected UID transitions following kernel instability events.
How to Mitigate CVE-2026-98320
Immediate Actions Required
- Apply the stable kernel update that includes the netfilter flowtable reference-counting fix as soon as your distribution ships it.
- Inventory hosts that use netfilter flowtable offload (nft ... flow offload) and prioritize them for patching.
- Restrict local shell access and container escape surfaces on multi-tenant systems until patches are deployed.
Patch Information
The upstream fix holds a reference on the conntrack entry until the flow is released after an RCU grace period, and adds rcu_barrier() on module exit to drain pending flow entries. Fixes are available in the following kernel commits: 12c1ac2, 61c6688, 8274cdc, 93ff159, a43cd2b, d9e6175, e75a9fa, and eed6997.
Workarounds
- Disable netfilter flow offload rules in nftables configurations where they are not operationally required.
- Unload the nf_flow_table module on hosts that do not require accelerated connection tracking.
- Tighten local access controls and seccomp policies to reduce the attacker's ability to trigger the race condition.
# Verify current kernel and check if nf_flow_table is loaded
uname -r
lsmod | grep nf_flow_table
# Temporarily unload the module if unused (requires no active flowtable rules)
sudo modprobe -r nf_flow_table
# List nftables rules that reference flow offload
sudo nft list ruleset | grep -i "flow offload"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

