netfilter: flowtable: generalize pending status bit
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: flowtable: generalize pending status bit
Rename NF_FLOW_HW_PENDING to NF_FLOW_PENDING and use it to inhibit the flowtable GC worker until pending hw offload work has been completed.
Apparently, nf_flow_offload_stats() can schedule work to retrieve stats while the flow is being removed by GC.
And this bit can also be used in a follow up patch to disable GC until the flow has been fully added in both directions.
Revert the reordering done in commit d644b23afe1e ("netfilter: flowtable: publish HW_DEAD after worker is done") to prevent a race between GC and hw offload handler.
From the CVE record · Linux
The Linux kernel's netfilter flowtable has a race between garbage collection and hardware offload work when statistics retrieval is scheduled as a flow is removed. The input does not specify an attacker outcome, access requirements, or whether user interaction is needed.
Engineers running Linux kernels with netfilter flowtable support should check their kernel versions; affected versions are not specified.