# CVE-2025-40068: fs: ntfs3: Fix integer overflow in run_unpack()

CVE-2025-40068 is fixed in 45 products on 1 platform, first by ALAS2023-2025-1253, released October 27, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2025-40068
- Priority: High
- CVSS: 8.4 (Important)
- EPSS: 0.0018
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 27, 2025
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-40068

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | bpftool-debuginfo amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | bpftool6.12 amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | bpftool6.12-debuginfo amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-debuginfo amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-debuginfo-common-aarch64 amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-debuginfo-common-x86_64 amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-devel amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-headers amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-libbpf amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-libbpf-debuginfo amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-libbpf-devel amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-libbpf-static amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-livepatch-6.1.156-177.286 amzn 2023 | 1:1.0-0.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-livepatch-6.12.53-69.119 amzn 2023 | 1:1.0-0.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel-modules-extra amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-modules-extra-common amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-tools amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-tools-debuginfo amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel-tools-devel amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | kernel6.12 amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-debuginfo amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-debuginfo-common-aarch64 amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-debuginfo-common-x86_64 amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-devel amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-headers amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-libbpf amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-libbpf-debuginfo amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-libbpf-devel amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-libbpf-static amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-modules-extra amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-modules-extra-common amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-tools amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-tools-debuginfo amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | kernel6.12-tools-devel amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.158-1 | [DEBIAN-CVE-2025-40068](https://patchblox.com/security/data/fix/linux/debian-cve-2025-40068.md) | Oct 28, 2025 |
| Linux | linux Debian 13.5 (trixie) | 6.12.57-1 | [DEBIAN-CVE-2025-40068](https://patchblox.com/security/data/fix/linux/debian-cve-2025-40068.md) | Oct 28, 2025 |
| Linux | linux Debian 14 | 6.17.6-1 | [DEBIAN-CVE-2025-40068](https://patchblox.com/security/data/fix/linux/debian-cve-2025-40068.md) | Oct 28, 2025 |
| Linux | perf amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | perf-debuginfo amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | perf6.12 amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | perf6.12-debuginfo amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | python3-perf amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | python3-perf-debuginfo amzn 2023 | 1:6.1.156-177.286.amzn2023 | [ALAS2023-2025-1253](https://patchblox.com/security/data/fix/linux/alas2023-2025-1253.md) | Oct 27, 2025 |
| Linux | python3-perf6.12 amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |
| Linux | python3-perf6.12-debuginfo amzn 2023 | 1:6.12.53-69.119.amzn2023 | [ALAS2023-2025-1254](https://patchblox.com/security/data/fix/linux/alas2023-2025-1254.md) | Oct 27, 2025 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
