]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/ntfs3: Check if more than chunk-size bytes are written
authorAndrew Ballance <andrewjballance@gmail.com>
Wed, 15 May 2024 12:38:33 +0000 (07:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Nov 2024 15:25:53 +0000 (16:25 +0100)
commite5ae7859008688626b4d2fa6139eeaa08e255053
tree159a52e3230b533ef22740062e9780daaef22968
parentc46d6b02588000c27b7b869388c2c0278bd0d173
fs/ntfs3: Check if more than chunk-size bytes are written

[ Upstream commit 9931122d04c6d431b2c11b5bb7b10f28584067f0 ]

A incorrectly formatted chunk may decompress into
more than LZNT_CHUNK_SIZE bytes and a index out of bounds
will occur in s_max_off.

Signed-off-by: Andrew Ballance <andrewjballance@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ntfs3/lznt.c