Junglewise Threat Intelligence

CVE-2024-53057: Linux Kernel use-after-free in net/sched qdisc_tree_reduce_backlog

CVE-2024-53057 · Severity: high · CVSS 7.8 · Published 2024-11-19

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking subsystem could allow a local user to crash the system or potentially execute unauthorized code. The issue occurs when the system incorrectly manages network traffic queues, leading to memory corruption. This could impact the stability and security of servers and workstations running affected versions of Linux.

Technical details

A use-after-free (UAF) vulnerability exists in net/sched/sch_api.c within the qdisc_tree_reduce_backlog function. The root cause is a flawed assumption that Qdiscs with a major handle of ffff: are always root or ingress; however, it is valid to create egress qdiscs with this handle. When certain qdiscs like Deficit Round Robin (DRR) maintain an active class list, this logic error leads to a dangling class pointer. An attacker with local access can exploit this by manipulating network queueing disciplines to trigger the UAF. Patches have been released across multiple stable kernel branches to ensure iteration stops correctly at TC_H_ROOT.

Affected products

  • Linux Linux Kernel 2.6.25 to 4.19.323, 4.20 to 5.4.285, 5.5 to 5.10.229, 5.11 to 5.15.171, 5.16 to 6.1.116, 6.2 to 6.6.60, 6.7 to 6.11.7, 6.12-rc1 to 6.12-rc5

Timeline

  • 2024-11-19: advisory: Initial disclosure and NVD publication
  • 2024-10-29: patched: Mainline kernel patch committed

References

Related threats