HIGH Introduced in 5.7
netfilter Flowtable UAF
CVE-2026-98792
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
Risk summary
A local attacker can exploit a race condition in the netfilter flowtable hardware offload path to trigger a use-after-free, potentially achieving kernel privilege escalation or denial of service. The vulnerability is reachable when flowtable hardware offload is enabled on the system, which requires administrative configuration but can then be triggered by any local user generating network traffic.
Vulnerability analysis
The netfilter flowtable hardware offload subsystem uses a garbage collection (GC) worker to clean up expired flows. A race condition exists where the GC worker can proceed to free a flow object while a hardware offload work item (such as statistics retrieval) is still pending or executing on that same flow. The original fix introduced a pending bit to prevent duplicate work queuing, but a subsequent reordering change created a window where the GC would not see the pending bit before freeing the flow. The fix generalizes the pending flag (renamed to NF_FLOW_PENDING) and makes the GC worker check this flag first, returning early if any hardware offload work is outstanding. This ensures the flow object remains valid until all offload work completes. An attacker with local access can trigger this by generating network traffic that creates hardware-offloaded flows, then manipulating timing to win the race between GC and stats collection.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 5.7 | 6.12.113 | 4d52b72f3aa6 |
| 6.18 | 5.7 | 6.18.56 | 4033e1a9262c |
| 6.6 | 5.7 | 6.6.160 | f7e292f3c8c8 |
| 7.2 | 5.7 | 7.2.10 | a2cac45848d1 |
| mainline | 5.7 | 7.3 | 7c549fb7eecd |
| cip/6.12 | 5.7 | 6.12.114-cip34 | 4d52b72f3aa6 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |