]> git.hungrycats.org Git - linux/commit
fs/ntfs3: Validate ff offset
authorlei lu <llfamsec@gmail.com>
Tue, 28 May 2024 18:52:22 +0000 (02:52 +0800)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 26 Jun 2024 12:48:51 +0000 (15:48 +0300)
commit50c47879650b4c97836a0086632b3a2e300b0f06
treec04ef56cc06af46b7e3b2a8be84c9ce07ff22b59
parentf28d0866d8ff798aa497971f93d0cc58f442d946
fs/ntfs3: Validate ff offset

This adds sanity checks for ff offset. There is a check
on rt->first_free at first, but walking through by ff
without any check. If the second ff is a large offset.
We may encounter an out-of-bound read.

Signed-off-by: lei lu <llfamsec@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/fslog.c