CVE-2025-21980
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.132-147.221.amzn2023 |
| Linux | Linux | d02c9acd68950a444acda18d514e2b41f846cb7f, 5f996b4f80c2cef1f9c77275055e7fcba44c9199, 115ef44a98220fddfab37a39a19370497cd718b9, 0f0a152957d64ce45b4c27c687e7d087e8f45079 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f25c0515c521375154c62c72447869f40218c861, f25c0515c521375154c62c72447869f40218c861, f25c0515c521375154c62c72447869f40218c861 |
| Linux | Linux | 5.16, 0, 6.1.132 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Linux | Linux | 5.16, 0, 6.1.132 |
| amazon:2023 | kernel-livepatch-6.1.132-147.221 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | perf | 0 |
| linux | linux_kernel | 5.16, 5.16, 5.16 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
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