CVE-2025-68796

Source
https://cve.org/CVERecord?id=CVE-2025-68796
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68796.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-68796
Downstream
Related
Published
2026-01-13T15:29:06.892Z
Modified
2026-03-20T12:46:28.947325Z
Summary
f2fs: fix to avoid updating zero-sized extent in extent cache
Details

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): __updateextenttreerange: extent len is zero, type: 0, extent [0, 0, 0], age [0, 0] ------------[ cut here ]------------ kernel BUG at fs/f2fs/extentcache.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:__updateextenttreerange+0x13bc/0x1500 fs/f2fs/extentcache.c:678 Call Trace: <TASK> f2fsupdatereadextentcacherange+0x192/0x3e0 fs/f2fs/extentcache.c:1085 f2fsdozerorange fs/f2fs/file.c:1657 [inline] f2fszerorange+0x10c1/0x1580 fs/f2fs/file.c:1737 f2fsfallocate+0x583/0x990 fs/f2fs/file.c:2030 vfsfallocate+0x669/0x7e0 fs/open.c:342 ioctlpreallocate fs/ioctl.c:289 [inline] fileioctl+0x611/0x780 fs/ioctl.c:-1 dovfs_ioctl+0xb33/0x1430 fs/ioctl.c:576 __dosysioctl fs/ioctl.c:595 [inline] __sesysioctl+0x82/0x170 fs/ioctl.c:583 dosyscallx64 arch/x86/entry/syscall64.c:63 [inline] dosyscall64+0xfa/0x3b0 arch/x86/entry/syscall64.c:94 entrySYSCALL64afterhwframe+0x77/0x7f RIP: 0033:0x7f07bc58eec9

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68796.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6e9619499f53b22ead972e476c0e8341c997d929
Fixed
9c07bd262c13ca922adad6e7613d48505f97f548
Fixed
72c58a82e6fb7b327e8701f5786c70c3edc56188
Fixed
e50b81c50fcbe63f50405bb40f262162ff32af88
Fixed
efe3371001f50a2d6f746b50bdc6f9f26b2089ec
Fixed
4f244c64efe628d277b916f47071adf480eb8646
Fixed
bac23833220a1f8fe8dfab7e16efa20ff64d7589
Fixed
7c37c79510329cd951a4dedf3f7bf7e2b18dccec

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68796.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.7.0
Fixed
5.10.248
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.198
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.160
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.120
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.64
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68796.json"