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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **Published:** 2024-10-21T18:01:23.561Z
- **Modified:** 2026-06-17T08:00:40.033Z

## Who should check

- Anyone running Linux \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 9f6e7a0512a57387d36f5e9e9635d6668cac13dd; \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 645ec43760e86d3079fee2e8b51fde7060a540d0; \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 65a6ce4726c27b45600303f06496fef46d00b57f
- Anyone running Linux 6.9

## 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.

## Affected and fixed versions

- Linux: \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 9f6e7a0512a57387d36f5e9e9635d6668cac13dd; \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 645ec43760e86d3079fee2e8b51fde7060a540d0; \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 65a6ce4726c27b45600303f06496fef46d00b57f (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 65a6ce4726c27b45600303f06496fef46d00b57f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-49887. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49887.md
Affected: Linux >= 8b10d3653735e117bc1954ade80d75ad7b46b801, < 9f6e7a0512a57387d36f5e9e9635d6668cac13dd; >= 8b10d3653735e117bc1954ade80d75ad7b46b801, < 645ec43760e86d3079fee2e8b51fde7060a540d0; >= 8b10d3653735e117bc1954ade80d75ad7b46b801, < 65a6ce4726c27b45600303f06496fef46d00b57f; Linux 6.9
Fixed in: Linux 9f6e7a0512a57387d36f5e9e9635d6668cac13dd, Linux 645ec43760e86d3079fee2e8b51fde7060a540d0, Linux 65a6ce4726c27b45600303f06496fef46d00b57f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-49887 being exploited?

There is no confirmed exploitation: CVE-2024-49887 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-49887?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-49887?

Linux \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 9f6e7a0512a57387d36f5e9e9635d6668cac13dd; \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 645ec43760e86d3079fee2e8b51fde7060a540d0; \>= 8b10d3653735e117bc1954ade80d75ad7b46b801, \< 65a6ce4726c27b45600303f06496fef46d00b57f; Linux 6.9.

### Is there a fix for CVE-2024-49887?

Yes. Fixed in Linux 9f6e7a0512a57387d36f5e9e9635d6668cac13dd, Linux 645ec43760e86d3079fee2e8b51fde7060a540d0, Linux 65a6ce4726c27b45600303f06496fef46d00b57f. Upgrade Linux to 65a6ce4726c27b45600303f06496fef46d00b57f or later.

### How do I check if I'm affected by CVE-2024-49887?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-49887>

HTML: <https://flawdb.com/CVE-2024-49887> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-49887>
