KernelScan.io

HIGH Introduced in 5.7

netfilter Flowtable UAF

CVE-2026-98792

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.9.0

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.

Affectednet/netfilter/nf_flow_table_core.c, net/netfilter/nf_flow_table_offload.c (netfilter flowtable)

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.

03

BranchIntroducedFixed inPatch commit
6.125.76.12.1134d52b72f3aa6
6.185.76.18.564033e1a9262c
6.65.76.6.160f7e292f3c8c8
7.25.77.2.10a2cac45848d1
mainline5.77.37c549fb7eecd
cip/6.125.76.12.114-cip344d52b72f3aa6

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)