Junglewise Threat Intelligence

CVE-2024-53124: Linux Kernel race condition in IPv6 and DCCP socket allocation

CVE-2024-53124 · Severity: medium · CVSS 4.7 · Published 2024-12-02

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A race condition vulnerability was identified in the Linux kernel's networking subsystem. This flaw occurs when multiple processing threads simultaneously access memory allocation data for network sockets, specifically during IPv6 and DCCP connection handling. An attacker could potentially exploit this to cause a system crash or denial-of-service condition, impacting the availability of the affected server or device.

Technical details

A data race exists in the Linux kernel networking stack around 'sk->sk_forward_alloc'. The vulnerability occurs when 'tcp_v6_do_rcv()' or 'dccp_v6_do_rcv()' is called concurrently by multiple threads while the socket is in the 'TCP_LISTEN' state without the socket lock being held. This leads to unsynchronized updates to the forward memory allocation counter via 'sk_forward_alloc_add()'. Specifically, 'skb_clone_and_charge_r()' was being incorrectly invoked for listening sockets, leading to mismatched memory reclamation and potential kernel warnings or crashes. The fix ensures these functions are not called when the socket is in a listening state.

Affected products

  • Linux Linux Kernel 6.12.0-rc5

Timeline

  • 2024-11-07: patched: Initial patch submitted by Wang Liang
  • 2024-12-02: advisory: CVE-2024-53124 published

References

Related threats