BreachSpiderVerified, not vibes

CVE-2025-40272 in Folio products

High 7.8

In the Linux kernel, the following vulnerability has been resolved: mm/secretmem: fix use-after-free race in fault handler When a page fault occurs in a secret memory file created with `memfd_secret(2)`, the kernel will allocate a new folio for it, mark the underlying page as not-present in the direct map, and add...

Affects 1 product from 4 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS0.2%
EPSS percentile8th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Folio — —
Kernel — —
Linux Linux 5.14
Tasks — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

In the Linux kernel, the following vulnerability has been resolved: mm/secretmem: fix use-after-free race in fault handler When a page fault occurs in a secret memory file created with `memfd_secret(2)`, the kernel will allocate a new folio for it, mark the underlying page as not-present in the direct map, and add it to the file mapping. If two tasks cause a fault in the same page concurrently, both could end up allocating a folio and removing the page from the direct map, but only one would succeed in adding the folio to the file mapping. The task that failed undoes the effects of its attempt by (a) freeing the folio again and (b) putting the page back into the direct map. However, by doing these two operations in this order, the page becomes available to the allocator again before it is placed back in the direct mapping. If another task attempts to allocate the page between (a) and (b), and the kernel tries to access it via the direct map, it would result in a supervisor not-present page fault. Fix the ordering to restore the direct map before the folio is freed.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40272
BreachSpider IDBS-2025-GLOBAL-033298-I
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2025-12-06
Last modified2026-10-15
SourceNVD

Analysis AI-written, not human-reviewed

A use-after-free race condition in the fault handler of the secret memory feature in the Linux kernel can lead to undefined behavior, potentially allowing unauthorized access to memory.

The vulnerability occurs when two tasks cause a page fault in the same page of a secret memory file concurrently. This can lead to a use-after-free condition where a freed memory page is accessed, potentially allowing an attacker to exploit this to gain unauthorized access or cause a system crash.

Questions

What is CVE-2025-40272?

A use-after-free race condition in the fault handler of the secret memory feature in the Linux kernel can lead to undefined behavior, potentially allowing unauthorized access to memory.

What is the CVSS score for CVE-2025-40272?

CVE-2025-40272 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.2%.

Is CVE-2025-40272 actively exploited?

No confirmed active exploitation of CVE-2025-40272 as of 2026-10-17.

How do I remediate CVE-2025-40272?

Priority: HIGH.

What systems are affected by CVE-2025-40272?

CVE-2025-40272 affects Folio; Kernel; Linux Linux; Tasks.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Folio","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-15.