CVE-2026-99812

fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()

When fallocate(FALLOC_FL_INSERT_RANGE) grows a still-resident ntfs3
attribute, attr_insert_range() shifts the inline data using the insert
length 'bytes' as both the destination offset and the copy size:

memmove(data + bytes, data, bytes);

Both are wrong: the shift must start at the insertion point 'vbo' and
move only the data past it (data_size - vbo). When bytes > data_size the
memmove runs off the end of the data_size + bytes buffer and overflows
the adjacent slab object.

Since vbo < data_size is already enforced above, the reworked offsets stay
within the data_size + bytes buffer and cannot under/overflow.

BUG: KASAN: slab-out-of-bounds in attr_insert_range (fs/ntfs3/attrib.c:2581)
Write of size 512 at addr ffff8880135e8b10 by task exploit/142
...
__asan_memmove (mm/kasan/shadow.c:95)
attr_insert_range (fs/ntfs3/attrib.c:2581)
ntfs_fallocate (fs/ntfs3/file.c:618)
vfs_fallocate (fs/open.c:338)
__x64_sys_fallocate (fs/open.c:362)
...

Analysis

AI-generated

Technical impact

This issue involves a slab‑out‑of‑bounds write in the Linux kernel's NTFS3 filesystem driver when the FALLOC_FL_INSERT_RANGE flag is used with fallocate. The bug occurs because the kernel copies too much data during an inline attribute resize, causing a memory overwrite that can corrupt kernel memory. An attacker that can trigger it could potentially execute arbitrary code at kernel level, leading to privilege escalation or system compromise.

Affected Systems

The flaw resides in the Linux kernel, specifically the ntfs3 filesystem module. All Linux kernel variants that include this module are affected, as the vendor list indicates general Linux products without version qualifiers. No version‑specific information is provided, so the recommendation is to patch any recent or current kernel installation that contains ntfs3.

Risk and Exploitability

The CVSS score is not provided, but a kernel heap buffer overflow carries a high severity and can be exploited locally by any user able to write to a file on an NTFS3 filesystem or via an unprivileged process that can invoke fallocate with the insert range flag. The EPSS score is unavailable and the vulnerability is not listed in CISA KEV. The attack requires no special privileges beyond file write access, making it potentially exploitable on multi‑user systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel package that includes the ntfs3 patch
  • Reboot the system to activate the updated kernel
  • If a patch is not immediately available, avoid using fallocate(FALLOC_FL_INSERT_RANGE) on NTFS3 files until the fix is installed

Generated by OpenCVE AI on November 30, 2026 at 15:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-122
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range() When fallocate(FALLOC_FL_INSERT_RANGE) grows a still-resident ntfs3 attribute, attr_insert_range() shifts the inline data using the insert length 'bytes' as both the destination offset and the copy size: memmove(data + bytes, data, bytes); Both are wrong: the shift must start at the insertion point 'vbo' and move only the data past it (data_size - vbo). When bytes > data_size the memmove runs off the end of the data_size + bytes buffer and overflows the adjacent slab object. Since vbo < data_size is already enforced above, the reworked offsets stay within the data_size + bytes buffer and cannot under/overflow. BUG: KASAN: slab-out-of-bounds in attr_insert_range (fs/ntfs3/attrib.c:2581) Write of size 512 at addr ffff8880135e8b10 by task exploit/142 ... __asan_memmove (mm/kasan/shadow.c:95) attr_insert_range (fs/ntfs3/attrib.c:2581) ntfs_fallocate (fs/ntfs3/file.c:618) vfs_fallocate (fs/open.c:338) __x64_sys_fallocate (fs/open.c:362) ...
Title fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 7:52 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 8:18 AM
Modified
Nov 30, 2026, 8:18 AM