CVE-2025-38164 Information
Description
In the Linux kernel the following vulnerability has been resolved:
f2fs: zone: fix to avoid inconsistence in between SIT and SSA
w/ below testcase it will cause inconsistence in between SIT and SSA.
create_null_blk 512 2 1024 1024 mkfs.f2fs -m /dev/nullb0 mount /dev/nullb0 /mnt/f2fs/ touch /mnt/f2fs/file f2fs_io pinfile set /mnt/f2fs/file fallocate -l 4GiB /mnt/f2fs/file
F2FS-fs (nullb0): Inconsistent segment (0) type [1 0] in SSA and SIT
CPU: 5 UID: 0 PID: 2398 Comm: fallocate Tainted: G O 6.13.0-rc1 84
Tainted: [O]=OOT_MODULE
Hardware name: innotek GmbH VirtualBox/VirtualBox BIOS VirtualBox 12/01/2006
Call Trace:
The reason is f2fs_gc_range() may try to migrate block in curseg however its SSA block is not uptodate due to the last summary block data is still in cache of curseg.
In this patch we add a condition in f2fs_gc_range() to check whether section is opened or not and skip block migration for opened section.
Reference
https://git.kernel.org/stable/c/44a51592ac657d8e422585414d7ec17a5b50fb0e https://git.kernel.org/stable/c/773704c1ef96a8b70d0d186ab725f50548de82c4 https://git.kernel.org/stable/c/8d9431b0d11a5030aa1ce477defee455b3821701
Related CNNVD
CNNVD-202507-249 (Published: 2025-07-03)
Share on: