Skip to main content
Menu
CVEs

Linux kernel out-of-bounds write in NTFS3 log replay

CVE-2026-99863EUVD-2026-138351GHSA-M6FJ-5795-XH3MPublished November 30, 2026, updated

7.8HighCNA
Exploited
No known exploitation
Fix
Vendor patch: fb0f0ef7b5a6bc761b372ce00764d4b6e0b91a47, eb2c69866e1883e00f553127f40df01e9891164e, f2cdd82f1dc242e6f831e9cf580eeb5db4af0b5f, becddb2e2b856210ce34654261e27d233dfa904b
Who is exposed
Specific setups only

Summary

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

fs/ntfs3: bound CreateAttribute asize against record_size in do_action

In do_action()'s CreateAttribute case (fslog.c:3286), attr2 points into the on-disk log record and asize = le32_to_cpu(attr2->size) is therefore attacker-controlled on mount. The guard bounds asize only against the log record itself,

Add2Ptr(attr2, asize) > Add2Ptr(lrh, rec_len)

where rec_len is the client data length, and separately bounds dlen against the MFT record. Nothing bounds asize against record_size, but all three writes that follow are into rec, a kmalloc(sbi->record_size) buffer allocated by mi_init() (record.c:105):

memmove(Add2Ptr(attr, asize), attr, used - roff); memcpy(attr, attr2, asize); rec->used = cpu_to_le32(used + asize);

With record_size 0x400, roff 0x38, used 0x160 and asize 0x800 the memcpy writes 2048 bytes at rec + 0x38, 0x438 bytes past the allocation, and rec->used is left at 0x960. dlen is 0x18 here, so the existing dlen check passes: dlen bounds nothing about the size of the copy.

The equivalent non-replay path already refuses this. mi_insert_attr() performs the same insert and starts with (record.c:488):

if (used + asize > sbi->record_size) return NULL;

Apply the same bound, spelled as a subtraction to match the neighbouring clause. used <= record_size holds here because check_file_record() validates it (fslog.c:2826) and is called on this record at fslog.c:3172; roff <= used - 4 follows from check_if_attr() together with the ATTR_END check at fslog.c:2844, so bounding used + asize bounds both copies.

The sibling WriteEndOfFileRecordSegment case does the equivalent check against record_size at fslog.c:3277.

Reproduced by mounting a crafted image on v7.2-rc5 under KASAN:

BUG: KASAN: slab-out-of-bounds in do_action.isra.0+0x41f6/0x83a0 Write of size 2048 at addr ffff888005c74838 by task mount/69

CPU: 0 UID: 0 PID: 69 Comm: mount Not tainted 7.2.0-rc5-00300-g8ba098e6b6ff #2 Call Trace: kasan_report+0xce/0x100 kasan_check_range+0x105/0x1b0 __asan_memcpy+0x3c/0x60 do_action.isra.0+0x41f6/0x83a0 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 69: __kasan_kmalloc+0x8f/0xa0 __kmalloc_noprof+0x1b4/0x460 mi_init+0x81/0x110 mi_get+0x6a/0x220 do_action.isra.0+0x1db4/0x83a0 log_replay+0x920a/0xd300 ntfs_loadlog_and_replay+0x3ef/0x510 ntfs_fill_super+0x1d23/0x4550

The buggy address belongs to the object at ffff888005c74800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 56 bytes inside of allocated 1024-byte region [ffff888005c74800, ffff888005c74c00)

Who should check

Teams running Linux kernels with the ntfs3 driver that mount NTFS volumes read-write, including automounters acting for users.

“fs/ntfs3: bound CreateAttribute asize against record_size in do_action”

git.kernel.org

What to do

  1. Check whether your setup matches what the bug needs.

    Volume must be mounted read-write; a read-only mount never reaches the vulnerable replay code. The crafted $LogFile must have non-empty dirty page and open-attribute tables. The targeted MFT record must pass check_file_record() and check_if_attr().
  2. Apply the vendor's patch: fb0f0ef7b5a6bc761b372ce00764d4b6e0b91a47, eb2c69866e1883e00f553127f40df01e9891164e, f2cdd82f1dc242e6f831e9cf580eeb5db4af0b5f, becddb2e2b856210ce34654261e27d233dfa904b.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-99863 (fs/ntfs3: bound CreateAttribute asize against record_size in do_action), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-99863 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 5.15
Vendor patches: fb0f0ef7b5a6bc761b372ce00764d4b6e0b91a47, eb2c69866e1883e00f553127f40df01e9891164e, f2cdd82f1dc242e6f831e9cf580eeb5db4af0b5f, becddb2e2b856210ce34654261e27d233dfa904b (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=eb2c69866e1883e00f553127f40df01e9891164e). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- Volume must be mounted read-write; a read-only mount never reaches the vulnerable replay code. (source: https://www.cve.org/CVERecord?id=CVE-2026-99863)
- The crafted $LogFile must have non-empty dirty page and open-attribute tables. (source: https://www.cve.org/CVERecord?id=CVE-2026-99863)
- The targeted MFT record must pass check_file_record() and check_if_attr(). (source: https://www.cve.org/CVERecord?id=CVE-2026-99863)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, no login, a user action.
CISA KEV: CVE-2026-99863 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-99863 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/eb2c69866e1883e00f553127f40df01e9891164e
- https://git.kernel.org/stable/c/f2cdd82f1dc242e6f831e9cf580eeb5db4af0b5f
- https://git.kernel.org/stable/c/becddb2e2b856210ce34654261e27d233dfa904b
- https://git.kernel.org/stable/c/0ea0755124dba3c9682a87adcee8b4b3ab57902f
- https://git.kernel.org/stable/c/2ebe4f0736129014d6fc475215fc5bf0a0549737
- https://git.kernel.org/stable/c/119ab8d9dd61c24a604be6175dc658cebb3a3bbd
- https://git.kernel.org/stable/c/fb0f0ef7b5a6bc761b372ce00764d4b6e0b91a47
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=eb2c69866e1883e00f553127f40df01e9891164e
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-99863
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-99863"}.

Affected versions

cve.now Index

33Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity7.8/10CVSS 7.8
  • No patch0/5No signal

What would change the score

  • Would score about 83 if added to CISA KEV
  • Would score about 78 if CISA's SSVC rates exploitation active
  • Would score about 43 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated

Evidence 9

Questions about CVE-2026-99863

Is CVE-2026-99863 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

Mounting a crafted NTFS image read-write can write past the end of a heap buffer while the driver replays the $LogFile during mount. This can corrupt adjacent kernel memory, possibly leading to kernel memory disclosure, code execution, or an oops or panic.

Source: cve.org, git.kernel.org

Which versions are affected by CVE-2026-99863?

Linux: version 5.15.

Source: cve.now feed data

Am I affected, and how do I check?

The issue is in the Linux kernel ntfs3 filesystem driver and needs a read-write mount of a volume whose $LogFile has non-empty dirty page and open-attribute tables, with the targeted MFT record passing check_file_record() and check_if_attr(). Read-only mounts do not reach the vulnerable replay code. No affected version range is listed, so check your kernel version and whether the fix commits are in its source.

Source: cve.org, git.kernel.org

How do I fix CVE-2026-99863?

Apply the upstream commits fb0f0ef7b5a6bc761b372ce00764d4b6e0b91a47, eb2c69866e1883e00f553127f40df01e9891164e, f2cdd82f1dc242e6f831e9cf580eeb5db4af0b5f and becddb2e2b856210ce34654261e27d233dfa904b. The sources do not name fixed kernel versions.

Source: cve.org, git.kernel.org

No corrections so far. Something wrong on this page? Report an error.