CVE-2025-21980

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

MEDIUM
5.5
CVSS Score
Published: April 1, 2025 at 03:47 PM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.16 ≤ v < 6.1.1325.16 ≤ v < 6.12.205.16 ≤ v < 6.13.85.16 ≤ v < 6.145.16 ≤ v < 6.6.846.13 ≤ v < 6.13.86.2 ≤ v < 6.6.846.7 ≤ v < 6.12.206.14 rc16.14 rc26.14 rc36.14 rc46.14 rc56.14 rc6f25c0515c521375154c62c72447869f40218c861
Vendor states this is fixed in 0f0a152957d64ce45b4c27c687e7d087e8f45079 (fixed)
Vendor states this is fixed in 115ef44a98220fddfab37a39a19370497cd718b9 (fixed)
Vendor states this is fixed in 5f996b4f80c2cef1f9c77275055e7fcba44c9199 (fixed)
Vendor states this is fixed in 68896dd50180b38ea552e49a6a00b685321e5769 (fixed)
Vendor states this is fixed in d02c9acd68950a444acda18d514e2b41f846cb7f (fixed)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 6.1.132 (unaffected)
Vendor states this is fixed in 6.12.20 (unaffected)
Vendor states this is fixed in 6.13.8 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.84 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0f0a152957d64ce45b4c27c687e7d087e8f45079
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/115ef44a98220fddfab37a39a19370497cd718b9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5f996b4f80c2cef1f9c77275055e7fcba44c9199
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/68896dd50180b38ea552e49a6a00b685321e5769
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d02c9acd68950a444acda18d514e2b41f846cb7f
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card