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-99862

published high CVSS 3.1 · 7.8

fs/ntfs3: bound DeleteAttribute asize against rec->used in do_action

Published
30 Nov 2026, 13:17:45 UTC
Updated
01 Dec 2026, 05:43:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb46acd6a6a627d876898e1c84d3f84902264b445 to < c9544b9a24a60d5eb3fedd7765ac741f1f0bf191 · b46acd6a6a627d876898e1c84d3f84902264b445 to < 7e1d4096436edfb365c536ca92d5db8e507add9c · b46acd6a6a627d876898e1c84d3f84902264b445 to < 986ec1c317d15cb8040d82471190e5fb209a564e · b46acd6a6a627d876898e1c84d3f84902264b445 to < e558ee689f40b4d4e8d46d7a76c1c4e439f11200 · b46acd6a6a627d876898e1c84d3f84902264b445 to < 61329755f28185322ab4f7640112b1e5c2f505ee · b46acd6a6a627d876898e1c84d3f84902264b445 to < 81e354bc1e5568fd56ebe1caf1a828df67294d93 · b46acd6a6a627d876898e1c84d3f84902264b445 to < 408216b66afd9ddadaba2dce56fd4af6793e95a2 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 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 Pending Fix; Not Affected Not stated 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: bound DeleteAttribute asize against rec->used in do_action In do_action()'s DeleteAttribute case (fslog.c:3316), attr is Add2Ptr(rec, roff) with roff taken from the on-disk lrh->record_off, and asize = le32_to_cpu(attr->size) is read straight out of the MFT record: asize = le32_to_cpu(attr->size); used = le32_to_cpu(rec->used); if (!check_if_attr(rec, lrh)) goto dirty_vol; ... memmove(attr, Add2Ptr(attr, asize), used - asize - roff); check_if_attr() (fslog.c:2869) walks the attribute chain from rec->attr_off and returns o == ro. Its loop breaks on ATTR_END, so ro may legitimately equal the offset of the ATTR_END marker; that is exactly how CreateAttribute appends to a record. But check_file_record()'s walk (fslog.c:2831) also stops at ATTR_END, so check_attr() never inspects the bytes there. When roff is the ATTR_END offset, those never-validated bytes are what gets read as attr->size, and used - asize - roff underflows. The read itself is also unbounded: roff is a u16 and attr->size is dereferenced at fslog.c:3317, before check_if_attr() has constrained roff at all, so it can be up to ~64K past a record_size-sized object. Commit 0ca0485e4b2e ("fs/ntfs3: validate rec->used in journal-replay file record check") added at fslog.c:2844 if (used < PtrOffset(rec, attr) + sizeof(attr->type)) return false; and its changelog names this very memmove. It bounds rec->used against the ATTR_END offset; it does not bound asize. With record_size 0x400, attr_off 0x38, a valid three-attribute chain ending in ATTR_END at 0x158 and used 0x160, a record whose four bytes at 0x15c read 0x100 gives used - asize - roff = 0x160 - 0x100 - 0x158 = 0xffffff08 i.e. a ~4 GiB memmove whose source and destination both run off the end of rec, a kmalloc(sbi->record_size) object (record.c:105). The equivalent non-replay path already refuses this. mi_remove_attr() performs the same removal and starts with (record.c:548): if (aoff + asize > used) return false; Apply the same bound, spelled as a subtraction to match the neighbouring cases, and move the attr->size read after check_if_attr() so that the header is known to lie inside the record before it is dereferenced. Requiring roff + SIZEOF_RESIDENT <= used rejects the ATTR_END offset without rejecting any real attribute: for an attribute the walk validated, roff + asize <= off(ATTR_END) <= used - 4, and any attribute a DeleteAttribute record can legitimately name carries a full resident header, so roff + SIZEOF_RESIDENT <= roff + asize <= used - 4. check_attr() itself imposes no lower bound on asize, so a crafted sub-header asize can still pass the first test; the second test then bounds it and the memmove stays inside the record. Reproduced by mounting a crafted image on v7.2-rc5, which already contains 0ca0485e4b2e, under KASAN. The image is an ordinary mkfs.ntfs volume with four bytes of one MFT record changed and a crafted $LogFile: BUG: KASAN: slab-out-of-bounds in do_action.isra.0+0x3211/0x83c0 Read of size 4294967048 at addr ffff888002423258 by task mount/66 CPU: 1 UID: 0 PID: 66 Comm: mount Not tainted 7.2.0-rc5 #3 Call Trace: kasan_report+0xce/0x100 kasan_check_range+0x105/0x1b0 __asan_memmove+0x23/0x60 do_action.isra.0+0x3211/0x83c0 log_replay+0x920a/0xd300 ntfs_loadlog_and_replay+0x3ef/0x510 ntfs_fill_super+0x1d23/0x4550 get_tree_bdev_flags+0x2ef/0x550 vfs_get_tree+0x82/0x2f0 fc_mount+0x10/0x1b0 path_mount+0x517/0x1df0 __x64_sys_mount+0x20b/0x270 do_syscall_64+0xf9/0x540 entry_SYSCALL_64_after_hwframe+0x77/0x7f Allocated by task 66: __kasan_kmalloc+0x8f/0xa0 __kmalloc_noprof+0x1b4/0x460 mi_init+0x81/0x110 mi_get+0x6a/0x220 do_action.isra.0+0x1dbf/0x83c0 log_replay+0x920a/0xd300 ntfs_loadlog_and_replay+0x3ef/0x510 ntfs_fill_super+0x1d23/0x4550 The buggy address belongs to the object at ffff88 ---truncated---

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:N/UI:R/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The malformed input is on an NTFS image: a DeleteAttribute record in $LogFile whose record_off points at an MFT record's ATTR_END, plus the 4 unvalidated bytes after it. mount(2) → ntfs_fill_super → ntfs_loadlog_and_replay → log_replay → do_action consumes it. No network protocol carries these bytes; the image is a local file, loop device or attached media. AC:L - Everything is in the attacker's image: the bytes read as attr->size, rec->used, the record LSN, non-empty dirty-page/transaction tables, and the redo/undo record. Replay runs on any rw mount before the VOLUME_FLAG_DIRTY "force" check, and the underflowing memmove then runs deterministically with no race. PR:N - The attacker only crafts the image and needs no account on the target. ntfs3_fs_type has no FS_USERNS_MOUNT (only FS_REQUIRES_DEV|FS_ALLOW_IDMAP), so the attacker cannot mount it from a user namespace; the privileged mount is done by the victim and is scored under UI. UI:R - A user or an automounter (e.g. udisks2) must mount the attacker-supplied NTFS volume read-write. log_replay() skips the do_action() redo/undo passes on read-only mounts, so the rw mount is the required victim action. S:U - The memory corruption and disclosure happen in the kernel's own slab and direct map, within the kernel's security authority; no VM, IOMMU or sandbox boundary is crossed. C:H - attr->size is a free u32. With asize near 2^32 the length is small and attacker-chosen, and Add2Ptr puts the source about 4 GiB past the kmalloc(record_size) record (on 32-bit it wraps to the slab objects just below). The copied kernel memory lands in the record, which do_action() then writes to the attacker's disk with mi_write(). I:H - memmove(attr, attr+asize, used-asize-roff) with an unbounded asize writes past the MFT record buffer: either a ~4 GiB forward shift that corrupts the heap, or a chosen length past the record end. On 32-bit the source wraps below rec, so the attacker's own record bytes overflow into the adjacent kmalloc-1k object. rec->used is also corrupted. A:H - The default underflow (e.g. asize 0x100 gives length 0xffffff08) runs a ~4 GiB memmove off the slab object during mount, causing a KASAN slab-out-of-bounds report or a page-fault oops in the mount task, and heap corruption on kernels without KASAN.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b46acd6a6a627d876898e1c84d3f84902264b445 to < c9544b9a24a60d5eb3fedd7765ac741f1f0bf191 (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < 7e1d4096436edfb365c536ca92d5db8e507add9c (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < 986ec1c317d15cb8040d82471190e5fb209a564e (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < e558ee689f40b4d4e8d46d7a76c1c4e439f11200 (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < 61329755f28185322ab4f7640112b1e5c2f505ee (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < 81e354bc1e5568fd56ebe1caf1a828df67294d93 (affected · git)b46acd6a6a627d876898e1c84d3f84902264b445 to < 408216b66afd9ddadaba2dce56fd4af6793e95a2 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 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

7

Provider assertions

1

Linux · cna

fs/ntfs3: bound DeleteAttribute asize against rec->used in do_action

Provenance

Schema
5.2
Searchable
yes
Content hash
7b4e425e8c0efd3a4cd21d698f6befcadebcc6b9f9cd8a6bb10d83a3f4b1ba62
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