Junglewise Threat Intelligence

CVE-2024-57996: Linux kernel out-of-bounds access in sch_sfq network scheduler

CVE-2024-57996 · Severity: medium · CVSS 5.5 · Published 2025-02-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's network traffic scheduling component could allow a local user to crash the system. By configuring a specific network queueing rule with an invalid packet limit, an attacker can trigger an internal error that leads to a system crash (denial of service). This affects the reliability and availability of the operating system.

Technical details

An out-of-bounds array access vulnerability exists in net/sched/sch_sfq.c within the Linux kernel. The root cause is an improper validation of the 'limit' parameter in the Stochastic Fairness Queueing (SFQ) scheduler; specifically, a limit of 1 packet causes an internal underflow of the queue length (qlen) during dequeue operations. This underflow leads to an out-of-bounds index access in the 'sfq_head' structure, resulting in a kernel crash (UBSAN: array-index-out-of-bounds). The attack requires local privileges to configure network traffic control (tc) settings. Patches have been released for various stable kernel branches to enforce a minimum limit check.

Affected products

  • Linux Linux kernel All versions prior to 2024-12-05 patches

Timeline

  • 2024-12-05: patched: Initial patch committed to Linux stable tree
  • 2025-02-27: disclosed: CVE published

References

Related threats