CVE-2026-72194 PUBLISHED

fs/ntfs3: add depth limit to indx_find_buffer to prevent stack overflow

Assigner: Linux
Reserved: 09.08.2026 Published: 15.08.2026 Updated: 17.08.2026

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: add depth limit to indx_find_buffer to prevent stack overflow

indx_find_buffer() recursively descends the B+ tree index with no depth limit. A crafted NTFS image with circular index node references causes unbounded recursion, overflowing the kernel stack and panicking the system.

This is reachable by mounting a malicious NTFS filesystem (e.g. from a USB drive via desktop automount) and deleting a file whose index entry triggers the rebalancing fallback path in indx_delete_entry().

Add a depth parameter and bail out with -EINVAL when it reaches the fnd->nodes array bound, matching the constraint already enforced by fnd_push() in indx_find().

The related function indx_find() was previously patched for a similar infinite-loop issue (commit 1732053c8a6b), but indx_find_buffer() was missed.

Metrics

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

AV:N - ntfs3 registers export_operations; on NAS/hybrid servers exporting an NTFS volume via nfsd or ksmbd, a remote client's unlink reaches vfs_unlink→ntfs_unlink_inode→ni_remove_name→indx_delete_entry→indx_find_buffer without any local syscall from the attacker. AC:L - The attacker fully controls on-disk INDEX_ENTRY VCN pointers and can craft circular B+ tree references so indx_find_buffer() recurses deterministically until stack exhaustion; no race, special heap layout, or other uncontrollable condition is required beyond presenting the image and issuing unlink. PR:N - Exploitation requires only supplying a malicious NTFS image later mounted by root/udisks2/automount, or write permission on an NFS/SMB-exported NTFS share (including guest/anonymous write); no init-namespace root, CAP_SYS_ADMIN, or other elevated host credentials are needed on the trigger path. UI:N - Once an administrator has mounted and optionally exported the NTFS volume—or desktop/kiosk automount has attached removable media—the attacker issues unlink directly; no further victim clicks, file opens, or cooperative actions beyond that standing configuration are required. S:U - Impact is kernel stack overflow and panic within the host kernel's security authority; this is standard local or network filesystem exploitation, not a VM escape, IOMMU bypass, or cross-scope sandbox breakout. C:H - Unbounded recursion overflows the kernel stack, corrupting stack memory before the guard-page fault; under overestimation guidance, kernel stack corruption is treated as potentially enabling arbitrary kernel memory disclosure or information leakage via control-data overwrite. I:H - Recursive stack exhaustion corrupts return addresses and adjacent stack frames on the kernel stack, plausibly enabling control-flow hijack or arbitrary kernel modification even though the immediate failure mode is a panic. A:H - The fix commit and call path confirm unbounded recursion overflows the kernel stack and panics the system; any kernel oops, stack guard fault, or panic from this path scores Availability High.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 82cae269cfa953032fbb8980a7d554d60fb00b17 to 99031d4f63c785d2a985b6a4c64c4256f7117052 (excl.)
  • affected from 82cae269cfa953032fbb8980a7d554d60fb00b17 to 65357a81f64cb3fbe13b4b937586755e4b3a072f (excl.)
  • affected from 82cae269cfa953032fbb8980a7d554d60fb00b17 to 96fb64f9da86fd2dbd78fbe9d9e41ae27e12ce34 (excl.)
  • affected from 82cae269cfa953032fbb8980a7d554d60fb00b17 to 78612f478f9fadcec4f9b3b089970da67ffb47e9 (excl.)
  • affected from 82cae269cfa953032fbb8980a7d554d60fb00b17 to 908c9243ba309997b73cbda3e4c563d0fb345ee9 (excl.)
  • affected from 82cae269cfa953032fbb8980a7d554d60fb00b17 to fdf50c788e0991e42a187ff75479a0df7fb752f1 (excl.)
  • affected from 82cae269cfa953032fbb8980a7d554d60fb00b17 to 1ebd684b8f627f75bc3e03f8b2ad8400fd1f02cd (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.15 is affected
  • unaffected from 0 to 5.15 (excl.)
  • unaffected from 5.15.212 to 5.15.* (incl.)
  • unaffected from 6.1.178 to 6.1.* (incl.)
  • unaffected from 6.6.145 to 6.6.* (incl.)
  • unaffected from 6.12.97 to 6.12.* (incl.)
  • unaffected from 6.18.40 to 6.18.* (incl.)
  • unaffected from 7.1.5 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References