Skip to main content

Linux CVE-2025-38627

HIGH
Use After Free (CWE-416)
2025-08-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H indicates local access with low attack complexity requiring low privileges, but no user interaction, resulting in complete system impact within the vulnerable component's scope. However, multiple signals suggest lower real-world priority: the EPSS score of 0.02% places this in the 5th percentile for exploitation probability, indicating security researchers assess actual exploitation likelihood as very low. No CISA KEV listing confirms this is not confirmed actively exploited. The attack requires local authenticated access to a system running F2FS with compression enabled, combined with precise timing to win the race condition between file operations and workqueue processing under high system load. Patches are available from the vendor with multiple stable kernel branches already updated. The combination of local-only attack vector, narrow technical prerequisites (F2FS compression must be enabled and system must be under sufficient load to create race window), low EPSS score, and available patches suggests this is a moderate priority for systems running affected kernels with F2FS, but not an emergency requiring immediate response for most environments.

Exploit ScenarioDerived

A local authenticated attacker with low-level privileges on a Linux system running F2FS with compression creates or accesses a compressed file, initiates a read operation triggering decompression, then immediately deletes the file. By carefully timing the deletion during periods of high system load when workqueue processing is delayed, the attacker can cause the inode to be freed via RCU while the post_read_wq still holds a reference. When the deferred f2fs_late_free_dic work executes, it dereferences the freed inode memory, potentially allowing the attacker to corrupt kernel memory structures, disclose sensitive kernel information, or achieve code execution in kernel context depending on memory layout and heap state.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 25, 2026

Use-after-free in the Linux kernel f2fs compression subsystem allows local authenticated attackers to achieve high confidentiality, integrity, and availability impact (CVSS 7.8). The vulnerability permits exploitation through a race condition where an inode can be freed while still referenced by asynchronous decompression work queues, leading to potential arbitrary code execution, information disclosure, or denial of service. With an EPSS score of 0.02% (5th percentile) and no public exploit identified at time of analysis, real-world exploitation risk remains relatively low despite the high severity score.

RemediationAI

Apply vendor-released kernel patches available through official stable kernel trees. Patches are available at https://git.kernel.org/stable/c/39868685c2a94a70762bc6d77dc81d781d05bff5, https://git.kernel.org/stable/c/8fae5b6addd5f6895e03797b56e3c7b9f9cd15c9, https://git.kernel.org/stable/c/5d604d40cd3232b09cb339941ef958e49283ed0a, and https://git.kernel.org/stable/c/cc81768212cdc509e5a986274db7bc24d18cde19. Ubuntu users should follow guidance in security notices USN-8126-1 and USN-8125-1. The fix stores compress_algorithm and sbi directly in the decompression I/O context structure to eliminate the UAF condition by avoiding inode dereferencing during cleanup. Until patching is completed, system administrators using F2FS can consider temporarily disabling compression features if operationally feasible, though this may impact storage efficiency. Priority should be given to patching systems where untrusted local users have access or where F2FS compression is actively utilized.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the F2FS (Flash-Friendly File System) compression functionality within the Linux kernel, specifically in the f2fs_free_dic (free decompression I/O context) code path. This is a CWE-416 use-after-free condition where the decompress_io_ctx structure may be released asynchronously after I/O completion via a workqueue (post_read_wq). A race window exists between file deletion triggering inode eviction through the RCU callback mechanism and the deferred execution of decompression cleanup work. When a compressed file is deleted immediately after read operations, the f2fs_inode_info structure can be freed by RCU garbage collection (kmem_cache_free) before the kworker thread processes the queued f2fs_late_free_dic work item. When f2fs_free_dic eventually executes and attempts to access dic->inode->i_compress_algorithm, it dereferences freed memory. The affected component is specific to systems utilizing F2FS with compression enabled, as indicated by the CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 25, 2026 - 11:22 nvd
Patch available
CVE Published
Aug 22, 2025 - 16:15 nvd
HIGH 7.8

DescriptionNVD

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

f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic

The decompress_io_ctx may be released asynchronously after I/O completion. If this file is deleted immediately after read, and the kworker of processing post_read_wq has not been executed yet due to high workloads, It is possible that the inode(f2fs_inode_info) is evicted and freed before it is used f2fs_free_dic.

The UAF case as below: Thread A Thread B

  • f2fs_decompress_end_io
  • f2fs_put_dic
  • queue_work

add free_dic work to post_read_wq

  • do_unlink
  • iput
  • evict
  • call_rcu

This file is deleted after read.

Thread C kworker to process post_read_wq

  • rcu_do_batch
  • f2fs_free_inode
  • kmem_cache_free

inode is freed by rcu

  • process_scheduled_works
  • f2fs_late_free_dic
  • f2fs_free_dic
  • f2fs_release_decomp_mem

read (dic->inode)->i_compress_algorithm

This patch store compress_algorithm and sbi in dic to avoid inode UAF.

In addition, the previous solution is deprecated in [1] may cause system hang. [1] https://lore.kernel.org/all/c36ab955-c8db-4a8b-a9d0-f07b5f426c3f@kernel.org

Executive ViewAI

Why It Matters

A use-after-free vulnerability in Linux kernel f2fs compression allows local authenticated users to crash systems or potentially execute arbitrary code, affecting any organization running vulnerable Linux kernels on servers, workstations, or embedded systems. While the technical severity is high, real-world risk remains constrained by the requirement for local system access and the absence of known public exploits, making this a medium-priority remediation for most enterprises.

Business Impact: Medium
Compensating Controls

Apply vendor patch. If patch deployment is delayed: (1) disable f2fs compression feature via kernel boot parameters or module blacklist on systems where compression is not operationally required; (2) restrict local user account provisioning and enforce principle of least privilege for user access; (3) isolate multi-user systems and container environments from critical workloads pending patch deployment.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy