netfilter: allow exp not to be removed in nf_ct_find_expectation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: allow exp not to be removed in nf_ct_find_expectation
Currently nf_conntrack_in() calling nf_ct_find_expectation() will remove the exp from the hash table. However, in some scenario, we expect the exp not to be removed when the created ct will not be confirmed, like in OVS and TC conntrack in the following patches.
This patch allows exp not to be removed by setting IPS_CONFIRMED in the status of the tmpl.
From the CVE record · Linux
The Linux kernel's netfilter conntrack code can remove an expectation from its hash table when the created connection will not be confirmed, including in OVS and TC conntrack scenarios. The issue is classified as a use-after-free; the input does not specify an attack method, authentication requirement, or user-interaction requirement.
Teams running Linux kernels that use netfilter conntrack, particularly with OVS or TC conntrack, should check their versions against the vendor advisory; affected versions are not specified.