Junglewise Threat Intelligence

CVE-2025-21647: Linux Kernel out of bounds access in sch_cake network scheduler

CVE-2025-21647 · Severity: high · CVSS 7.1 · Published 2025-01-19

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking subsystem could allow a local user to cause a system crash or potentially access sensitive memory. The issue exists in the 'sch_cake' component, which manages network traffic flow to ensure fairness between different users or devices. An attacker could exploit this to disrupt network operations or gain unauthorized access to information on the system.

Technical details

An out-of-bounds (OOB) read vulnerability exists in the Linux kernel's Common Applications Kept Enhanced (CAKE) network scheduler (sch_cake.c). The root cause is a logic error that allows an underflow of per-host bulk flow fairness counters. When these counters underflow, they can be used as indices for memory access, leading to OOB access. The vulnerability can be triggered locally to cause a denial-of-service (system crash) or potentially leak kernel memory. The fix introduces helper functions that perform explicit bounds checking before incrementing or decrementing these counters.

Affected products

  • Linux Linux Kernel 5.4.284 to 5.4.291, 5.10.226 to 5.10.235, 5.15.167 to 5.15.179, 6.1.110 to 6.1.125, 6.6.51 to 6.6.72, 6.11.1 to 6.12.10

Timeline

  • 2025-01-07: patched: Initial patch submitted by Toke Høiland-Jørgensen
  • 2025-01-19: disclosed: CVE-2025-21647 published

References

Related threats