Skip to main content
Mallory
MediumVulnerability

CVE-2024-40959: NULL-pointer dereference in Linux kernel IPv6 XFRM source-address selection

Published Jul 12, 2024 · Updated 7 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS5.5Medium · v3.1
EPSS0.28%20th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2024-40959CWE-476 · NULL Pointer Dereference

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.