Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99812

published high CVSS 3.1 · 7.8

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

Published
30 Nov 2026, 07:52:16 UTC
Updated
01 Dec 2026, 05:43:33 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux9256ec35359f52c1e390cf419873cf519ee332b6 to < e054aeaf756808656dc90023aad8ca4e906cbe1e · 9256ec35359f52c1e390cf419873cf519ee332b6 to < e784ee49dffa83a53837884ffbb123575c8dd179 · 9256ec35359f52c1e390cf419873cf519ee332b6 to < 8bb706de22b741ede9c86244a5cca55b9b79ecc1 · 9256ec35359f52c1e390cf419873cf519ee332b6 to < a0663cf4bfaa8afb0f7318e9d024425dc8beed05 · 9256ec35359f52c1e390cf419873cf519ee332b6 to < ea6e4b5031cfd6ebb84e26c3766e8591979e8125 · 9256ec35359f52c1e390cf419873cf519ee332b6 to < bf9a6578e03b065335836e025356b4b9170b9449 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

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

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The trigger is the local fallocate(FALLOC_FL_INSERT_RANGE) syscall: ntfs_fallocate() calls attr_insert_range(), whose still-resident branch does memmove(data + bytes, data, bytes). The bad values are the caller's own offset and length. Neither NFS nor ksmbd forwards an insert-range request, so no remote protocol carries the input. AC:L - The overflow needs clusters of 2K or less so the $DATA attribute stays resident after attr_set_size(). The attacker sets this up: they format the image with mkntfs -c 512, mount it through udisks2 (polkit allows loop-setup and mount for an active session), write a few bytes, and set system.ntfs_attrib=0x200. After that the overflow happens every time. PR:L - Any ordinary local user who can write a file on an ntfs3 mount can do this. The sparse flag comes from setxattr system.ntfs_attrib, and ntfs_setxattr()/ni_new_attr_flags() apply it to a resident attribute with no owner or capability check. The rw mount of the attacker's own volume needs only an active udisks2 session, not root. UI:N - The attacker does every step: builds the volume, mounts it through udisks2, creates and writes the file, sets the xattr, and calls fallocate. No other user or administrator has to act. S:U - The corruption stays inside the kernel's general kmalloc heap, next to the MFT record buffer. It does not cross a VM, IOMMU or other separate security authority. C:H - The memmove writes up to about D + 2*bytes - record_size zero bytes past the kmalloc(record_size) mrec buffer (272 bytes into the neighbouring kmalloc-1k object in the KASAN report). Zeroing a neighbour's refcount, length or pointer fields is a known way to build a use-after-free and then arbitrary kernel read. I:H - This is a slab out-of-bounds write whose length the attacker controls, in multiples of the cluster size and through the record offset (8-byte steps via the file name length). It can reach about 2 KiB into neighbouring kmalloc-1k/4k objects. Controlled zero-fill overflows have been turned into full privilege escalation before, e.g. CVE-2021-22555. A:H - Each fallocate call corrupts whichever slab object sits next to the MFT record buffer, and leads to a kernel oops or panic once that object is used. The attacker can repeat it at will with new files on their own volume.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 9256ec35359f52c1e390cf419873cf519ee332b6 to < e054aeaf756808656dc90023aad8ca4e906cbe1e (affected · git)9256ec35359f52c1e390cf419873cf519ee332b6 to < e784ee49dffa83a53837884ffbb123575c8dd179 (affected · git)9256ec35359f52c1e390cf419873cf519ee332b6 to < 8bb706de22b741ede9c86244a5cca55b9b79ecc1 (affected · git)9256ec35359f52c1e390cf419873cf519ee332b6 to < a0663cf4bfaa8afb0f7318e9d024425dc8beed05 (affected · git)9256ec35359f52c1e390cf419873cf519ee332b6 to < ea6e4b5031cfd6ebb84e26c3766e8591979e8125 (affected · git)9256ec35359f52c1e390cf419873cf519ee332b6 to < bf9a6578e03b065335836e025356b4b9170b9449 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
f06dccbee8244715c8f6e440f82933a2403f4783ebd535f23ed1fcda63d18490
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected