First published: Tue Apr 01 2025(Updated: )
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().
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-21980 has been classified as a moderate severity vulnerability due to the potential for a NULL pointer dereference in the GRED scheduler.
To address CVE-2025-21980, update to the latest version of the Linux kernel that includes the fix for this vulnerability.
The potential impact of CVE-2025-21980 includes system instability or crashes due to NULL pointer dereference in the GRED scheduler.
CVE-2025-21980 affects various versions of the Linux kernel prior to the fix being implemented in subsequent releases.
There are no recommended workarounds for CVE-2025-21980; updating the kernel is the primary response for mitigation.