Skip to contentSkip to conversation

CVE-2026-23245: net/sched: act_gate: snapshot parameters with RCU on replace

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 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_gate: snapshot parameters with RCU on replace

The gate action can be replaced while the hrtimer callback or dump path is walking the schedule list.

Convert the parameters to an RCU-protected snapshot and swap updates under tcf_lock, freeing the previous snapshot via call_rcu(). When REPLACE omits the entry list, preserve the existing schedule so the effective state is unchanged.

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

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

	Issue introduced in 5.8 with commit a51c328df3106663879645680609eb49b3ff6444 and fixed in 6.18.18 with commit 04d75529dc0f9be78786162ebab7424af4644df2
	Issue introduced in 5.8 with commit a51c328df3106663879645680609eb49b3ff6444 and fixed in 6.19.8 with commit 58b162e318d0243ad2d7d92456c0873f2494c351
	Issue introduced in 5.8 with commit a51c328df3106663879645680609eb49b3ff6444 and fixed in 7.0-rc3 with commit 62413a9c3cb183afb9bb6e94dd68caf4e4145f4c

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

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/tc_act/tc_gate.h
net/sched/act_gate.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/04d75529dc0f9be78786162ebab7424af4644df2
	https://git.kernel.org/stable/c/58b162e318d0243ad2d7d92456c0873f2494c351
	https://git.kernel.org/stable/c/62413a9c3cb183afb9bb6e94dd68caf4e4145f4c