CVE-2023-52682
Description
A race condition in the Linux kernel f2fs filesystem allows data corruption when handling compressed, non-encrypted inodes during garbage collection.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A race condition in the Linux kernel f2fs filesystem allows data corruption when handling compressed, non-encrypted inodes during garbage collection.
Vulnerability
The Linux kernel f2fs filesystem contains a race condition in the f2fs_inplace_write_data path. Specifically, when an inode is compressed but not encrypted, the kernel fails to call f2fs_wait_on_block_writeback(). This omission allows the garbage collection (GC) thread to perform out-of-order writes while a page writeback is in progress, leading to potential data inconsistency [1].
Exploitation
An attacker requires local access to a system utilizing the f2fs filesystem with compression enabled. Exploitation involves triggering a race condition between the GC thread and a standard write operation on a compressed, non-encrypted file. By timing the f2fs_inplace_write_data operation to coincide with the GC thread's move_data_block execution, an attacker can cause the kernel to process overlapping IO requests, resulting in stale data overriding newer data [1].
Impact
Successful exploitation of this vulnerability leads to data corruption within the f2fs filesystem. This can result in the loss of data integrity for files stored on the affected partition, potentially impacting system stability or the reliability of stored information [1].
Mitigation
This issue was resolved in the Linux kernel by ensuring f2fs_wait_on_block_writeback() is called during the IPU write path for compressed inodes. Users should update to a patched kernel version, such as 6.8.10, 6.6.31, or later versions where this fix has been backported [1].
AI Insight generated on Jun 1, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
5- osv-coords3 versionspkg:deb/ubuntu/linux-aws@6.5.0-1021.21?arch=source&distro=manticpkg:deb/ubuntu/linux-laptop@6.5.0-1017.20?arch=source&distro=manticpkg:deb/ubuntu/linux-oracle@6.5.0-1024.24?arch=source&distro=mantic
< 6.5.0-1021.21+ 2 more
- (no CPE)range: < 6.5.0-1021.21
- (no CPE)range: < 6.5.0-1017.20
- (no CPE)range: < 6.5.0-1024.24
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
5- git.kernel.org/stable/c/4535be48780431753505e74e1b1ad4836a189bc2nvdPatch
- git.kernel.org/stable/c/55fdc1c24a1d6229fe0ecf31335fb9a2eceaaa00nvdPatch
- git.kernel.org/stable/c/9bfd5ea71521d0e522ba581c6ccc5db93759c0c3nvdPatch
- git.kernel.org/stable/c/f904c156d8011d8291ffd5b6b398f3747e294986nvdPatch
- git.kernel.org/stable/c/2bfe8fdb674f71747553a65f2ef27e14c8880655nvd
News mentions
0No linked articles in our index yet.