Executive brief
A vulnerability has been identified in the Linux kernel's networking component that handles Address Resolution Protocol (ARP) traffic. This flaw could allow a local attacker to cause a system crash or potentially execute unauthorized actions by exploiting a memory management error. The issue affects a wide range of Linux distributions and has been addressed in recent security updates.
Technical details
A use-after-free (UAF) vulnerability exists in the Linux kernel's 'net/ipv4/arp.c' component. The function 'arp_xmit()' can be invoked without the necessary RTNL (Routing Netlink) or RCU (Read-Copy-Update) locks, leading to a race condition where network device structures may be freed while still in use by the ARP transmission path. An attacker with local access could exploit this to trigger a kernel panic or achieve arbitrary code execution. The fix introduces 'rcu_read_lock()' and 'rcu_read_unlock()' around the 'NF_HOOK' call and utilizes 'dev_net_rcu()' to ensure safe access to network namespaces.
Affected products
- Linux Linux Kernel 4.4 to 5.4.291, 5.5 to 5.10.235, 5.11 to 5.15.179, 5.16 to 6.1.129, 6.2 to 6.6.79, 6.7 to 6.12.16, 6.13 to 6.13.4
Timeline
- 2025-02-07: patched: Initial patch authored by Eric Dumazet
- 2025-02-26: disclosed: CVE assigned and published
- 2025-02-27: advisory: NVD and CISA-ADP enrichment provided
References
- https://git.kernel.org/stable/c/01d1b5c9abcaff29a43f1d17a19c33eec92c7dbe
- https://git.kernel.org/stable/c/10f555e3f573d004ae9d89b3276abb58c4ede5c3
- https://git.kernel.org/stable/c/2c331718d3389b6c5f6855078ab7171849e016bd
- https://git.kernel.org/stable/c/307cd1e2d3cb1cbc6c40c679cada6d7168b18431
- https://git.kernel.org/stable/c/a42b69f692165ec39db42d595f4f65a4c8f42e44
- https://git.kernel.org/stable/c/d9366ac2f956a1948b68c0500f84a3462ff2ed8a
- https://git.kernel.org/stable/c/e9f4dee534eb1b225b0a120395ad9bc2afe164d3