CVE-2024-40959: NULL-pointer dereference in Linux kernel IPv6 XFRM source-address selection
- Vendor
- Linux
CVE-2024-40959 is a NULL-pointer dereference in the Linux kernel's IPv6 XFRM implementation. The xfrm6_get_saddr() function fails to check whether ip6_dst_idev() returns NULL before accessing the associated IPv6 device structure. This can cause a kernel fault during XFRM source-address selection and route resolution. A syzbot reproduction encountered the fault during WireGuard IPv6 handshake transmission. The vulnerability can cause denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can cause a kernel oops or crash, disrupting host availability and potentially requiring a reboot. The vulnerability-specific CVSS v3 assessment assigns high availability impact and no confidentiality or integrity impact. Privilege escalation, information disclosure, and arbitrary code execution are not established.
Mitigation
If you can’t patch tonight, do this now.
No separate vendor workaround is specified. Until a fixed kernel can be installed, reduce exposure to IPv6 XFRM/IPsec source-address-resolution paths and avoid affected IPv6 networking configurations or workloads where operationally feasible. Restrict untrusted access to interfaces and services that could induce relevant network-processing activity.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update that checks and safely handles a NULL return from ip6_dst_idev() in xfrm6_get_saddr(), then reboot into the updated kernel. Red Hat Enterprise Linux 9 fixes are included in RHSA-2024:8162. For affected Google COS lakitu-kernel-6_1 and lakitu-kernel-6_6 packages, update to version 18555.0.0 or later. Other distributions should apply their corresponding kernel security updates.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-40959 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2024-40959 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-40959?
- As of Nov 17, 2026, Mallory has found no public exploit for CVE-2024-40959.
- Is there a patch for CVE-2024-40959?
- Install a vendor-supported kernel update that checks and safely handles a NULL return from ip6_dst_idev() in xfrm6_get_saddr(), then reboot into the updated kernel. Red Hat Enterprise Linux 9 fixes are included in RHSA-2024:8162.
- What products are affected by CVE-2024-40959?
- Linux Kernel.
- How severe is CVE-2024-40959?
- CVE-2024-40959 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 0.28% (20th percentile) as of Nov 17, 2026.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.