Skip to contentSkip to conversation

CVE-2026-98622: net/sched: act_ct: don't WARN on benign flow_offload_alloc() failure

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:

net/sched: act_ct: don't WARN on benign flow_offload_alloc() failure

flow_offload_alloc() returns NULL when the conntrack entry is dying (e.g. raced with a conntrack flush) or when the GFP_ATOMIC allocation fails; both are expected under load and neither is a kernel bug. This path runs from softirq on every committed packet, so with panic_on_warn=1 an unprivileged user can panic the box just by racing a conntrack flush against a tc ... action ct commit classifier.

Reproduced with a custom repro under QEMU: a small, fixed set of UDP flows through tc filter ... action ct commit on lo, raced against threads flooding bare ctnetlink CT_DELETE (flush) requests. Hits

WARNING: net/sched/act_ct.c:437 (tcf_ct_flow_table_add(), inlined

into tcf_ct_act() in this build) within ~15s on the unpatched kernel; same setup is clean on the patched kernel. The fix itself is
behavior-preserving: both branches already did goto err_alloc before and after, only the WARN is removed.

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

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

	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 5.10.271 with commit e8fcf3f08834e939b797311742ee72b1e2a08096
	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 5.15.222 with commit af475f599270e59313552e6c6f3af8507da672b8
	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 6.1.189 with commit 424ba52c0058deeb940d02cba52eb0aeb288db33
	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 6.6.158 with commit d512c484bd93a5f2794aa03c9faeb7bcb82dbd4a
	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 6.12.112 with commit d805560ad69cb266d669341ca01e26bffb0d2c67
	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 6.18.55 with commit 00734f3684fcec42c319bedfe68a5d357c720b53
	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 7.2.9 with commit 650787233c2fd6e515a7c5f371019a9fa080ccd2
	Issue introduced in 5.7 with commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 and fixed in 7.3-rc5 with commit 47abe7a5c4eb53269aca3506446f851572a059a3

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-98622

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:
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/e8fcf3f08834e939b797311742ee72b1e2a08096
	https://git.kernel.org/stable/c/af475f599270e59313552e6c6f3af8507da672b8
	https://git.kernel.org/stable/c/424ba52c0058deeb940d02cba52eb0aeb288db33
	https://git.kernel.org/stable/c/d512c484bd93a5f2794aa03c9faeb7bcb82dbd4a
	https://git.kernel.org/stable/c/d805560ad69cb266d669341ca01e26bffb0d2c67
	https://git.kernel.org/stable/c/00734f3684fcec42c319bedfe68a5d357c720b53
	https://git.kernel.org/stable/c/650787233c2fd6e515a7c5f371019a9fa080ccd2
	https://git.kernel.org/stable/c/47abe7a5c4eb53269aca3506446f851572a059a3