CVE-2025-40238: Linux kernel · net/mlx5: Fix IPsec cleanup over MPV device
Source GCVE Database
Not known to be exploited.
Data as of 25 Nov 2026, 03:38 UTC
Rated High by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Exploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel by ensuring the devcom device is unregistered and device operations are marked complete before disabling blocking event notifiers in mlx5e_detach_netdev(). Users should update to a Linux kernel version that includes this fix. Patch status is not explicitly confirmed in the provided data; verify with the vendor advisory or Linux kernel changelogs for the fixed version.
Description
CVE-2025-40238 is a vulnerability in the Linux kernel's mlx5 driver related to IPsec cleanup over MPV devices. The issue occurs during the mlx5e_detach_netdev() process where blocking event notifiers, including IPsec MPV events, are disabled without properly unregistering the devcom device. This can lead to use of invalid netdev references during future devcom events, causing a kernel NULL pointer dereference and system crash (kernel oops).
References
- nvd.nist.gov/vuln/detail/CVE-2025-40238 (opens in a new tab)
- git.kernel.org/stable/c/664f76be38a18c61151d0ef248c7e2f3afb4f3c7 (opens in a new tab)
- git.kernel.org/stable/c/7e212cebc863c2c7a82f480446cd731721451691 (opens in a new tab)
- git.kernel.org/stable/c/8956686d398eca6d324d2d164f9d2a281175a3a1 (opens in a new tab)