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.
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
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| bpftool · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| bpftool-debuginfo · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| bpftool6.12 · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| bpftool6.12-debuginfo · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-debuginfo · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-debuginfo-common-aarch64 · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-debuginfo-common-x86_64 · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-devel · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-headers · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-libbpf · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-libbpf-debuginfo · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-libbpf-devel · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-libbpf-static · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-livepatch-6.1.156-177.286 · amzn 2023 | 1:1.0-0.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-livepatch-6.12.53-69.119 · amzn 2023 | 1:1.0-0.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel-modules-extra · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-modules-extra-common · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-tools · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-tools-debuginfo · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel-tools-devel · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| kernel6.12 · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-debuginfo · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-debuginfo-common-aarch64 · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-debuginfo-common-x86_64 · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-devel · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-headers · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-libbpf · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-libbpf-debuginfo · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-libbpf-devel · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-libbpf-static · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-modules-extra · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-modules-extra-common · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-tools · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-tools-debuginfo · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| kernel6.12-tools-devel · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| linux · Debian 12.15 (bookworm) | 6.1.158-1 | DEBIAN-CVE-2025-40068 | Oct 28, 2025 |
| linux · Debian 13.5 (trixie) | 6.12.57-1 | DEBIAN-CVE-2025-40068 | Oct 28, 2025 |
| linux · Debian 14 | 6.17.6-1 | DEBIAN-CVE-2025-40068 | Oct 28, 2025 |
| perf · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| perf-debuginfo · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| perf6.12 · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| perf6.12-debuginfo · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| python3-perf · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| python3-perf-debuginfo · amzn 2023 | 1:6.1.156-177.286.amzn2023 | ALAS2023-2025-1253 | Oct 27, 2025 |
| python3-perf6.12 · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
| python3-perf6.12-debuginfo · amzn 2023 | 1:6.12.53-69.119.amzn2023 | ALAS2023-2025-1254 | Oct 27, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
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.