Skip to main content

Linux CVE-2025-38626

MEDIUM
2025-08-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67
5.5
CVSS 3.1 · NVD
View

Vulnerability Assessment

Impact

CVSS 5.5 reflects local (AV:L) attack vector, low complexity (AC:L), and low privilege requirements (PR:L), with availability impact (A:H) but no confidentiality or integrity impact. EPSS 0.02% (4th percentile) indicates extremely low real-world exploitation probability, suggesting this is primarily a stability/DoS vector affecting systems with specific workload patterns rather than a high-priority threat. The vulnerability requires authenticated local access, active parallel I/O workload, and the specific 'mode=lfs' mount option-a non-default configuration. No KEV status or public exploit code is noted in the available data, meaning no confirmed active exploitation has been documented. The SSVC decision framework suggests this has low technical impact on confidentiality and integrity (availability-only impact), requires authenticated local access, and is not automatable across diverse systems. While the panic condition is reproducible under generic/299 test conditions, real-world risk is constrained by configuration specificity and operational context.

Exploit ScenarioDerived

An authenticated local user with write access to an F2FS file system mounted with 'mode=lfs' submits multiple asynchronous I/O write operations (e.g., via aio or direct I/O) concurrently on a nearly-full file system. The parallel block allocations in f2fs_map_blocks() occur faster than reactive foreground GC can free space, causing the allocator to exhaust free segments. Subsequent attempts to allocate a new segment in new_curseg() trigger a kernel BUG panic, crashing the system. This scenario is reproducible with the generic/299 test workload under parallel I/O conditions. No public exploit code is documented, and active exploitation has not been confirmed via CISA KEV or other threat intelligence sources.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Linux kernel f2fs file system denial of service via out-of-space panic in LFS mode allows local authenticated users to crash the system by triggering excessive block allocation during parallel asynchronous I/O operations. The vulnerability affects systems mounted with the 'mode=lfs' option and causes a kernel BUG panic in new_curseg() when foreground garbage collection is not triggered proactively during f2fs_map_blocks(). EPSS exploitation probability is low at 0.02% (4th percentile), indicating limited real-world exploitation likelihood despite CVSS 5.5 availability impact rating. Vendor-released patches are available across multiple kernel stable branches.

RemediationAI

Upgrade to a patched kernel version incorporating the fix commits referenced in git.kernel.org/stable (commits 1005a3ca28e, 264ede8a52f1, 385e64a074, 82765ce5c7a, or f289690f50a). Most Linux distributions have issued patched kernel updates; check your vendor's security advisory (Ubuntu: USN-8126-1). As an interim workaround for systems that cannot immediately patch, avoid the 'mode=lfs' mount option for F2FS volumes if not required for your workload, or limit concurrent asynchronous I/O intensity via I/O scheduling and thread pool tuning. Monitor system logs for kernel BUG panics in new_curseg() to identify affected systems. The fix proactively triggers foreground garbage collection in f2fs_map_blocks() prior to block allocation, preventing the out-of-space condition that causes the panic.

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 exists in the Linux kernel's F2FS (Flash-Friendly File System) implementation, specifically in the block allocation logic within fs/f2fs/segment.c and the f2fs_map_blocks() function. F2FS with LFS (Log-Structured File System) mode uses Out-of-Place Update (OPU), which aggressively allocates physical blocks during file writes via direct I/O and asynchronous I/O operations. The root cause is a race condition where multiple threads performing concurrent writes via aio/dio/bufio methods exhaust free space before foreground garbage collection (GC) can be triggered reactively. The kernel BUG occurs in new_curseg() at line 2835 of segment.c when attempting to allocate a new segment with no available free space. CPE data indicates the Linux kernel across all versions is affected (cpe:2.3:o:linux:linux_kernel). The CWE classification is not specified, but the underlying defect is a resource exhaustion and improper synchronization between allocation and garbage collection timing.

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 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

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

DescriptionCVE.org

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

f2fs: fix to trigger foreground gc during f2fs_map_blocks() in lfs mode

w/ "mode=lfs" mount option, generic/299 will cause system panic as below:

------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.c:2835! Call Trace: <TASK> f2fs_allocate_data_block+0x6f4/0xc50 f2fs_map_blocks+0x970/0x1550 f2fs_iomap_begin+0xb2/0x1e0 iomap_iter+0x1d6/0x430 __iomap_dio_rw+0x208/0x9a0 f2fs_file_write_iter+0x6b3/0xfa0 aio_write+0x15d/0x2e0 io_submit_one+0x55e/0xab0 __x64_sys_io_submit+0xa5/0x230 do_syscall_64+0x84/0x2f0 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0010:new_curseg+0x70f/0x720

The root cause of we run out-of-space is: in f2fs_map_blocks(), f2fs may trigger foreground gc only if it allocates any physical block, it will be a little bit later when there is multiple threads writing data w/ aio/dio/bufio method in parallel, since we always use OPU in lfs mode, so f2fs_map_blocks() does block allocations aggressively.

In order to fix this issue, let's give a chance to trigger foreground gc in prior to block allocation in f2fs_map_blocks().

Executive ViewAI

Why It Matters

CVE-2025-38626 presents moderate security risk rated CVSS 5.5. Exploitation could compromise the security of affected deployments. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Low

Priority Score

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

Attack Technique

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

Affected Products (CPE)CVE.org

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

Vendor StatusVendor

SUSE

Severity: Medium
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