CVE-2023-52682·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to wait on block writeback for post_read case If inode is compressed, but not encrypted, it missed to call f2fs_wait_on_block_writeback() to wait for GCed page writeback in IPU write path. Thread A GC-Thread - f2fs_gc - do_garbage_collect - gc_data_segment - move_data_block - f2fs_submit_page_write migrate normal cluster's block via meta_inode's page cache - f2fs_write_single_data_page - f2fs_do_write_data_page - f2fs_inplace_write_data - f2fs_submit_page_bio IRQ - f2fs_read_end_io IRQ old data overrides new data due to out-of-order GC and common IO. - f2fs_read_end_io
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2023-52682 scores 7.1 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.7
Until: 6.7.2
Fixed in: 6.7.2
How to fix this CVE
Update your Linux kernel to version 6.7.2 or later to resolve a data corruption issue in F2FS compressed file handling. This vulnerability affects systems running kernel versions 6.7 through 6.7.1 where garbage collection and in-place write operations can race, causing old data to overwrite newly written data. Immediate patching is recommended for systems using F2FS with compressed inodes.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with `uname -r` — vulnerable if output shows 6.7.0 or 6.7.1
- Step 2: Verify F2FS is in use with `mount | grep f2fs` — if no output, vulnerability is not exposed
- Step 3: Check for compressed F2FS inodes with `cat /proc/fs/f2fs/*/gc_info | grep compress` — presence indicates potential impact
- Step 4: After patching, run `uname -r` again to confirm kernel is version 6.7.2 or higher
FAQ
What is CVE-2023-52682?
CVE-2023-52682 is a race condition in the Linux F2FS filesystem that occurs when garbage collection and in-place write operations execute concurrently on compressed inodes, resulting in data corruption where newer data is overwritten by stale cached data.
Is CVE-2023-52682 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, it can cause silent data corruption on affected systems.
What versions of Kernel are affected by CVE-2023-52682?
Linux kernel versions 6.7.0 and 6.7.1 are affected. The vulnerability was fixed in kernel 6.7.2 and later stable releases.
How do I check if my server is vulnerable to CVE-2023-52682?
Run `uname -r` to check your kernel version (vulnerable if 6.7.0 or 6.7.1), then run `mount | grep f2fs` to confirm F2FS is actively used. Both conditions must be true for exposure.
Does Defensia detect CVE-2023-52682?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2023-52682 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/4535be48780431753505e74e1b1ad4836a189bc2
- https://git.kernel.org/stable/c/55fdc1c24a1d6229fe0ecf31335fb9a2eceaaa00
- https://git.kernel.org/stable/c/9bfd5ea71521d0e522ba581c6ccc5db93759c0c3
- https://git.kernel.org/stable/c/f904c156d8011d8291ffd5b6b398f3747e294986
- https://git.kernel.org/stable/c/4535be48780431753505e74e1b1ad4836a189bc2
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52682. Free for 1 server.
Get started free