CVE-2026-99167: net/sched: fix use-after-free in __tcf_action_put()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/sched: fix use-after-free in __tcf_action_put()
__tcf_action_put() decrements the reference count before decrementing the binding count. Another thread can free the action between these operations, causing the binding-count update to access freed memory. KASAN reports it as:
BUG: KASAN: slab-use-after-free in __tcf_action_put+0x327/0x340 Write of size 4 at addr ff11000000d46420 by task tc-put-pause/64
Hold the action IDR mutex across both counter updates and IDR removal, keeping cleanup outside the lock.
The Linux kernel CVE team has assigned CVE-2026-99167 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.19 with commit 16af6067392c40e454e49eec834843ab03643d96 and fixed in 6.18.59 with commit 2465d27ef90de9105c2bffb6c35f8ce08918e642 Issue introduced in 4.19 with commit 16af6067392c40e454e49eec834843ab03643d96 and fixed in 7.2.13 with commit 2e012e431aa271ef3c84206f48854f539c03bff0 Issue introduced in 4.19 with commit 16af6067392c40e454e49eec834843ab03643d96 and fixed in 7.3 with commit 7b16eb911091aae237a8673da94e4dfb9cd21d54
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-99167
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/2465d27ef90de9105c2bffb6c35f8ce08918e642 https://git.kernel.org/stable/c/2e012e431aa271ef3c84206f48854f539c03bff0 https://git.kernel.org/stable/c/7b16eb911091aae237a8673da94e4dfb9cd21d54