CVE-2026-98235: net/sched: act_api: release tail references on DELACTION failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act_api: release tail references on DELACTION failure
A batched RTM_DELACTION request takes a temporary reference on each action before attempting any deletion. tcf_action_delete() clears each processed slot and drops its temporary reference before attempting the deletion. If deletion fails, tca_action_gd() calls tcf_action_put_many() to release the remaining references, but its tcf_act_for_each_action() iterator stops at the first NULL slot.
When a batch stops at an action bound to a filter, this leaks a reference on each subsequent action. A later delete of an unbound action can then return success without removing it from the IDR.
Walk the full array in tcf_action_put_many() and skip NULL slots to release the references held on the unprocessed actions.
The Linux kernel CVE team has assigned CVE-2026-98235 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit a0e947c9ccffe47d45aca793d9e7fe4f4494e381 and fixed in 6.12.112 with commit 9eaba16f1b6ee19b249e6afd82c27f958d441458 Issue introduced in 6.8 with commit a0e947c9ccffe47d45aca793d9e7fe4f4494e381 and fixed in 6.18.54 with commit 1be63e4579af408d596f0f3165faf1a880631d3b Issue introduced in 6.8 with commit a0e947c9ccffe47d45aca793d9e7fe4f4494e381 and fixed in 7.2.8 with commit 57b477e46ef2df3483f3488cc713c61c4b384aab Issue introduced in 6.8 with commit a0e947c9ccffe47d45aca793d9e7fe4f4494e381 and fixed in 7.3-rc4 with commit 6e05e46fa821a5c1b281355f1f622ac76cb6080a
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-98235
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/9eaba16f1b6ee19b249e6afd82c27f958d441458 https://git.kernel.org/stable/c/1be63e4579af408d596f0f3165faf1a880631d3b https://git.kernel.org/stable/c/57b477e46ef2df3483f3488cc713c61c4b384aab https://git.kernel.org/stable/c/6e05e46fa821a5c1b281355f1f622ac76cb6080a