sched: address a potential NULL pointer dereference in the GRED scheduler.
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.132, 6.12.20, 6.13.8, 6.6.84
- CVEs
- CVE-2025-21980
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 18:18 UTC · Revision 1
Source evidence
sched: address a potential NULL pointer dereference in the GRED scheduler.
core-osv · Original sourcePublished 1 Apr 2025, 15:47 UTC
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().
osv:CVE-2025-21980
Kernel
Fixed versions: 6.1.132, 6.6.84, 6.12.20, 6.13.8
Complete source record
{
"id": "914f8294bf3869d3f7e8bb1aae7735790765d9f0ad9dd969f08f406b869695ef",
"url": "https://osv.dev/vulnerability/CVE-2025-21980",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "sched: address a potential NULL pointer dereference in the GRED scheduler.",
"summary": "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().",
"evidence": "osv:CVE-2025-21980",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.132",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.84",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.20",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2025-21980",
"aliases": [
"CVE-2025-21980"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "f25c0515c521375154c62c72447869f40218c861"
},
{
"fixed": "d02c9acd68950a444acda18d514e2b41f846cb7f"
},
{
"fixed": "0f0a152957d64ce45b4c27c687e7d087e8f45079"
},
{
"fixed": "68896dd50180b38ea552e49a6a00b685321e5769"
},
{
"fixed": "5f996b4f80c2cef1f9c77275055e7fcba44c9199"
},
{
"fixed": "115ef44a98220fddfab37a39a19370497cd718b9"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21980.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.132"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.84"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.20"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21980.json"
}
}
],
"modified": "2026-10-28T02:30:48.115542116Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0f0a152957d64ce45b4c27c687e7d087e8f45079",
"https://git.kernel.org/stable/c/115ef44a98220fddfab37a39a19370497cd718b9",
"https://git.kernel.org/stable/c/5f996b4f80c2cef1f9c77275055e7fcba44c9199",
"https://git.kernel.org/stable/c/68896dd50180b38ea552e49a6a00b685321e5769",
"https://git.kernel.org/stable/c/d02c9acd68950a444acda18d514e2b41f846cb7f",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21980.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-21980",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21980.json"
}
},
"related_cves": [
{
"value": "CVE-2025-21980",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 515867,
"published_at": "2025-04-01T15:47:09.232+00:00"
}