# CVE-2026-90133: ntfs: Fix index_root heap OOB write in ntfs_ir_to_ib()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-09-17T16:06:33.234Z
- Modified: 2026-10-19T09:19:03.063Z
- Assigned by: Linux

## Description

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

ntfs: Fix index_root heap OOB write in ntfs_ir_to_ib()

ntfs_ir_to_ib copies all entries from index_root into a freshly allocated
index_block_size-byte buffer without verifying that the entries fit in the
available space. The entries in index_root may be larger than the usable
entry space in the index block.

This can cause OOB writes past the end of the allocation.

The validator ntfs_index_root_inconsistent() checks that entries are
self-consistent within the IR value, but never cross-checks them against
index_block_size. There is no bounds check in ntfs_ir_to_ib() before the
memcpy.

Fixing this at the sink in ntfs_ir_to_ib() since
ntfs_index_root_inconsistent() validates the logical consistency of
index_root as a structure and a root with large entries is a structurally
valid root. The bug is a size conflict of ntfs_ir_to_ib().
Also, the validator is called once per inode load in
ntfs_read_locked_inode() while ntfs_ir_to_ib() is only called during a
reparent, a check there adds no overhead to the common path.
Moreover, even a future call path that bypasses the validator would still
be protected.

With NULL as first parameter of ntfs_error(), the volume error flag is
never set by this call, so the device name will be absent from the error
message. In any case, that the caller, ntfs_ir_reparent(), prints an error
message that includes the device name on NULL returns.
I think this is the best solution available without adding
'struct super_block *sb' as a parameter to ntfs_ir_to_ib().

This heap out-of-bounds write is triggered by a crafted filesystem image,
which is not in the kernel threat model, anyway, fixing memory errors would
be nice to keep  things secure.

(As written by CVE List.)

## Affected

- Linux Linux: from 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0 before 825dec5120933e90c54e30e31ccfa6c3449043a8; from 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0 before dc09bf79b76f9a7157e225f449655f3f62f96c9c; 7.1 (not affected: before 7.1; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/825dec5120933e90c54e30e31ccfa6c3449043a8>
- <https://git.kernel.org/stable/c/dc09bf79b76f9a7157e225f449655f3f62f96c9c>

## Sources

- CVE List: [CVE-2026-90133](https://www.cve.org/CVERecord?id=CVE-2026-90133), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-90133](https://nvd.nist.gov/vuln/detail/CVE-2026-90133), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-90133 · Whole record: https://cve.day/CVE-2026-90133.json · Rebuilt by cve.day 2026-11-25T22:59:39.314Z
