# CVE-2024-49887: f2fs: fix to don't panic system for no free segment fault injection

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2024-10-21T18:01:23.561Z
- Modified: 2026-06-17T08:00:40.033Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to don't panic system for no free segment fault injection

f2fs: fix to don't panic system for no free segment fault injection

syzbot reports a f2fs bug as below:

F2FS-fs (loop0): inject no free segment in get_new_segment of __allocate_new_segment+0x1ce/0x940 fs/f2fs/segment.c:3167
F2FS-fs (loop0): Stopped filesystem due to reason: 7
------------[ cut here ]------------
kernel BUG at fs/f2fs/segment.c:2748!
CPU: 0 UID: 0 PID: 5109 Comm: syz-executor304 Not tainted 6.11.0-rc6-syzkaller-00363-g89f5e14d05b4 #0
RIP: 0010:get_new_segment fs/f2fs/segment.c:2748 [inline]
RIP: 0010:new_curseg+0x1f61/0x1f70 fs/f2fs/segment.c:2836
Call Trace:
 __allocate_new_segment+0x1ce/0x940 fs/f2fs/segment.c:3167
 f2fs_allocate_new_section fs/f2fs/segment.c:3181 [inline]
 f2fs_allocate_pinning_section+0xfa/0x4e0 fs/f2fs/segment.c:3195
 f2fs_expand_inode_data+0x5d6/0xbb0 fs/f2fs/file.c:1799
 f2fs_fallocate+0x448/0x960 fs/f2fs/file.c:1903
 vfs_fallocate+0x553/0x6c0 fs/open.c:334
 do_vfs_ioctl+0x2592/0x2e50 fs/ioctl.c:886
 __do_sys_ioctl fs/ioctl.c:905 [inline]
 __se_sys_ioctl+0x81/0x170 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0010:get_new_segment fs/f2fs/segment.c:2748 [inline]
RIP: 0010:new_curseg+0x1f61/0x1f70 fs/f2fs/segment.c:2836

The root cause is when we inject no free segment fault into f2fs,
we should not panic system, fix it.

(As written by CVE List.)

## Affected

- Linux Linux: from 8b10d3653735e117bc1954ade80d75ad7b46b801 before 9f6e7a0512a57387d36f5e9e9635d6668cac13dd; from 8b10d3653735e117bc1954ade80d75ad7b46b801 before 645ec43760e86d3079fee2e8b51fde7060a540d0; from 8b10d3653735e117bc1954ade80d75ad7b46b801 before 65a6ce4726c27b45600303f06496fef46d00b57f; 6.9 (not affected: before 6.9; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.9 before 6.10.14; from 6.11 before 6.11.3

## References

- <https://git.kernel.org/stable/c/9f6e7a0512a57387d36f5e9e9635d6668cac13dd> (patch)
- <https://git.kernel.org/stable/c/645ec43760e86d3079fee2e8b51fde7060a540d0> (patch)
- <https://git.kernel.org/stable/c/65a6ce4726c27b45600303f06496fef46d00b57f> (patch)

## Sources

- CVE List: [CVE-2024-49887](https://www.cve.org/CVERecord?id=CVE-2024-49887), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-49887](https://nvd.nist.gov/vuln/detail/CVE-2024-49887), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-49887 · Whole record: https://cve.day/CVE-2024-49887.json · Rebuilt by cve.day 2026-11-25T22:58:47.030Z
