Vulnerability record
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, gc_worker() reads tmp->ct_net, resolves cnet with nf_ct_pernet(), 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 nf_conntrack_cleanup_net_list 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…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources