Junglewise Threat Intelligence

CVE-2024-50127: Linux Kernel use-after-free in taprio_change

CVE-2024-50127 · Severity: high · CVSS 7.8 · Published 2024-11-05

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's networking subsystem, specifically within the component responsible for traffic scheduling (taprio). A local attacker could exploit this flaw to cause a system crash or potentially execute unauthorized code by triggering a memory management error. This could lead to a complete loss of system availability or unauthorized access to sensitive data.

Technical details

A use-after-free (UAF) vulnerability exists in net/sched/sch_taprio.c within the taprio_change() function. The issue arises because the 'admin' pointer can become dangling during a scheduler switch or removal initiated by advance_sched(), as the critical section protected by q->current_entry_lock is insufficient to prevent concurrent access and freeing. An attacker with local access can trigger this race condition to cause a kernel panic or potentially achieve privilege escalation. The fix involves using rcu_replace_pointer() instead of rcu_assign_pointer() to ensure the 'admin' pointer is updated safely before the memory is scheduled for freeing via RCU.

Affected products

  • Linux Linux Kernel 5.2 to 5.15.170, 5.16 to 6.1.115, 6.2 to 6.6.59, 6.7 to 6.11.6, 6.12-rc1 to 6.12-rc4

Timeline

  • 2024-11-05: disclosed
  • 2024-11-05: advisory
  • 2024-11-01: patched

References

Related threats