
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-38627 is a Use-After-Free (UAF) vulnerability in the Linux kernel's F2FS (Flash-Friendly File System) compression handling subsystem, specifically in the f2fs_free_dic function. The flaw affects Linux kernel versions from 6.0 up to (but not including) 6.16.1. It was published on August 22, 2025, with patches added to the stable kernel tree on November 26, 2025. The vulnerability carries a CVSS v3.1 base score of 7.8 (High) (Feedly).
The root cause is a race condition (CWE-416: Use After Free) in the F2FS compression I/O path. When a compressed file is read and then immediately deleted, the decompress_io_ctx is queued for asynchronous release via post_read_wq. Under high workload conditions, the inode (f2fs_inode_info) can be evicted and freed by RCU (via f2fs_free_inode → kmem_cache_free) before the deferred work item (f2fs_late_free_dic → f2fs_free_dic → f2fs_release_decomp_mem) executes, resulting in a UAF access on the already-freed inode. The three-thread race involves: Thread A queuing the free_dic work, Thread B triggering inode eviction via do_unlink/iput, and Thread C (RCU batch) freeing the inode memory before the kworker processes the queued work (Feedly, Kernel Patch).
Successful exploitation of this vulnerability by a local attacker with low privileges could result in kernel memory corruption, system crashes (denial of service), or potentially arbitrary code execution in kernel context. The CVSS assessment reflects high confidentiality, integrity, and availability impact. Because the vulnerability operates at the kernel level, exploitation could lead to full system compromise, privilege escalation, or persistent access (Feedly).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.018%, indicating a very low probability of exploitation in the near term. Exploitation requires local access with low privileges and the ability to trigger a specific race condition involving F2FS compressed file reads and deletions under high system load (Feedly).
The primary remediation is to update to Linux kernel version 6.16.1 or later, which includes the fix. Patches are available in the stable kernel tree at git.kernel.org. Ubuntu has issued multiple security notices addressing this CVE (USN-8095-1 through USN-8095-5, USN-8100-1, USN-8125-1, USN-8165-1), and Debian has addressed it in linux 6.12.85-1 (DSA-6238-1). As a temporary workaround, disabling F2FS compression on affected systems can eliminate the attack surface if compression is not operationally required (Ubuntu Advisory, Debian Tracker, Feedly).
The vulnerability has received standard coverage from Linux distribution security teams, with Ubuntu issuing at least five update notices and Debian releasing a security update. Tenable/Nessus and Qualys have both added detection plugins for this CVE. No notable independent researcher commentary or significant social media discussion has been identified beyond routine distribution advisories (Ubuntu Advisory, Debian Tracker).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."