{"id":"CVE-2025-21980","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-\u003eopt is NULL in gred_init(), gred_change_table_def()\nis not called yet, so it is not necessary to call -\u003endo_setup_tc()\nin gred_offload().","modified":"2026-04-16T04:39:07.663747810Z","published":"2025-04-01T15:47:09.232Z","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"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21980.json","cna_assigner":"Linux"},"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"}],"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"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}