Skip to contentSkip to conversation

CVE-2026-98792: netfilter: flowtable: generalize pending status bit

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-98792 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.7 with commit 2c8897953f3b2ff5498f3f275708a742bfcdbc24 and fixed in 6.12.113 with commit 4d52b72f3aa68ad0536444e36530bda75070194c
	Issue introduced in 5.7 with commit 2c8897953f3b2ff5498f3f275708a742bfcdbc24 and fixed in 6.18.56 with commit 4033e1a9262c57dfbfc594a591a50fcba63c531a
	Issue introduced in 5.7 with commit 2c8897953f3b2ff5498f3f275708a742bfcdbc24 and fixed in 7.2.10 with commit a2cac45848d1cf31ed190db30f90ba8211e9a8ca
	Issue introduced in 5.7 with commit 2c8897953f3b2ff5498f3f275708a742bfcdbc24 and fixed in 7.3-rc6 with commit 7c549fb7eecd01fdba7c0d12c01da876ef8a3214

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98792

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_core.c
net/netfilter/nf_flow_table_offload.c
net/sched/act_ct.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4d52b72f3aa68ad0536444e36530bda75070194c
	https://git.kernel.org/stable/c/4033e1a9262c57dfbfc594a591a50fcba63c531a
	https://git.kernel.org/stable/c/a2cac45848d1cf31ed190db30f90ba8211e9a8ca
	https://git.kernel.org/stable/c/7c549fb7eecd01fdba7c0d12c01da876ef8a3214