All vulnerabilities

Servers and applications

CVE-2026-139012

f2fs: compress: fix to handle race between truncate and writeback

Severity
Unrated
Published
30 Nov 2026
Last changed
30 Nov 2026
Added to UpHeron
30 Nov 2026
Fixed in
5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4
Sources
CVE Program

Description

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

fsstress reports a kernel BUG in f2fs_truncate_partial_cluster():

kernel BUG at fs/f2fs/compress.c:1238! RIP: 0010:f2fs_truncate_partial_cluster+0x292/0x2a0 Call Trace:

f2fs_truncate+0xf6/0x210 f2fs_setattr+0x6b7/0x770 notify_change+0x33b/0x520 do_truncate+0xc2/0xf0 vfs_truncate+0x153/0x1d0 ksys_truncate+0x78/0xd0 __x64_sys_truncate+0x16/0x20 do_syscall_64+0xbe/0x540

The root cause is that Thread A (truncate) and Thread B (background writeback or fsync) can race as follows:

Thread A Thread B

  • f2fs_setattr
  • f2fs_truncate
  • f2fs_truncate_blocks
  • f2fs_truncate_partial_cluster
  • f2fs_is_compressed_cluster return 1
  • f2fs_write_cache_pages
  • f2fs_write_multi_pages
  • f2fs_write_raw_pages
  • f2fs_write_single_data_page dn.data_blkaddr != COMPRESS_ADDR (cluster converted to normal)
  • f2fs_prepare_compress_overwrite
  • f2fs_is_compressed_cluster return 0
  • return 0
  • f2fs_bug_on(sbi, err == 0): BUG!
From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.3.4
  • From 6.13 before 6.18.63
  • From 6.7 before 6.12.117
  • From 6.2 before 6.6.163
All 7 release lines
  • From 5.8 before 5.10.275
  • From 5.11 before 5.15.226
  • From 5.16 before 6.1.193
  • From 6.2 before 6.6.163
  • From 6.7 before 6.12.117
  • From 6.13 before 6.18.63
  • From 6.19 before 7.3.4

Status in Debian

Debian builds fixes into its own packages, so a release is often fixed under an older version number than the one upstream names.

  • 1 vulnerable
  • 3 fixed
PackageDebian releaseStatus
linuxsidunstableFixed in 7.3.4-1
14forkytestingFixed in 7.3.4-1
13trixiestableFixed in 6.12.117-1
12bookwormoldstableVulnerableNo fix yet.

From Debian's security tracker for CVE-2026-139012 , read in the last 12 hours.

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
257,106GitHub, 29 Nov 2026
Forks
66,781GitHub, 29 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-139012