# CVE-2025-68796: f2fs: fix to avoid updating zero-sized extent in extent cache

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **Published:** 2026-01-13T15:29:06.892Z
- **Modified:** 2026-06-17T09:59:36.160Z

## Who should check

- Anyone running Linux \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 9c07bd262c13ca922adad6e7613d48505f97f548; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 72c58a82e6fb7b327e8701f5786c70c3edc56188; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< e50b81c50fcbe63f50405bb40f262162ff32af88; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< efe3371001f50a2d6f746b50bdc6f9f26b2089ec; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 4f244c64efe628d277b916f47071adf480eb8646; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< bac23833220a1f8fe8dfab7e16efa20ff64d7589; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 7c37c79510329cd951a4dedf3f7bf7e2b18dccec
- Anyone running Linux 4.7

## Description

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

f2fs: fix to avoid updating zero-sized extent in extent cache

As syzbot reported:

F2FS-fs (loop0): \_\_update\_extent\_tree\_range: extent len is zero, type: 0, extent \[0, 0, 0\], age \[0, 0\]
------------\[ cut here \]------------
kernel BUG at fs/f2fs/extent\_cache.c:678!
Oops: invalid opcode: 0000 \[\#1\] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted syzkaller \#0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:\_\_update\_extent\_tree\_range+0x13bc/0x1500 fs/f2fs/extent\_cache.c:678
Call Trace:
 \<TASK\>
 f2fs\_update\_read\_extent\_cache\_range+0x192/0x3e0 fs/f2fs/extent\_cache.c:1085
 f2fs\_do\_zero\_range fs/f2fs/file.c:1657 \[inline\]
 f2fs\_zero\_range+0x10c1/0x1580 fs/f2fs/file.c:1737
 f2fs\_fallocate+0x583/0x990 fs/f2fs/file.c:2030
 vfs\_fallocate+0x669/0x7e0 fs/open.c:342
 ioctl\_preallocate fs/ioctl.c:289 \[inline\]
 file\_ioctl+0x611/0x780 fs/ioctl.c:-1
 do\_vfs\_ioctl+0xb33/0x1430 fs/ioctl.c:576
 \_\_do\_sys\_ioctl fs/ioctl.c:595 \[inline\]
 \_\_se\_sys\_ioctl+0x82/0x170 fs/ioctl.c:583
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0xfa/0x3b0 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7f07bc58eec9

In error path of f2fs\_zero\_range(), it may add a zero-sized extent
into extent cache, it should be avoided.

## Affected and fixed versions

- Linux: \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 9c07bd262c13ca922adad6e7613d48505f97f548; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 72c58a82e6fb7b327e8701f5786c70c3edc56188; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< e50b81c50fcbe63f50405bb40f262162ff32af88; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< efe3371001f50a2d6f746b50bdc6f9f26b2089ec; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 4f244c64efe628d277b916f47071adf480eb8646; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< bac23833220a1f8fe8dfab7e16efa20ff64d7589; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 7c37c79510329cd951a4dedf3f7bf7e2b18dccec (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 7c37c79510329cd951a4dedf3f7bf7e2b18dccec or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68796.md
Affected: Linux >= 6e9619499f53b22ead972e476c0e8341c997d929, < 9c07bd262c13ca922adad6e7613d48505f97f548; >= 6e9619499f53b22ead972e476c0e8341c997d929, < 72c58a82e6fb7b327e8701f5786c70c3edc56188; >= 6e9619499f53b22ead972e476c0e8341c997d929, < e50b81c50fcbe63f50405bb40f262162ff32af88; >= 6e9619499f53b22ead972e4…
Fixed in: Linux 9c07bd262c13ca922adad6e7613d48505f97f548, Linux 72c58a82e6fb7b327e8701f5786c70c3edc56188, Linux 4f244c64efe628d277b916f47071adf480eb8646, Linux 7c37c79510329cd951a4dedf3f7bf7e2b18dccec

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-2025-68796 being exploited?

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

### How serious is CVE-2025-68796?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68796?

Linux \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 9c07bd262c13ca922adad6e7613d48505f97f548; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 72c58a82e6fb7b327e8701f5786c70c3edc56188; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< e50b81c50fcbe63f50405bb40f262162ff32af88; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< efe3371001f50a2d6f746b50bdc6f9f26b2089ec; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 4f244c64efe628d277b916f47071adf480eb8646; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< bac23833220a1f8fe8dfab7e16efa20ff64d7589; \>= 6e9619499f53b22ead972e476c0e8341c997d929, \< 7c37c79510329cd951a4dedf3f7bf7e2b18dccec; Linux 4.7.

### Is there a fix for CVE-2025-68796?

Yes. Fixed in Linux 9c07bd262c13ca922adad6e7613d48505f97f548, Linux 72c58a82e6fb7b327e8701f5786c70c3edc56188, Linux 4f244c64efe628d277b916f47071adf480eb8646, Linux 7c37c79510329cd951a4dedf3f7bf7e2b18dccec. Upgrade Linux to 7c37c79510329cd951a4dedf3f7bf7e2b18dccec or later.

### How do I check if I'm affected by CVE-2025-68796?

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

- other: <https://git.kernel.org/stable/c/9c07bd262c13ca922adad6e7613d48505f97f548>
- other: <https://git.kernel.org/stable/c/72c58a82e6fb7b327e8701f5786c70c3edc56188>
- other: <https://git.kernel.org/stable/c/e50b81c50fcbe63f50405bb40f262162ff32af88>
- other: <https://git.kernel.org/stable/c/efe3371001f50a2d6f746b50bdc6f9f26b2089ec>
- other: <https://git.kernel.org/stable/c/4f244c64efe628d277b916f47071adf480eb8646>
- other: <https://git.kernel.org/stable/c/bac23833220a1f8fe8dfab7e16efa20ff64d7589>
- other: <https://git.kernel.org/stable/c/7c37c79510329cd951a4dedf3f7bf7e2b18dccec>

## 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-2025-68796>

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