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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-04-01T15:47:09.232Z
- Modified: 2026-06-17T08:44:45.717Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from f25c0515c521375154c62c72447869f40218c861 before d02c9acd68950a444acda18d514e2b41f846cb7f; from f25c0515c521375154c62c72447869f40218c861 before 0f0a152957d64ce45b4c27c687e7d087e8f45079; from f25c0515c521375154c62c72447869f40218c861 before 68896dd50180b38ea552e49a6a00b685321e5769; from f25c0515c521375154c62c72447869f40218c861 before 5f996b4f80c2cef1f9c77275055e7fcba44c9199; from f25c0515c521375154c62c72447869f40218c861 before 115ef44a98220fddfab37a39a19370497cd718b9; 5.16 (not affected: before 5.16; from 6.1.132 up to 6.1.*; from 6.6.84 up to 6.6.*; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.16 before 6.1.132; from 6.2 before 6.6.84; from 6.7 before 6.12.20; from 6.13 before 6.13.8; 6.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d02c9acd68950a444acda18d514e2b41f846cb7f> (patch)
- <https://git.kernel.org/stable/c/0f0a152957d64ce45b4c27c687e7d087e8f45079> (patch)
- <https://git.kernel.org/stable/c/68896dd50180b38ea552e49a6a00b685321e5769> (patch)
- <https://git.kernel.org/stable/c/5f996b4f80c2cef1f9c77275055e7fcba44c9199> (patch)
- <https://git.kernel.org/stable/c/115ef44a98220fddfab37a39a19370497cd718b9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2025-21980](https://www.cve.org/CVERecord?id=CVE-2025-21980), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21980](https://nvd.nist.gov/vuln/detail/CVE-2025-21980), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21980 · Whole record: https://cve.day/CVE-2025-21980.json · Rebuilt by cve.day 2026-11-25T22:58:55.921Z
