CVE-2024-49887
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
21/10/2024
Last modified:
13/11/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
f2fs: fix to don&#39;t panic system for no free segment fault injection<br />
<br />
f2fs: fix to don&#39;t panic system for no free segment fault injection<br />
<br />
syzbot reports a f2fs bug as below:<br />
<br />
F2FS-fs (loop0): inject no free segment in get_new_segment of __allocate_new_segment+0x1ce/0x940 fs/f2fs/segment.c:3167<br />
F2FS-fs (loop0): Stopped filesystem due to reason: 7<br />
------------[ cut here ]------------<br />
kernel BUG at fs/f2fs/segment.c:2748!<br />
CPU: 0 UID: 0 PID: 5109 Comm: syz-executor304 Not tainted 6.11.0-rc6-syzkaller-00363-g89f5e14d05b4 #0<br />
RIP: 0010:get_new_segment fs/f2fs/segment.c:2748 [inline]<br />
RIP: 0010:new_curseg+0x1f61/0x1f70 fs/f2fs/segment.c:2836<br />
Call Trace:<br />
__allocate_new_segment+0x1ce/0x940 fs/f2fs/segment.c:3167<br />
f2fs_allocate_new_section fs/f2fs/segment.c:3181 [inline]<br />
f2fs_allocate_pinning_section+0xfa/0x4e0 fs/f2fs/segment.c:3195<br />
f2fs_expand_inode_data+0x5d6/0xbb0 fs/f2fs/file.c:1799<br />
f2fs_fallocate+0x448/0x960 fs/f2fs/file.c:1903<br />
vfs_fallocate+0x553/0x6c0 fs/open.c:334<br />
do_vfs_ioctl+0x2592/0x2e50 fs/ioctl.c:886<br />
__do_sys_ioctl fs/ioctl.c:905 [inline]<br />
__se_sys_ioctl+0x81/0x170 fs/ioctl.c:893<br />
do_syscall_x64 arch/x86/entry/common.c:52 [inline]<br />
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83<br />
entry_SYSCALL_64_after_hwframe+0x77/0x7f<br />
RIP: 0010:get_new_segment fs/f2fs/segment.c:2748 [inline]<br />
RIP: 0010:new_curseg+0x1f61/0x1f70 fs/f2fs/segment.c:2836<br />
<br />
The root cause is when we inject no free segment fault into f2fs,<br />
we should not panic system, fix it.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.9 (including) | 6.10.14 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.11 (including) | 6.11.3 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



