{"id":"CVE-2025-21980","state":"PUBLISHED","title":"sched: address a potential NULL pointer dereference in the GRED scheduler.","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched: address a potential NULL pointer dereference in the GRED scheduler.\n\nIf kzalloc in gred_init returns a NULL pointer, the code follows the\nerror handling path, invoking gred_destroy. This, in turn, calls\ngred_offload, where memset could receive a NULL pointer as input,\npotentially leading to a kernel crash.\n\nWhen table->opt is NULL in gred_init(), gred_change_table_def()\nis not called yet, so it is not necessary to call ->ndo_setup_tc()\nin gred_offload().","publishedAt":"2025-04-01T15:47:09.232Z","updatedAt":"2026-05-11T21:10:18.630Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"d02c9acd68950a444acda18d514e2b41f846cb7f","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"0f0a152957d64ce45b4c27c687e7d087e8f45079","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"68896dd50180b38ea552e49a6a00b685321e5769","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"5f996b4f80c2cef1f9c77275055e7fcba44c9199","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"115ef44a98220fddfab37a39a19370497cd718b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_gred.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.132","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.84","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.20","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.8","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_gred.c"]}],"references":["https://git.kernel.org/stable/c/d02c9acd68950a444acda18d514e2b41f846cb7f","https://git.kernel.org/stable/c/0f0a152957d64ce45b4c27c687e7d087e8f45079","https://git.kernel.org/stable/c/68896dd50180b38ea552e49a6a00b685321e5769","https://git.kernel.org/stable/c/5f996b4f80c2cef1f9c77275055e7fcba44c9199","https://git.kernel.org/stable/c/115ef44a98220fddfab37a39a19370497cd718b9","https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21980.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21980","state":"PUBLISHED","datePublished":"2025-04-01T15:47:09.232Z","dateUpdated":"2026-05-11T21:10:18.630Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.799Z"},"containers":{"cna":{"title":"sched: address a potential NULL pointer dereference in the GRED scheduler.","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched: address a potential NULL pointer dereference in the GRED scheduler.\n\nIf kzalloc in gred_init returns a NULL pointer, the code follows the\nerror handling path, invoking gred_destroy. This, in turn, calls\ngred_offload, where memset could receive a NULL pointer as input,\npotentially leading to a kernel crash.\n\nWhen table->opt is NULL in gred_init(), gred_change_table_def()\nis not called yet, so it is not necessary to call ->ndo_setup_tc()\nin gred_offload()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"d02c9acd68950a444acda18d514e2b41f846cb7f","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"0f0a152957d64ce45b4c27c687e7d087e8f45079","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"68896dd50180b38ea552e49a6a00b685321e5769","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"5f996b4f80c2cef1f9c77275055e7fcba44c9199","versionType":"git"},{"version":"f25c0515c521375154c62c72447869f40218c861","status":"affected","lessThan":"115ef44a98220fddfab37a39a19370497cd718b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_gred.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.132","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.84","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.20","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.8","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_gred.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d02c9acd68950a444acda18d514e2b41f846cb7f"},{"url":"https://git.kernel.org/stable/c/0f0a152957d64ce45b4c27c687e7d087e8f45079"},{"url":"https://git.kernel.org/stable/c/68896dd50180b38ea552e49a6a00b685321e5769"},{"url":"https://git.kernel.org/stable/c/5f996b4f80c2cef1f9c77275055e7fcba44c9199"},{"url":"https://git.kernel.org/stable/c/115ef44a98220fddfab37a39a19370497cd718b9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:10:18.630Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.132"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.6.84"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.12.20"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.13.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-10-01T17:15:04.741694Z","id":"CVE-2025-21980","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","type":"CWE","lang":"en","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T17:15:08.011Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:40:21.123Z"}}]}}}