BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-40068 in Kernel products

High 8.4

In the Linux kernel, the following vulnerability has been resolved: fs: ntfs3: Fix integer overflow in run_unpack() The MFT record relative to the file being opened contains its runlist, an array containing information about the file's location on the physical disk. Analysis of all Call Stack paths showed that the...

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

CVSS 3.18.4
EPSS0.3%
EPSS percentile12th
FixUnknown

Requires local access, low complexity, no authentication 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
Kernel — —
Linux Linux 5.15
Relative — —

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: fs: ntfs3: Fix integer overflow in run_unpack() The MFT record relative to the file being opened contains its runlist, an array containing information about the file's location on the physical disk. Analysis of all Call Stack paths showed that the values of the runlist array, from which LCNs are calculated, are not validated before run_unpack function. The run_unpack function decodes the compressed runlist data format from MFT attributes (for example, $DATA), converting them into a runs_tree structure, which describes the mapping of virtual clusters (VCN) to logical clusters (LCN). The NTFS3 subsystem also has a shortcut for deleting files from MFT records - in this case, the RUN_DEALLOCATE command is sent to the run_unpack input, and the function logic provides that all data transferred to the runlist about file or directory is deleted without creating a runs_tree structure. Substituting the runlist in the $DATA attribute of the MFT record for an arbitrary file can lead either to access to arbitrary data on the disk bypassing access checks to them (since the inode access check occurs above) or to destruction of arbitrary data on the disk. Add overflow check for addition operation. Found by Linux Verification Center (linuxtesting.org) with SVACE.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40068
BreachSpider IDBS-2025-GLOBAL-258770-I
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2025-10-28
Last modified2026-10-19
SourceNVD

Analysis AI-written, not human-reviewed

A vulnerability in the Linux kernel's NTFS3 filesystem driver could lead to an integer overflow in the run_unpack() function, potentially allowing an attacker to exploit this to execute arbitrary code or cause a denial of service.

An attacker could craft a specially crafted NTFS file system with a malicious MFT record that, when accessed, triggers the integer overflow in the run_unpack() function. This could lead to unauthorized code execution or system instability.

Questions

What is CVE-2025-40068?

A vulnerability in the Linux kernel's NTFS3 filesystem driver could lead to an integer overflow in the run_unpack() function, potentially allowing an attacker to exploit this to execute arbitrary code or cause a denial of service.

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

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

Is CVE-2025-40068 actively exploited?

No confirmed active exploitation of CVE-2025-40068 as of 2026-10-25.

How do I remediate CVE-2025-40068?

Priority: MEDIUM.

What systems are affected by CVE-2025-40068?

CVE-2025-40068 affects Kernel; Linux Linux; Relative.

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":"Kernel","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-19.