CVE-2025-40272: Linux kernel · mm/secretmem: fix use-after-free race in fault handler
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 12:55 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 26 Oct 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel by correcting the order of operations in the fault handler. Users should apply the official kernel updates that include this fix. Since this is not a cloud service, remediation depends on deploying patched kernel versions. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory or Linux kernel mailing lists for the latest patch availability and deployment instructions.
Description
A use-after-free race condition was identified and fixed in the Linux kernel's secret memory subsystem (memfd_secret). The flaw occurs when concurrent page faults on the same secret memory page cause improper ordering of freeing and remapping operations, potentially leading to supervisor not-present page faults. This vulnerability could impact confidentiality, integrity, and availability of the affected system. The issue has been resolved by correcting the order of operations in the fault handler to prevent the page from becoming prematurely available to the allocator.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40272 (opens in a new tab)
- git.kernel.org/stable/c/1e4643d6628edf9c0047b1f8f5bc574665025acb (opens in a new tab)
- git.kernel.org/stable/c/42d486d35a4143cc37fc72ee66edc99d942dd367 (opens in a new tab)
- git.kernel.org/stable/c/4444767e625da46009fc94a453fd1967b80ba047 (opens in a new tab)
- git.kernel.org/stable/c/52f2d5cf33de9a8f5e72bbb0ed38282ae0bc4649 (opens in a new tab)
- git.kernel.org/stable/c/6f86d0534fddfbd08687fa0f01479d4226bc3c3d (opens in a new tab)
- git.kernel.org/stable/c/bb1c19636aedae39360e6fdbcaef4f2bcff25785 (opens in a new tab)