CVE-2025-23130 Information
Description
In the Linux kernel the following vulnerability has been resolved:
f2fs: fix to avoid panic once fallocation fails for pinfile
syzbot reports a f2fs bug as below:
————[ cut here ]————
kernel BUG at fs/f2fs/segment.c:2746!
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 0
RIP: 0010:get_new_segment fs/f2fs/segment.c:2746 [inline]
RIP: 0010:new_curseg+0x1f52/0x1f70 fs/f2fs/segment.c:2876
Call Trace:
Concurrent pinfile allocation may run out of free section result in panic in get_new_segment() let’s expand pin_sem lock coverage to include f2fs_gc() so that we can make sure to reclaim enough free space for following allocation.
In addition do below changes to enhance error path handling:
- call f2fs_bug_on() only in non-pinfile allocation path in get_new_segment().
- call reset_curseg_fields() to reset all fields of curseg in new_curseg()
Reference
https://git.kernel.org/stable/c/48ea8b200414ac69ea96f4c231f5c7ef1fbeffef https://git.kernel.org/stable/c/9392862608d081a8346a3b841f862d732fce954b
Share on: