Skip to contentSkip to conversation

CVE-2026-45935: fs/ntfs3: Fix slab-out-of-bounds read in DeleteIndexEntryRoot

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

fs/ntfs3: Fix slab-out-of-bounds read in DeleteIndexEntryRoot

In the 'DeleteIndexEntryRoot' case of the 'do_action' function, the entry size ('esize') is retrieved from the log record without adequate bounds checking.

Specifically, the code calculates the end of the entry ('e2') using:

    e2 = Add2Ptr(e1, esize);

It then calculates the size for memmove using 'PtrOffset(e2, ...)', which subtracts the end pointer from the buffer limit. If 'esize' is maliciously large, 'e2' exceeds the used buffer size. This results in a negative offset which, when cast to size_t for memmove, interprets as a massive unsigned integer, leading to a heap buffer overflow.

This commit adds a check to ensure that the entry size ('esize') strictly fits within the remaining used space of the index header before performing memory operations.

The Linux kernel CVE team has assigned CVE-2026-45935 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 5.15.202 with commit 36c03f7f177b34d51f1cf1d2304b1074607bf4b0
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.1.165 with commit b271c9cb85927210b1b799e55ee7f702d12b4336
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.6.128 with commit a584b9d1059b29e97e17c919274e9adfb846f2a0
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.12.75 with commit c065541b71b79874c83d418a9acd18ad5826339b
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.18.14 with commit 78942172d5bff4d4afed8674abc09cc560ce44a0
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 6.19.4 with commit f3b437a4c3e022a1449658ae9f3dd34859894513
	Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 7.0 with commit b2bc7c44ed1779fc9eaab9a186db0f0d01439622

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-45935

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/ntfs3/fslog.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/36c03f7f177b34d51f1cf1d2304b1074607bf4b0
	https://git.kernel.org/stable/c/b271c9cb85927210b1b799e55ee7f702d12b4336
	https://git.kernel.org/stable/c/a584b9d1059b29e97e17c919274e9adfb846f2a0
	https://git.kernel.org/stable/c/c065541b71b79874c83d418a9acd18ad5826339b
	https://git.kernel.org/stable/c/78942172d5bff4d4afed8674abc09cc560ce44a0
	https://git.kernel.org/stable/c/f3b437a4c3e022a1449658ae9f3dd34859894513
	https://git.kernel.org/stable/c/b2bc7c44ed1779fc9eaab9a186db0f0d01439622