Junglewise Threat Intelligence

CVE-2025-21764: Linux Kernel use-after-free in ndisc_alloc_skb

CVE-2025-21764 · Severity: high · CVSS 7.8 · Published 2025-02-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking component could allow a local attacker to cause a system crash or potentially execute unauthorized code. The issue exists in how the system handles IPv6 neighbor discovery, a fundamental process for network communication. 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 the Linux kernel's ndisc_alloc_skb() function within the IPv6 Neighbor Discovery (ndisc) protocol implementation. The root cause is a lack of RCU (Read-Copy-Update) or RTNL (Routing Netlink) locking when accessing the ndisc socket, allowing the socket object to be freed while still in use. A local attacker with low privileges can exploit this race condition to trigger memory corruption. This can result in a kernel panic (denial of service) or potentially arbitrary code execution with kernel privileges. Patches have been released across multiple stable kernel branches to implement proper RCU protection.

Affected products

  • Linux Linux Kernel 3.9 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 fix authored by Eric Dumazet
  • 2025-02-26: disclosed: CVE-2025-21764 assigned and published
  • 2025-02-27: advisory: NVD publication date

References

Related threats