VDB

CVE-2025-21980

CVE-2025-21980 PUBLISHED CVSS 5.5 MEDIUM

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

Reported by linux · Published April 1, 2025

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-develAmazon Linux6.1.132-147.221.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.132-147.221.amzn2023
LinuxLinuxd02c9acd68950a444acda18d514e2b41f846cb7f, 5f996b4f80c2cef1f9c77275055e7fcba44c9199, 115ef44a98220fddfab37a39a19370497cd718b9, 0f0a152957d64ce45b4c27c687e7d087e8f45079

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxf25c0515c521375154c62c72447869f40218c861, f25c0515c521375154c62c72447869f40218c861, f25c0515c521375154c62c72447869f40218c861
LinuxLinux5.16, 0, 6.1.132
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra-common0
LinuxLinux5.16, 0, 6.1.132
amazon:2023kernel-livepatch-6.1.132-147.2210
amazon:2023kernel-libbpf0
amazon:2023perf0
linuxlinux_kernel5.16, 5.16, 5.16
amazon:2023kernel-tools-devel0
amazon:2023python3-perf0
amazon:2023kernel-modules-extra0
amazon:2023kernel-tools0
amazon:2023kernel-headers0
amazon:2023kernel0
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-libbpf-devel0

Timeline

  • Apr 1, 2025 CVE Published
  • Apr 2, 2025 EPSS Score (30 in total, the first dated here)
  • Jun 4, 2025 Coalition ESS Score (9 in total, the first dated here)
  • Dec 21, 2025 Security Advisory (261 in total, the first dated here)
  • Jan 20, 2026 PoC Published
  • Apr 29, 2026 Distribution Patch (235 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21980
vulnetix vdb fixes CVE-2025-21980

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21980/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›