CVE-2025-21980 sched: address a potential NULL pointer dereference in the GRED scheduler.

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel GRED scheduler can cause a system crash, requiring a kernel patch to prevent 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-21980?

CVE-2025-21980 is a medium-severity 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:

sched: address a potential NULL pointer dereference in the GRED scheduler.

If kzalloc in gred_init returns a NULL pointer, the code follows the error handling path, invoking gred_destroy. This, in turn, calls gred_offload, where memset could receive a NULL pointer as input, potentially leading to a kernel crash.

When table->opt is NULL in gred_init(), gred_change_table_def() is not called yet, so it is not necessary to call ->ndo_setup_tc() in gred_offload().

Weakness: CWE-476

Which versions are affected by CVE-2025-21980?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-21980?

Apply the vendor's patch.

Is CVE-2025-21980 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-59901, BELL-CVE-2025-21980, DEBIAN-CVE-2025-21980, GHSA-mwfv-f593-4f6x, ROOT-OS-UBUNTU-2404-CVE-2025-21980, UBUNTU-CVE-2025-21980.

Is CVE-2025-21980 in your software?

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

Check your SBOMs for free