Skip to contentSkip to conversation

CVE-2026-99724: ntfs: don't allow compression on volumes with clusters larger than 4K

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

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

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

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

ntfs: don't allow compression on volumes with clusters larger than 4K

On a volume made with "mkntfs -c 8192", a user can set FILE_ATTR_COMPRESSED on an empty file through system.ntfs_attrib. Writing to the file and reading it back after dropping the page cache then crashes:

  BUG: KASAN: slab-out-of-bounds in ntfs_read_compressed_block+0xa2c/0x2040
  Read of size 8192 at addr ffff88804355a000 by task dd/106

The read path only handles clusters up to 4K. It copies each cluster out of a single page, and a compression block of 16 8K clusters does not fit in the 64K ntfs_compression_buffer. Loading an inode already rejects compressed data on such volumes.

Reject the flag change the same way.

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

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

	Issue introduced in 7.1 with commit fc053f05ca282a5e760b41f6560ac835c4e28037 and fixed in 7.3.5 with commit df35f062d4f24e4c9d9711d6af24916d3784871c
	Issue introduced in 7.1 with commit fc053f05ca282a5e760b41f6560ac835c4e28037 and fixed in 7.4-rc2 with commit c77ab4eeeb3ed471bcc99a94673f0e0142c4b84a

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

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/ntfs/ea.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/df35f062d4f24e4c9d9711d6af24916d3784871c
	https://git.kernel.org/stable/c/c77ab4eeeb3ed471bcc99a94673f0e0142c4b84a