{"id":"CVE-2025-21980","aliases":["CVE-2025-21980"],"related":[],"kind":"vulnerability","state":"published","title":"sched: address a potential NULL pointer dereference in the GRED scheduler.","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sched: soluciona una posible desreferencia de puntero nulo en el programador GRED. Si kzalloc en gred_init devuelve un puntero nulo, el código sigue la ruta de gestión de errores, invocando gred_destroy. Esto, a su vez, llama a gred_offload, donde memset podría recibir un puntero nulo como entrada, lo que podría provocar un fallo del kernel. Cuando table-&gt;opt es nulo en gred_init(), gred_change_table_def() aún no se llama, por lo que no es necesario llamar a -&gt;ndo_setup_tc() en gred_offload().","source":"nvd"}],"published":"2025-04-01T15:47:09.232Z","modified":"2026-06-17T08:44:45.717Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"f25c0515c521375154c62c72447869f40218c861","fixed":"d02c9acd68950a444acda18d514e2b41f846cb7f","status":"affected"},{"type":"git","introduced":"f25c0515c521375154c62c72447869f40218c861","fixed":"0f0a152957d64ce45b4c27c687e7d087e8f45079","status":"affected"},{"type":"git","introduced":"f25c0515c521375154c62c72447869f40218c861","fixed":"68896dd50180b38ea552e49a6a00b685321e5769","status":"affected"},{"type":"git","introduced":"f25c0515c521375154c62c72447869f40218c861","fixed":"5f996b4f80c2cef1f9c77275055e7fcba44c9199","status":"affected"},{"type":"git","introduced":"f25c0515c521375154c62c72447869f40218c861","fixed":"115ef44a98220fddfab37a39a19370497cd718b9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.1.132","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.84","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.20","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.8","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.16","fixed":"6.1.132"},{"status":"affected","introduced":"6.2","fixed":"6.6.84"},{"status":"affected","introduced":"6.7","fixed":"6.12.20"},{"status":"affected","introduced":"6.13","fixed":"6.13.8"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d02c9acd68950a444acda18d514e2b41f846cb7f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f0a152957d64ce45b4c27c687e7d087e8f45079","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68896dd50180b38ea552e49a6a00b685321e5769","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f996b4f80c2cef1f9c77275055e7fcba44c9199","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/115ef44a98220fddfab37a39a19370497cd718b9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T17:15:04.741Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21980","url":"https://www.cve.org/CVERecord?id=CVE-2025-21980","licence":"CVE Terms of Use","modified":"2026-05-11T21:10:18.630Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21980","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21980","licence":"Public domain","modified":"2026-06-17T08:44:45.717Z"}],"updatedAt":"2026-11-25T22:58:55.921Z","epss":{"score":0.00219,"percentile":0.13124,"date":"2026-12-01T12:00:22.000Z"}}