BreachSpiderVerified, not vibes

CVE-2025-40270 in Folio products

High 7.8

In the Linux kernel, the following vulnerability has been resolved: mm, swap: fix potential UAF issue for VMA readahead Since commit 78524b05f1a3 ("mm, swap: avoid redundant swap device pinning"), the common helper for allocating and preparing a folio in the swap cache layer no longer tries to get a swap device re...

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

CVSS 3.17.8
EPSS0.2%
EPSS percentile7th
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 6.15
Swapoff — —
Target — —

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, swap: fix potential UAF issue for VMA readahead Since commit 78524b05f1a3 ("mm, swap: avoid redundant swap device pinning"), the common helper for allocating and preparing a folio in the swap cache layer no longer tries to get a swap device reference internally, because all callers of __read_swap_cache_async are already holding a swap entry reference. The repeated swap device pinning isn't needed on the same swap device. Caller of VMA readahead is also holding a reference to the target entry's swap device, but VMA readahead walks the page table, so it might encounter swap entries from other devices, and call __read_swap_cache_async on another device without holding a reference to it. So it is possible to cause a UAF when swapoff of device A raced with swapin on device B, and VMA readahead tries to read swap entries from device A. It's not easy to trigger, but in theory, it could cause real issues. Make VMA readahead try to get the device reference first if the swap device is a different one from the target entry.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40270
BreachSpider IDBS-2025-GLOBAL-259038-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 potential use-after-free (UAF) issue was identified in the Linux kernel's memory management (mm) and swap subsystems, specifically affecting the Virtual Memory Area (VMA) readahead mechanism. This issue has been resolved in recent commits.

The vulnerability arises from a UAF condition in the swap cache layer during the asynchronous readahead of VMA pages. The issue was introduced by a change that removed internal swap device reference management in the common helper function for allocating and preparing folios in the swap cache layer.

Questions

What is CVE-2025-40270?

A potential use-after-free (UAF) issue was identified in the Linux kernel's memory management (mm) and swap subsystems, specifically affecting the Virtual Memory Area (VMA) readahead mechanism. This issue has been resolved in recent commits.

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

CVE-2025-40270 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-40270 actively exploited?

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

How do I remediate CVE-2025-40270?

Priority: MEDIUM.

What systems are affected by CVE-2025-40270?

CVE-2025-40270 affects Folio; Kernel; Linux Linux; Swapoff; Target.

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.