CVE-2025-40274: Linux kernel · KVM: guest_memfd: Remove bindings on memslot deletion when gmem is dying When
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 2026-10-26.
What to do
AI-suggested
Since no explicit patch or official fix link is provided, users should monitor Linux kernel updates and apply relevant patches once available. Until then, avoid untrusted manipulation of KVM guest memory regions involving guest_memfd. No vendor advisory states 'no action required' or 'already mitigated'.
Description
A use-after-free vulnerability in the Linux kernel's KVM guest_memfd component was resolved. The issue occurs when unbinding a memslot from a guest_memfd instance while the guest_memfd file is in the process of being released, leading to a write operation on freed memory. This was detected by KASAN as a slab-use-after-free bug. The vulnerability could allow an attacker with local privileges to cause memory corruption with high impact on confidentiality, integrity, and availability.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40274 (opens in a new tab)
- git.kernel.org/stable/c/393893693a523e053f84d69320d090b93503f79f (opens in a new tab)
- git.kernel.org/stable/c/a8ac2bd0f98e1a230f1eb3260fa552bf2ef1753b (opens in a new tab)
- git.kernel.org/stable/c/ae431059e75d36170a5ae6b44cc4d06d43613215 (opens in a new tab)