HIGH Introduced in 4.16
net/sched Qdisc UAF
CVE-2026-98017
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.8HIGH
01Description
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.
02KernelScan AI Analysis
Risk summary
A local unprivileged user can trigger a use-after-free in the kernel traffic-control subsystem by crafting a qdisc creation request that binds a shared block then fails on rate validation. The synchronous free in the error path races with lockless packet-processing readers, enabling kernel memory corruption. Since the triggering capability is obtainable inside a user namespace, this is reachable by unprivileged container workloads and represents a container-escape primitive.
Vulnerability analysis
When creating certain traffic-control qdiscs, the initialization step can publish the new qdisc to lockless packet-processing readers before the full creation request has been validated. If a subsequent validation step in the same request fails (for example an invalid rate parameter), the error cleanup path frees the qdisc object immediately while other threads may still be accessing it, resulting in a use-after-free. The fix changes the error cleanup to defer the free through the same RCU mechanism used for normal qdisc destruction, ensuring all concurrent readers have finished before the memory is released. The bug is triggered by sending a qdisc creation request via rtnetlink, which requires CAP_NET_ADMIN; however, this capability can be obtained inside a user namespace by an unprivileged user, making the issue reachable from a local unprivileged context such as a container workload.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 4.16 | 6.1.189 | 96a27a3e64e7 |
| 6.12 | 4.16 | 6.12.111 | 20bf6fa34b34 |
| 6.18 | 4.16 | 6.18.53 | 156a3bab6974 |
| 6.6 | 4.16 | 6.6.158 | 6a1b49bb9fdf |
| 7.2 | 4.16 | 7.2.7 | 5bfe927c5b4b |
| mainline | 4.16 | 7.3 | e6662f2100f8 |
| cip/6.1 | 4.16 | 6.1.189-cip61 | 96a27a3e64e7 |
| cip/6.1-rt | 4.16 | 6.1.189-cip61-rt32 | 96a27a3e64e7 |
| cip/6.12 | 4.16 | 6.12.111-cip32 | 20bf6fa34b34 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |