CVE-2024-40961
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-40961 is a vulnerability in the Linux kernel's IPv6 implementation that could lead to a NULL pointer dereference in the fib6nhinit() function. The vulnerability was discovered when syzbot identified that in6devget() can return NULL, which wasn't properly handled in the code (Kernel Patch). This issue affects Linux kernel versions from 4.17 up to versions before 6.9.7 (NVD).

Technical details

The vulnerability occurs in the IPv6 routing functionality where the fib6nhinit() function fails to properly check for NULL return values from in6devget(). When calling ip6validategw() and ip6routechecknh(), the code assumes idev is not NULL. This can lead to a general protection fault when attempting to access the cnf.disableipv6 member of a NULL pointer (Kernel Patch). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can result in a kernel crash (denial of service) when attempting to access invalid memory locations. This occurs due to a NULL pointer dereference, which triggers a general protection fault in the kernel (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through a patch that adds proper NULL pointer checking before accessing the idev structure. The fix has been backported to multiple stable kernel versions. Users should update their kernel to versions that include the fix (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management