]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/ntfs3: Add sanity check for file name
authorLizhi Xu <lizhi.xu@windriver.com>
Fri, 6 Jun 2025 05:16:16 +0000 (13:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:15 +0000 (16:28 +0200)
commit3572737a768dadea904ebc4eb34b6ed575bb72d9
treeb0046259fedffc22cd78523b994654ecd36106ac
parent934065fd3024c392f0a674ae949c9bc00e9643dc
fs/ntfs3: Add sanity check for file name

[ Upstream commit e841ecb139339602bc1853f5f09daa5d1ea920a2 ]

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

Reported-by: syzbot+598057afa0f49e62bd23@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=598057afa0f49e62bd23
Signed-off-by: Lizhi Xu <lizhi.xu@windriver.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ntfs3/dir.c