Skip to contentSkip to conversation

CVE-2025-38707: fs/ntfs3: Add sanity check for file name

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 4, 2025

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: Add sanity check for file name

The length of the file name should be smaller than the directory entry size.

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

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

	Fixed in 5.15.190 with commit bde58c1539f3ffddffc94d64007de16964e6b8eb
	Fixed in 6.1.149 with commit f99eb9a641f4ef927d8724f4966dcfd1f0e9f835
	Fixed in 6.6.103 with commit 3572737a768dadea904ebc4eb34b6ed575bb72d9
	Fixed in 6.12.43 with commit 2ac47f738ddfc1957a33be163bc97ee8f78e85a6
	Fixed in 6.15.11 with commit b51642fc52d1c7243a9361555d5c4b24d7569d7e
	Fixed in 6.16.2 with commit 27ee9a42b245efe6529e28b03453291a775cb3e4
	Fixed in 6.17-rc1 with commit e841ecb139339602bc1853f5f09daa5d1ea920a2

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

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/dir.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/bde58c1539f3ffddffc94d64007de16964e6b8eb
	https://git.kernel.org/stable/c/f99eb9a641f4ef927d8724f4966dcfd1f0e9f835
	https://git.kernel.org/stable/c/3572737a768dadea904ebc4eb34b6ed575bb72d9
	https://git.kernel.org/stable/c/2ac47f738ddfc1957a33be163bc97ee8f78e85a6
	https://git.kernel.org/stable/c/b51642fc52d1c7243a9361555d5c4b24d7569d7e
	https://git.kernel.org/stable/c/27ee9a42b245efe6529e28b03453291a775cb3e4
	https://git.kernel.org/stable/c/e841ecb139339602bc1853f5f09daa5d1ea920a2