Junglewise Threat Intelligence

CVE-2024-36902: Linux Kernel NULL pointer dereference in ipv6 fib6_rules

CVE-2024-36902 · Severity: medium · CVSS 5.5 · Published 2024-05-30

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking component could allow a local user to crash the system. The issue occurs when the system processes certain IPv6 routing rules, leading to a 'null pointer dereference' that causes a kernel panic. This results in a complete loss of system availability, potentially disrupting operations and requiring a reboot.

Technical details

A NULL pointer dereference vulnerability exists in the Linux kernel's IPv6 implementation within the `fib6_rule_action()` function in `net/ipv6/fib6_rules.c`. The root cause is the unsafe use of `ip6_dst_idev()`, which can return NULL under certain conditions, such as during specific SCTP connection attempts or complex routing lookups. A local attacker can trigger this by initiating network traffic that exercises these specific IPv6 routing paths, leading to a general protection fault and kernel crash. The vulnerability has been addressed by adding a NULL check for the `idev` structure before it is dereferenced. Fixes are available in various stable kernel branches.

Affected products

  • Linux Linux Kernel 6.9.0-rc4-next-20240417-syzkaller

Timeline

  • 2024-05-07: patched: Initial patch authored by Eric Dumazet
  • 2024-05-30: advisory: CVE-2024-36902 published in NVD

References

Related threats