CVE-2026-143436: netfilter: conntrack: fix unlikely UaF in gc worker
In the Linux kernel, the following vulnerability has been resolved:
netfilter: conntrack: fix unlikely UaF in gc worker
When early-drop scan is enabled, gcworker() reads tmp->ctnet, resolves cnet with nfctpernet(), and reads cnet->count with RCU read lock held but before acquiring a reference to tmp.
Its unlikely but possible that the worker gets preempted before reading cnet->count while nfconntrackcleanupnetlist manages to unlink all conntracks and returns in the mean time. This allows for the pernet memory to get free'd.
On resume, use after free would occur when the worker reads cnet->count.
This can be solved either via another synchronizercu() in nfconntrackcleanupnetlist or via cheaper flushwork(). If work wasn't running no race can happen as next call cannot observe already-unlinked conntrack objects.
This is an LLM finding with no reproducer, but it appears to be correct.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In nf_conntrack_cleanup_net_list, prevent the gc worker from accessing freed per-net memory by adding another synchronize_rcu() or, alternatively, using flush_work().
Event History
Frequently Asked Questions
What conditions are required for this race to occur?
Early-drop scanning must be enabled, and the conntrack garbage-collection worker must be preempted after resolving the network namespace conntrack state but before reading its count. During that window, conntrack cleanup must unlink all conntracks and complete, allowing the per-network memory to be freed before the worker resumes.
Is there a known reproducer or confirmed exploitation scenario?
No reproducer is provided. The issue is described as an LLM finding that appears correct, and the race is characterized as unlikely.
What is the practical mitigation if the applicable kernel fix cannot be deployed immediately?
The provided information identifies early-drop scanning as part of the required race condition, but it does not provide a documented configuration workaround. Applying a kernel version containing the referenced fixes is the remediation described by the available data.