
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40272 is a use-after-free race condition vulnerability in the Linux kernel's secret memory (mm/secretmem) fault handler. It affects the memfd_secret(2) subsystem introduced in Linux kernel 5.14, and is present across multiple stable kernel branches prior to patched versions 5.15.197, 6.1.159, 6.6.117, 6.12.59, 6.17.9, and 6.18. The vulnerability was published on December 6, 2025, with patches released shortly after. It carries a CVSS v3.1 base score of 7.8 (High) (Red Hat Advisory, Microsoft MSRC).
The root cause is a race condition (CWE-416: Use After Free) in the secretmem page fault handler. When two tasks concurrently trigger a page fault on the same secret memory page, both may allocate a folio and remove the page from the direct map, but only one succeeds in adding the folio to the file mapping. The losing task must undo its work by (a) freeing the folio and (b) restoring the page to the direct map — but performing these in this order creates a window where the page is returned to the allocator before the direct map is restored. If a third task allocates that page during this window and the kernel attempts to access it via the direct map, a supervisor not-present page fault results. The fix reverses the operation order: restoring the direct map before freeing the folio (Feedly).
Successful exploitation of this race condition can cause kernel crashes (supervisor not-present page fault), memory corruption, or system instability. Because the vulnerability resides in kernel memory management, it could potentially be leveraged to create conditions for further privilege escalation or arbitrary kernel memory access, affecting confidentiality, integrity, and availability. The vulnerability requires local access with low privileges, limiting its scope to systems where unprivileged users can create secret memory files via memfd_secret(2) (Feedly).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of publication. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.024% (very low probability of exploitation in the near term). Exploitation requires local access and the ability to spawn concurrent threads triggering page faults on the same memfd_secret region, making reliable exploitation technically complex (Feedly, Microsoft MSRC).
Apply the appropriate patched Linux kernel version for your branch: 5.15.197, 6.1.159, 6.6.117, 6.12.59, 6.17.9, or 6.18. Downstream distributions including Ubuntu (USN-8096-1/2/3/5), Debian (DLA-4436-1), Amazon Linux 2 (ALAS2KERNEL-5.15-2025-096), and Red Hat have released updated packages. As a temporary workaround, restricting unprivileged access to memfd_secret(2) (e.g., via seccomp or capability restrictions) can reduce exposure. Prioritize patching on multi-tenant or shared systems where local users can create secret memory files (Red Hat Advisory, Ubuntu USN-8096-1, Amazon Linux).
The vulnerability was covered in Rapid7's December 2025 Patch Tuesday roundup and Sophos's end-of-year patch summary, both noting it as part of a broader set of Linux kernel fixes. No significant independent researcher commentary or social media discussion beyond routine CVE tracking has been observed (Rapid7 Blog, Sophos Blog).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."