{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99812","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.435Z","datePublished":"2026-11-30T07:52:16.782Z","dateUpdated":"2026-12-01T05:43:33.228Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:33.228Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()\n\nWhen fallocate(FALLOC_FL_INSERT_RANGE) grows a still-resident ntfs3\nattribute, attr_insert_range() shifts the inline data using the insert\nlength 'bytes' as both the destination offset and the copy size:\n\n  memmove(data + bytes, data, bytes);\n\nBoth are wrong: the shift must start at the insertion point 'vbo' and\nmove only the data past it (data_size - vbo). When bytes > data_size the\nmemmove runs off the end of the data_size + bytes buffer and overflows\nthe adjacent slab object.\n\nSince vbo < data_size is already enforced above, the reworked offsets stay\nwithin the data_size + bytes buffer and cannot under/overflow.\n\n  BUG: KASAN: slab-out-of-bounds in attr_insert_range (fs/ntfs3/attrib.c:2581)\n  Write of size 512 at addr ffff8880135e8b10 by task exploit/142\n   ...\n   __asan_memmove (mm/kasan/shadow.c:95)\n   attr_insert_range (fs/ntfs3/attrib.c:2581)\n   ntfs_fallocate (fs/ntfs3/file.c:618)\n   vfs_fallocate (fs/open.c:338)\n   __x64_sys_fallocate (fs/open.c:362)\n   ..."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/attrib.c"],"versions":[{"version":"9256ec35359f52c1e390cf419873cf519ee332b6","lessThan":"e054aeaf756808656dc90023aad8ca4e906cbe1e","status":"affected","versionType":"git"},{"version":"9256ec35359f52c1e390cf419873cf519ee332b6","lessThan":"e784ee49dffa83a53837884ffbb123575c8dd179","status":"affected","versionType":"git"},{"version":"9256ec35359f52c1e390cf419873cf519ee332b6","lessThan":"8bb706de22b741ede9c86244a5cca55b9b79ecc1","status":"affected","versionType":"git"},{"version":"9256ec35359f52c1e390cf419873cf519ee332b6","lessThan":"a0663cf4bfaa8afb0f7318e9d024425dc8beed05","status":"affected","versionType":"git"},{"version":"9256ec35359f52c1e390cf419873cf519ee332b6","lessThan":"ea6e4b5031cfd6ebb84e26c3766e8591979e8125","status":"affected","versionType":"git"},{"version":"9256ec35359f52c1e390cf419873cf519ee332b6","lessThan":"bf9a6578e03b065335836e025356b4b9170b9449","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/attrib.c"],"versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e054aeaf756808656dc90023aad8ca4e906cbe1e"},{"url":"https://git.kernel.org/stable/c/e784ee49dffa83a53837884ffbb123575c8dd179"},{"url":"https://git.kernel.org/stable/c/8bb706de22b741ede9c86244a5cca55b9b79ecc1"},{"url":"https://git.kernel.org/stable/c/a0663cf4bfaa8afb0f7318e9d024425dc8beed05"},{"url":"https://git.kernel.org/stable/c/ea6e4b5031cfd6ebb84e26c3766e8591979e8125"},{"url":"https://git.kernel.org/stable/c/bf9a6578e03b065335836e025356b4b9170b9449"}],"title":"fs/ntfs3: fix slab-out-of-bounds write in attr_insert_range()","x_generator":{"engine":"bippy-1.2.0"}}}}