# CVE-2025-40068: fs: ntfs3: Fix integer overflow in run\_unpack()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **Published:** 2025-10-28T11:48:37.636Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< f6b36cfd25cbadad63447c673743cf771090e756; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 3ac37e100385b59ac821a62118494442238aaac4; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< a86c8b9d03f7101e1750233846fe989df6f0d631; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 9378cfe228c2c679564a4116bcb28c8e89dff989; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 5aa5799d162ad1b8e8b699d48b6218143c695a78; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 736fc7bf5f68f6b74a0925b7e072c571838657d2
- Anyone running Linux 5.15

## 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.

## Affected and fixed versions

- Linux: \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< f6b36cfd25cbadad63447c673743cf771090e756; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 3ac37e100385b59ac821a62118494442238aaac4; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< a86c8b9d03f7101e1750233846fe989df6f0d631; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 9378cfe228c2c679564a4116bcb28c8e89dff989; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 5aa5799d162ad1b8e8b699d48b6218143c695a78; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 736fc7bf5f68f6b74a0925b7e072c571838657d2 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 736fc7bf5f68f6b74a0925b7e072c571838657d2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40068. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40068.md
Affected: Linux >= 4342306f0f0d5ff4315a204d315c1b51b914fca5, < f6b36cfd25cbadad63447c673743cf771090e756; >= 4342306f0f0d5ff4315a204d315c1b51b914fca5, < 3ac37e100385b59ac821a62118494442238aaac4; >= 4342306f0f0d5ff4315a204d315c1b51b914fca5, < a86c8b9d03f7101e1750233846fe989df6f0d631; >= 4342306f0f0d5ff4315a204…
Fixed in: Linux 3ac37e100385b59ac821a62118494442238aaac4, Linux 9378cfe228c2c679564a4116bcb28c8e89dff989, Linux 5aa5799d162ad1b8e8b699d48b6218143c695a78, Linux 736fc7bf5f68f6b74a0925b7e072c571838657d2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40068 being exploited?

There is no confirmed exploitation: CVE-2025-40068 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40068?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40068?

Linux \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< f6b36cfd25cbadad63447c673743cf771090e756; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 3ac37e100385b59ac821a62118494442238aaac4; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< a86c8b9d03f7101e1750233846fe989df6f0d631; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 9378cfe228c2c679564a4116bcb28c8e89dff989; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 5aa5799d162ad1b8e8b699d48b6218143c695a78; \>= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \< 736fc7bf5f68f6b74a0925b7e072c571838657d2; Linux 5.15.

### Is there a fix for CVE-2025-40068?

Yes. Fixed in Linux 3ac37e100385b59ac821a62118494442238aaac4, Linux 9378cfe228c2c679564a4116bcb28c8e89dff989, Linux 5aa5799d162ad1b8e8b699d48b6218143c695a78, Linux 736fc7bf5f68f6b74a0925b7e072c571838657d2. Upgrade Linux to 736fc7bf5f68f6b74a0925b7e072c571838657d2 or later.

### How do I check if I'm affected by CVE-2025-40068?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f6b36cfd25cbadad63447c673743cf771090e756>
- other: <https://git.kernel.org/stable/c/3ac37e100385b59ac821a62118494442238aaac4>
- other: <https://git.kernel.org/stable/c/a86c8b9d03f7101e1750233846fe989df6f0d631>
- other: <https://git.kernel.org/stable/c/9378cfe228c2c679564a4116bcb28c8e89dff989>
- other: <https://git.kernel.org/stable/c/5aa5799d162ad1b8e8b699d48b6218143c695a78>
- other: <https://git.kernel.org/stable/c/736fc7bf5f68f6b74a0925b7e072c571838657d2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40068>

HTML: <https://flawdb.com/CVE-2025-40068> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40068>
