# CVE-2025-21971: net\_sched: Prevent creation of classes with TC\_H\_ROOT

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2025-04-01T15:47:04.448Z
- **Modified:** 2026-10-15T22:18:12.710Z

## 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

## 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

- Linux: \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c; \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< 7a82fe67a9f4d7123d8e5ba8f0f0806c28695006; \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< 003d92c91cdb5a64b25a9a74cb8543aac9a8bb48; \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< e5ee00607bbfc97ef1526ea95b6b2458ac9e7cb7; \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< 78533c4a29ac3aeddce4b481770beaaa4f3bfb67; \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< 5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7; \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< 94edfdfb9505ab608e86599d1d1e38c83816fc1c; \>= 066a3b5b2346febf9a655b444567b7138e3bb939, \< 0c3057a5a04d07120b3d0ec9c79568fceb9c921e (cvelist)
- Linux: 2.6.25 (cvelist)

## Mitigation

- Upgrade Linux to 0c3057a5a04d07120b3d0ec9c79568fceb9c921e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/e05d9938b1b0ac40b6054cc5fa0ccbd9afd5ed4c>
- patch: <https://git.kernel.org/stable/c/7a82fe67a9f4d7123d8e5ba8f0f0806c28695006>
- patch: <https://git.kernel.org/stable/c/003d92c91cdb5a64b25a9a74cb8543aac9a8bb48>
- patch: <https://git.kernel.org/stable/c/e5ee00607bbfc97ef1526ea95b6b2458ac9e7cb7>
- patch: <https://git.kernel.org/stable/c/78533c4a29ac3aeddce4b481770beaaa4f3bfb67>
- patch: <https://git.kernel.org/stable/c/5c3ca9cb48b51bd72bf76b8b05e24f3cd53db5e7>
- patch: <https://git.kernel.org/stable/c/94edfdfb9505ab608e86599d1d1e38c83816fc1c>
- patch: <https://git.kernel.org/stable/c/0c3057a5a04d07120b3d0ec9c79568fceb9c921e>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21971>

HTML: <https://flawdb.com/CVE-2025-21971> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21971>
