fs: ntfs3: Fix integer overflow in run_unpack()

Summary

CVECVE-2025-40068
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-10-28 12:15:41 UTC
Updated2026-07-30 06:24:09 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 8.4 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.001700000 probability, percentile 0.066320000 (date 2026-07-31)


VersionSourceTypeScoreSeverityVector
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary8.4HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED8.4HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

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

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 f6b36cfd25cbadad63447c673743cf771090e756 git Not specified
CNA Linux Linux affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 3ac37e100385b59ac821a62118494442238aaac4 git Not specified
CNA Linux Linux affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 a86c8b9d03f7101e1750233846fe989df6f0d631 git Not specified
CNA Linux Linux affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 9378cfe228c2c679564a4116bcb28c8e89dff989 git Not specified
CNA Linux Linux affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 5aa5799d162ad1b8e8b699d48b6218143c695a78 git Not specified
CNA Linux Linux affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 736fc7bf5f68f6b74a0925b7e072c571838657d2 git Not specified
CNA Linux Linux affected 5.15 Not specified
CNA Linux Linux unaffected 5.15 semver Not specified
CNA Linux Linux unaffected 5.15.195 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.156 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.112 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.53 6.12.* semver Not specified
CNA Linux Linux unaffected 6.17.3 6.17.* semver Not specified
CNA Linux Linux unaffected 6.18 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/f6b36cfd25cbadad63447c673743cf771090e756 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3ac37e100385b59ac821a62118494442238aaac4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5aa5799d162ad1b8e8b699d48b6218143c695a78 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a86c8b9d03f7101e1750233846fe989df6f0d631 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/736fc7bf5f68f6b74a0925b7e072c571838657d2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9378cfe228c2c679564a4116bcb28c8e89dff989 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report