CVE-2025-21971
net_sched: Prevent creation of classes with TC_H_ROOT
Mitigation
- Upgrade Linux to 0c3057a5a04d07120b3d0ec9c79568fceb9c921e or later.
Who should check
- Anyone running Linux >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e5ee00607bbfc97ef1526ea95b6b2458ac9e7cb7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 78533c4a29ac3aeddce4b481770beaaa4f3bfb67; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 94edfdfb9505ab608e86599d1d1e38c83816fc1c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 0c3057a5a04d07120b3d0ec9c79568fceb9c921e
- Anyone running Linux 2.6.25
Vulnerability facts
- Affected
- Linux >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e5ee00607bbfc97ef1526ea95b6b2458ac9e7cb7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 78533c4a29ac3aeddce4b481770beaaa4f3bfb67; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 94edfdfb9505ab608e86599d1d1e38c83816fc1c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 0c3057a5a04d07120b3d0ec9c79568fceb9c921e; Linux 2.6.25
- Fixed in
- Linux 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006, Linux 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48, Linux 78533c4a29ac3aeddce4b481770beaaa4f3bfb67, Linux 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7, Linux 94edfdfb9505ab608e86599d1d1e38c83816fc1c, Linux 0c3057a5a04d07120b3d0ec9c79568fceb9c921e
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
- CWE
- CWE-835
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: net_sched: Prevent creation of classes with TC_H_ROOT The function qdisc_tree_reduce_backlog() uses TC_H_ROOT as a termination condition when traversing up the qdisc tree to update parent backlog counters. However, if a class is created with classid TC_H_ROOT, the traversal terminates prematurely at this class instead of reaching the actual root qdisc, causing parent statistics to be incorrectly maintained. In case of DRR, this could lead to a crash as reported by Mingi Cho. Prevent the creation of any Qdisc class with classid TC_H_ROOT (0xFFFFFFFF) across all qdisc types, as suggested by Jamal.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e5ee00607bbfc97ef1526ea95b6b2458ac9e7cb7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 78533c4a29ac3aeddce4b481770beaaa4f3bfb67; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 94edfdfb9505ab608e86599d1d1e38c83816fc1c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 0c3057a5a04d07120b3d0ec9c79568fceb9c921e | — | cvelist |
| Linux | 2.6.25 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21971. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21971.md Affected: Linux >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48; >= 066a3b5b2346febf9a655b4… Fixed in: Linux 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006, Linux 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48, Linux 78533c4a29ac3aeddce4b481770beaaa4f3bfb67, Linux 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7, Linux 94edfdfb9505ab608e86599d1d1e38c83816fc1c, Linux 0c3057a5a04d07120b3d0ec9c79568fceb9c921e Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c
- https://git.kernel.org/stable/c/7a82fe67a9f4d7123d8e5ba8f0f0806c28695006
- https://git.kernel.org/stable/c/003d92c91cdb5a64b25a9a74cb8543aac9a8bb48
- https://git.kernel.org/stable/c/e5ee00607bbfc97ef1526ea95b6b2458ac9e7cb7
- https://git.kernel.org/stable/c/78533c4a29ac3aeddce4b481770beaaa4f3bfb67
- https://git.kernel.org/stable/c/5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7
- https://git.kernel.org/stable/c/94edfdfb9505ab608e86599d1d1e38c83816fc1c
- https://git.kernel.org/stable/c/0c3057a5a04d07120b3d0ec9c79568fceb9c921e
FAQ
Is CVE-2025-21971 being exploited?
There is no confirmed exploitation: CVE-2025-21971 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21971?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21971?
Linux >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < e5ee00607bbfc97ef1526ea95b6b2458ac9e7cb7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 78533c4a29ac3aeddce4b481770beaaa4f3bfb67; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 94edfdfb9505ab608e86599d1d1e38c83816fc1c; >= 066a3b5b2346febf9a655b444567b7138e3bb939, < 0c3057a5a04d07120b3d0ec9c79568fceb9c921e; Linux 2.6.25.
Is there a fix for CVE-2025-21971?
Yes. Fixed in Linux 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006, Linux 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48, Linux 78533c4a29ac3aeddce4b481770beaaa4f3bfb67, Linux 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7, Linux 94edfdfb9505ab608e86599d1d1e38c83816fc1c, Linux 0c3057a5a04d07120b3d0ec9c79568fceb9c921e. Upgrade Linux to 0c3057a5a04d07120b3d0ec9c79568fceb9c921e or later.
How do I check if I'm affected by CVE-2025-21971?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.