Junglewise Threat Intelligence

CVE-2024-40960: Linux Kernel NULL pointer dereference in IPv6 rt6_probe

CVE-2024-40960 · Severity: medium · CVSS 5.5 · Published 2024-07-12

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's IPv6 networking component that could allow a local user to crash the system. The issue occurs when the system attempts to probe network routes and encounters an unexpected empty data structure. This results in a system 'oops' or kernel panic, leading to a denial-of-service condition that disrupts operations and availability.

Technical details

A NULL pointer dereference vulnerability exists in the Linux kernel's IPv6 routing subsystem within the rt6_probe() function in net/ipv6/route.c. The root cause is a failure to validate the return value of __in6_dev_get(dev) before dereferencing it. An attacker with local access can trigger this code path (e.g., via rawv6_sendmsg) to cause a general protection fault or kernel panic. The vulnerability was discovered using syzbot and has been addressed by adding a check to bail out if __in6_dev_get() returns NULL. Patches are available across multiple stable kernel branches.

Affected products

  • Linux Linux Kernel Fixed in 6.10-rc2 and various stable branches (e.g., 6.9.8, 6.6.37, 6.1.97)

Timeline

  • 2024-06-15: patched: Initial patch authored by Eric Dumazet
  • 2024-07-12: advisory: CVE-2024-40960 published

References

Related threats