Skip to contentSkip to conversation

CVE-2026-97616: net/sched: act_api: release all action references on NEWACTION failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

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_api: release all action references on NEWACTION failure

When a batched RTM_NEWACTION request replaces an existing action, tcf_idr_check_alloc() takes a temporary reference on it. If a later action fails to initialize, tcf_action_destroy() uses strict release semantics to clean up the actions initialized so far. For an action bound to a filter, the strict check returns -EPERM without dropping the temporary reference.

This error also makes tcf_action_destroy() return before releasing subsequent entries. Any new action initialized between the bound action and the failing entry is leaked together with its reserved IDR slot, preventing reuse of its index.

Use tcf_idr_release() to drop each reference held by the batch without rejecting bound actions. This allows cleanup to continue through all initialized entries and preserves the module reference release when an action is destroyed. Explicit action deletion and flushing retain their separate bind-count checks.

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

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

	Issue introduced in 3.15 with commit 55334a5db5cd32b207ac697cec3ec8e078f345d4 and fixed in 6.12.111 with commit f908c8a969946a45225fd7f9d9a85771e12ae0a8
	Issue introduced in 3.15 with commit 55334a5db5cd32b207ac697cec3ec8e078f345d4 and fixed in 6.18.53 with commit 64b36eaef6ea5ada9aea4c2cf87099aaa8a4869b
	Issue introduced in 3.15 with commit 55334a5db5cd32b207ac697cec3ec8e078f345d4 and fixed in 7.2.7 with commit 048617743febf6530111cfb594e9bbbd7918bf67
	Issue introduced in 3.15 with commit 55334a5db5cd32b207ac697cec3ec8e078f345d4 and fixed in 7.3-rc3 with commit 478eb5abb51931a152abab068f8a717b7ff480fd

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

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_api.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/f908c8a969946a45225fd7f9d9a85771e12ae0a8
	https://git.kernel.org/stable/c/64b36eaef6ea5ada9aea4c2cf87099aaa8a4869b
	https://git.kernel.org/stable/c/048617743febf6530111cfb594e9bbbd7918bf67
	https://git.kernel.org/stable/c/478eb5abb51931a152abab068f8a717b7ff480fd