CVE-2026-98017: net/sched: defer qdisc freeing after failed creation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/sched: defer qdisc freeing after failed creation
An RTM_NEWQDISC request can make clsact bind a populated shared ingress block during ->init(), publishing an embedded mini_Qdisc to lockless readers. If the same request has an invalid TCA_RATE, estimator setup fails after ->init(); the unwind removes the pointer but synchronously frees its containing qdisc while tc_run() may still hold it.
Retire failed qdiscs through the same RCU helper as normal destruction. Inline the synchronous free into the callback now that no direct callers remain.
The Linux kernel CVE team has assigned CVE-2026-98017 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.16 with commit 51ab2994c387c80b45caf8b8067b3f3b97771d25 and fixed in 6.12.111 with commit 20bf6fa34b345333971bd4464a322cce87b83f4e Issue introduced in 4.16 with commit 51ab2994c387c80b45caf8b8067b3f3b97771d25 and fixed in 6.18.53 with commit 156a3bab69744e9225bb9eff8c5cc53da18d5a2e Issue introduced in 4.16 with commit 51ab2994c387c80b45caf8b8067b3f3b97771d25 and fixed in 7.2.7 with commit 5bfe927c5b4b290fad529186218c728589b4b101 Issue introduced in 4.16 with commit 51ab2994c387c80b45caf8b8067b3f3b97771d25 and fixed in 7.3-rc3 with commit e6662f2100f8d33b0f4d0047c219efd6bba186ea
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-98017
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/sch_generic.h
net/sched/sch_api.c
net/sched/sch_generic.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/20bf6fa34b345333971bd4464a322cce87b83f4e https://git.kernel.org/stable/c/156a3bab69744e9225bb9eff8c5cc53da18d5a2e https://git.kernel.org/stable/c/5bfe927c5b4b290fad529186218c728589b4b101 https://git.kernel.org/stable/c/e6662f2100f8d33b0f4d0047c219efd6bba186ea