CVE-2025-21971 net_sched: Prevent creation of classes with TC_H_ROOT

High 7.8 Published Updated

A flaw in the Linux kernel's network scheduler allows a crash when creating classes with a specific ID, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-21971?

CVE-2025-21971 is a high-severity denial of service vulnerability in Linux kernel, published on 1 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-835

Which versions are affected by CVE-2025-21971?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-21971?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-21971 being exploited?

There is no known exploitation of CVE-2025-21971 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-21971, DEBIAN-CVE-2025-21971, GHSA-37v5-vmq6-f37g, UBUNTU-CVE-2025-21971.

Is CVE-2025-21971 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free