Skip to main content
Vulnerability Database/CVE-2024-57900

CVE-2024-57900: Linux Kernel Race Condition Vulnerability

CVE-2024-57900 is a race condition flaw in the Linux Kernel ILA subsystem that causes slab-use-after-free errors during concurrent operations. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-57900 Overview

CVE-2024-57900 is a use-after-free vulnerability [CWE-416] in the Linux kernel's Identifier-Locator Addressing (ILA) subsystem. The flaw exists in the ila_add_mapping() function within net/ipv6/ila/ila_xlat.c. Concurrent ILA_CMD_ADD netlink commands can race during calls to nf_register_net_hooks(), resulting in a slab use-after-free detected by KASAN in rht_key_hashfn() during rhashtable lookups. A local, authenticated attacker able to issue ILA netlink commands can trigger memory corruption affecting confidentiality, integrity, and availability on the host.

Critical Impact

Local attackers with privileges to issue ILA netlink commands can trigger a slab use-after-free in the kernel's IPv6 ILA translation path, enabling potential privilege escalation or system crash.

Affected Products

  • Linux kernel stable branches prior to the patched commits
  • Linux kernel 6.13 release candidates rc1 through rc5
  • Debian LTS distributions shipping affected kernel versions

Discovery Timeline

  • 2025-01-15 - CVE-2024-57900 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-57900

Vulnerability Analysis

The vulnerability stems from unserialized access to nf_register_net_hooks() in the ILA translation subsystem. When two threads concurrently execute ILA_CMD_ADD netlink commands, both can enter ila_add_mapping() and race during netfilter hook registration. The earlier fix in commit 031ae72825ce ("ila: call nf_unregister_net_hooks() sooner") addressed a related ordering issue but did not fully serialize the registration path.

The syzbot reproducer triggers a KASAN slab-use-after-free report in rht_key_hashfn() reached from __rhashtable_lookup(). The read occurs during ila_lookup_wildcards() on the packet receive path through ila_nf_input(), called from the netfilter hook chain inside ipv6_rcv(). Because the lookup touches freed slab memory, the kernel reads attacker-influenced data and can be driven toward further corruption.

Root Cause

The root cause is missing mutual exclusion around nf_register_net_hooks() in the ILA xlat module. The patch introduces a mutex ensuring that at most one thread registers netfilter hooks at a time, closing the window where a partially initialized rhashtable state could be observed by concurrent receive-path lookups.

Attack Vector

Exploitation requires local access with the capability to issue ILA netlink commands over an AF_NETLINKNETLINK_GENERIC socket. The attacker opens multiple threads and sends concurrent ILA_CMD_ADD requests to race hook registration against the IPv6 receive path. No user interaction is required. The attack scope remains unchanged, and successful exploitation yields high impact to confidentiality, integrity, and availability.

For technical details on the patched code paths, see the upstream fix at Kernel Commit eba25e2 and the related series linked in the NVD advisory references.

Detection Methods for CVE-2024-57900

Indicators of Compromise

  • KASAN reports citing slab-use-after-free in rht_key_hashfn or __rhashtable_lookup originating from ila_lookup_wildcards or ila_nf_input
  • Unexpected kernel oops or panic traces in net/ipv6/ila/ila_xlat.c on hosts using ILA translation
  • Processes without a legitimate ILA configuration role issuing repeated ILA_CMD_ADD generic netlink messages

Detection Strategies

  • Enable CONFIG_KASAN on test and staging kernels to surface the use-after-free during fuzzing or regression testing
  • Monitor kernel ring buffer (dmesg, journalctl -k) for BUG, KASAN, or general protection fault entries referencing the ila module
  • Audit auditd and eBPF telemetry for unprivileged workloads loading the ila module or opening NETLINK_GENERIC sockets targeting the ILA family

Monitoring Recommendations

  • Alert on kernel crashes and module faults from endpoint telemetry sources ingested into SIEM pipelines
  • Track kernel versions across the fleet and flag hosts running Linux 6.13 release candidates or unpatched stable branches
  • Correlate netlink activity with process lineage to detect anomalous local actors interacting with the ILA subsystem

How to Mitigate CVE-2024-57900

Immediate Actions Required

  • Update affected Linux kernels to a version containing the serialization patch from the stable tree
  • Apply Debian LTS kernel updates referenced in the Debian LTS Announcement 1 and Debian LTS Announcement 2
  • Restrict local shell access and CAP_NET_ADMIN on multi-tenant hosts until kernels are patched

Patch Information

The upstream fix adds a mutex serializing calls to nf_register_net_hooks() within the ILA xlat module. Backported patches are available for multiple stable branches, including commits 1638f43, 17e8fa8, 260466b, 3d1b63c, ad0677c, d301789, and eba25e2.

Workarounds

  • Blacklist the ila kernel module on systems that do not require IPv6 Identifier-Locator Addressing
  • Deny load of the ILA module via modprobe configuration and verify with lsmod | grep ila
  • Limit CAP_NET_ADMIN and generic netlink access to trusted administrative accounts to reduce reachability of the vulnerable code path
bash
# Prevent the ila module from loading at boot
echo 'install ila /bin/true' | sudo tee /etc/modprobe.d/disable-ila.conf
sudo update-initramfs -u

# Verify the module is not loaded
lsmod | grep -i ila

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.