netfilter: flowtable: hold reference on ct until flow is released
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0ff90b6c20340e57616a51ae1a1bf18156d6638a · < 12c1ac230f4ca16e0017b62a963ab75e0b48074f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: flowtable: hold reference on ct until flow is released
nf_ct_put() releases the ct->ext area inmediately, the rcu typesafe semantics also allow to refer to the wrong conntrack from the flowtable datapath. Hold reference on ct until flow is released after rcu grace period.
Add rcu_barrier() on module exit path, to ensure pending flow entries are release before module goes away.
From the CVE record · Linux
The Linux kernel netfilter flowtable can release a conntrack reference too early, allowing its datapath to refer to the wrong conntrack. The input does not specify how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with netfilter flowtable should check their exposure; affected versions were not provided.