Skip to main content

Linux Kernel CVE-2025-40068

HIGH
2025-10-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67
8.4
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.8 HIGH

Exploitation needs local ability to mount an attacker-supplied NTFS volume (PR:L), no further interaction once mountable, with high read/corruption impact to disk data.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Generated
Jul 30, 2026 - 07:47 vuln.today
CVE Published
Oct 28, 2025 - 12:15 cve.org
HIGH 8.4

DescriptionCVE.org

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.

AnalysisAI

Local privilege-to-data compromise in the Linux kernel NTFS3 driver allows an attacker who can supply a crafted NTFS volume to bypass inode access checks and read or destroy arbitrary on-disk data. The flaw is an unvalidated integer overflow in run_unpack(), which decodes the compressed runlist ($DATA runs) mapping virtual clusters to logical clusters (LCNs); a forged runlist yields out-of-bounds LCNs. Rated CVSS 8.4 (high) with no public exploit identified at time of analysis; EPSS is low (0.21%, 11th percentile) and it is not in CISA KEV.

Technical ContextAI

NTFS3 is the in-kernel read/write NTFS filesystem driver merged in Linux 5.15. Each file's MFT record stores a runlist - a compressed run-length encoding describing where the file's clusters live on disk. run_unpack() parses these runs and builds a runs_tree that maps VCN→LCN; the RUN_DEALLOCATE path tears runs down without building a tree. The root cause is an unchecked arithmetic addition when accumulating LCN values from attacker-controllable runlist bytes (an integer-overflow class defect, CWE-190; NVD lists CWE as N/A). Because the inode-level access check happens above run_unpack() and the runlist values themselves were never validated, a substituted runlist in a $DATA attribute produces LCNs pointing anywhere on the block device.

Affected ProductsAI

The Linux kernel NTFS3 filesystem driver (fs/ntfs3) is affected on any kernel version shipping NTFS3 (introduced in 5.15) up to the point the fix landed; NVD provides no CPE ranges in this dataset, so exact vulnerable version boundaries are not enumerated here. Fixes were backported across multiple stable branches, evidenced by six kernel.org stable commits (3ac37e10, 5aa5799d, 736fc7bf, 9378cfe2, a86c8b9d, f6b36cfd). Consult the kernel.org stable trees and your distribution's advisory to map the fix to your specific kernel build.

RemediationAI

Upstream fix available (commits, not a tagged product release); update to a kernel that includes the run_unpack() overflow check via the six stable commits at git.kernel.org (3ac37e100385b59ac821a62118494442238aaac4, 5aa5799d162ad1b8e8b699d48b6218143c695a78, 736fc7bf5f68f6b74a0925b7e072c571838657d2, 9378cfe228c2c679564a4116bcb28c8e89dff989, a86c8b9d03f7101e1750233846fe989df6f0d631, f6b36cfd25cbadad63447c673743cf771090e756) - apply your distribution's patched kernel package matching those backports. Until patched, reduce exposure by preventing untrusted NTFS volumes from being parsed: disable automatic mounting of removable media (udisks/autofs), blacklist or unload the ntfs3 module where NTFS support is not needed (modprobe blacklist ntfs3), and restrict mount privileges so only trusted administrators can mount NTFS images. Trade-offs: blacklisting ntfs3 breaks legitimate NTFS access, and disabling automount inconveniences users who rely on USB drives, so scope these controls to systems that do not require NTFS.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected

Share

CVE-2025-40068 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy