{"schema_version":"1.9.0","id":"CVE-2025-21980","published":"2025-04-01T15:47:09.232Z","modified":"2026-08-12T03:51:14.326619885Z","related":["SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1"],"summary":"sched: address a potential NULL pointer dereference in the GRED scheduler.","details":"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":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21980.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0f0a152957d64ce45b4c27c687e7d087e8f45079"},{"type":"WEB","url":"https://git.kernel.org/stable/c/115ef44a98220fddfab37a39a19370497cd718b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5f996b4f80c2cef1f9c77275055e7fcba44c9199"},{"type":"WEB","url":"https://git.kernel.org/stable/c/68896dd50180b38ea552e49a6a00b685321e5769"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d02c9acd68950a444acda18d514e2b41f846cb7f"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21980.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21980"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21980.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}