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-97609 Overview
CVE-2026-97609 is a use-after-free vulnerability in the Linux kernel's netfilter connection tracking timeout (cttimeout) subsystem. The flaw exists in the nfnetlink_cttimeout module, where cttimeout_exit() unregisters per-net operations before clearing the timeout hook. A race between module unload on one CPU and nf_ct_set_timeout() on another CPU allows a reader protected only by rcu_read_lock() to dereference freed per-net storage through ctnl_timeout_find_get(). KASAN confirmed the slab-use-after-free during policy lookup via xt_ct_tg_check().
Critical Impact
Local attackers with the ability to trigger netfilter configuration and module unload can corrupt kernel memory, leading to privilege escalation or denial of service.
Affected Products
- Linux kernel builds including the nfnetlink_cttimeout module
- Distributions shipping the vulnerable netfilter connection tracking timeout code prior to the fix commits
- Systems where CONFIG_NF_CT_NETLINK_TIMEOUT is enabled
Discovery Timeline
- 2026-09-25 - CVE-2026-97609 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97609
Vulnerability Analysis
The vulnerability is a use-after-free [CWE-416] triggered by an ordering bug in the module teardown path of nfnetlink_cttimeout. The function nf_ct_set_timeout() dereferences the global nf_ct_timeout_hook and calls h->timeout_find_get() under rcu_read_lock(). The lookup resolves to ctnl_timeout_find_get(), which reads the per-net timeout list via nfct_timeout_pernet().
On module unload, cttimeout_exit() invokes unregister_pernet_subsys() before clearing the hook pointer. The per-net structure is freed by ops_undo_list() while the hook remains visible to concurrent readers. A reader that enters nf_ct_set_timeout() after the free observes a stale hook that references freed memory. KASAN reporting shows the dangling read inside ctnl_timeout_find_get+0x271/0x2a0 originating from an xt_ct_tg_check() call issued via do_ipt_set_ctl().
Root Cause
The root cause is incorrect teardown ordering combined with RCU protection that is not synchronized with the free. The hook must be cleared and existing RCU readers drained before per-net storage is released. The upstream fix clears the hook first and waits for in-flight readers before unregistering per-net operations, blocking new policy lookups and ensuring observed hooks finish before the backing storage disappears.
Attack Vector
Exploitation requires local access and the capability to invoke the netfilter configuration path (for example, iptables -t raw with CT target options) concurrently with unloading the nfnetlink_cttimeout module. A reproducer races a do_ipt_set_ctl() call issuing xt_ct_tg_check() against cttimeout_exit(). Successful exploitation yields controlled reuse of the freed slab object, which can be shaped into kernel memory corruption and local privilege escalation.
No verified public proof-of-concept code is available. The KASAN trace in the upstream commit log describes the exact race window and call sites.
Detection Methods for CVE-2026-97609
Indicators of Compromise
- KASAN reports naming slab-use-after-free in ctnl_timeout_find_get with call stacks reaching nf_ct_set_timeout and xt_ct_tg_check
- Kernel oops or panic entries referencing nfnetlink_cttimeout during or shortly after module unload
- Unexpected modprobe -r nfnetlink_cttimeout activity correlated with iptables or nft configuration changes
Detection Strategies
- Enable KASAN on test and canary kernels to surface the use-after-free before production deployment
- Audit kernel logs for nfnetlink_cttimeout references combined with slab corruption warnings
- Monitor for process executions that both configure connection tracking timeouts and unload netfilter modules in rapid succession
Monitoring Recommendations
- Collect dmesg and /var/log/kern.log centrally and alert on KASAN, BUG:, and slab-use-after-free strings
- Track init_module/finit_module/delete_module syscalls through audit rules to detect anomalous module teardown
- Alert on non-root to root privilege transitions following any netfilter module unload event
How to Mitigate CVE-2026-97609
Immediate Actions Required
- Apply upstream kernel patches that reorder cttimeout_exit() to clear the timeout hook and synchronize RCU before unregister_pernet_subsys()
- Restrict CAP_NET_ADMIN and CAP_SYS_MODULE to trusted administrators to limit who can trigger the race
- Disable automatic loading of nfnetlink_cttimeout on systems that do not require per-flow timeout policies
Patch Information
The fix is published in the mainline and stable trees. See Kernel Git Commit 1f69c57, Kernel Git Commit a7fdd86, and Kernel Git Commit fec9b1d. Rebuild and deploy kernels that include these commits, then reboot affected hosts.
Workarounds
- Blacklist the nfnetlink_cttimeout module where connection tracking timeout policies are not in use
- Prevent unprivileged namespace creation that could expose the netfilter configuration path to local users
- Lock module unload via kernel.modules_disabled=1 after boot on hardened systems
# Blacklist the vulnerable module and disable runtime module unload
echo 'blacklist nfnetlink_cttimeout' | sudo tee /etc/modprobe.d/cve-2026-97609.conf
sudo depmod -a
# Prevent further module operations after boot
sudo sysctl -w kernel.modules_disabled=1
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

