Skip to contentSkip to conversation

CVE-2025-71311: fs/ntfs3: Initialize new folios before use

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: Initialize new folios before use

KMSAN reports an uninitialized value in longest_match_std(), invoked from ntfs_compress_write(). When new folios are allocated without being marked uptodate and ni_read_frame() is skipped because the caller expects the frame to be completely overwritten, some reserved folios may remain only partially filled, leaving the rest memory uninitialized.

The Linux kernel CVE team has assigned CVE-2025-71311 to this issue.

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

	Issue introduced in 6.11 with commit 584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2 and fixed in 6.12.75 with commit dd6c81527d097b3b0bf5a15c2fdc9657d045144c
	Issue introduced in 6.11 with commit 584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2 and fixed in 6.18.14 with commit 5a30cc03bde169ad558695b26da6ea7e55f6194a
	Issue introduced in 6.11 with commit 584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2 and fixed in 6.19.4 with commit 41d79f8e2a36622d148719bf7c18b46ac1264284
	Issue introduced in 6.11 with commit 584f60ba22f79c89e6708ab82a5b5d9b8fa21fb2 and fixed in 7.0 with commit f223ebffa185cc8da934333c5a31ff2d4f992dc9

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-2025-71311

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/file.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/dd6c81527d097b3b0bf5a15c2fdc9657d045144c
	https://git.kernel.org/stable/c/5a30cc03bde169ad558695b26da6ea7e55f6194a
	https://git.kernel.org/stable/c/41d79f8e2a36622d148719bf7c18b46ac1264284
	https://git.kernel.org/stable/c/f223ebffa185cc8da934333c5a31ff2d4f992dc9