Skip to main content

Linux Kernel CVE-2025-40150

2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Vulnerability Assessment

Impact

The EPSS score of 0.03% (10th percentile) indicates low exploitability probability, reflecting the narrow conditions required: a system must be using F2FS with pinned file operations under concurrent I/O load. However, the technical impact is high-filesystem shutdown is a denial of service affecting data availability. The vulnerability is not actively exploited (no KEV status provided) and no public exploit code is referenced. Attack complexity is high due to the timing-dependent race condition. This is a legitimate kernel stability issue rather than a high-CVSS-low-risk scenario; it should be prioritized based on organizational reliance on F2FS deployments rather than broad attack surface. Systems using other filesystems (ext4, btrfs, XFS) are unaffected.

Exploit ScenarioDerived

A system running F2FS experiences a filesystem shutdown after executing fallocate on a pinned file while concurrent write operations are in progress-for example, a database performing space reservation while handling incoming transactions. The race condition causes GC to attempt migrating a segment simultaneously allocated by the write path, triggering the SSA/SIT inconsistency detection. The kernel halts filesystem operations, requiring manual fsck and recovery, resulting in service downtime. This scenario is most likely on storage-constrained embedded or IoT systems where F2FS is preferred and pinned file allocation patterns occur naturally during operation.

Monitor Track and reassess. Why: No CVSS yet + weak signal (CWE or non-zero EPSS).
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 filesystem implementation contains a race condition between garbage collection and block allocation that causes segment type inconsistencies, leading to filesystem shutdown. The vulnerability affects systems using F2FS with pinned files during concurrent fallocate and writepage operations. While the EPSS score is low at 0.03%, this is a kernel-level denial of service affecting data availability on affected systems.

RemediationAI

Update the Linux kernel to a version incorporating the four fix commits (25d2dc669f2a7e48b335d1cb07139f2ffc9fe5df, d625a2b08c089397d3a03bff13fa8645e4ec7a01, db489778e6f2a4034c2cd26fadda2796eba24dcd, eec1589be36fcf7440755703e4faeee2c01e360b), typically available in stable kernel releases following the upstream fix. Consult your Linux distribution's advisory and kernel changelog to identify the first patched version. As an interim mitigation, avoid concurrent fallocate operations on pinned F2FS files during active I/O workloads, or consider switching to an alternative filesystem (ext4, btrfs) if F2FS is not critical to your deployment. Verify kernel source commit history at https://git.kernel.org/stable/ to confirm patch inclusion in your target kernel version.

Affected ProductsAI

The Linux kernel is affected, specifically versions containing the vulnerable F2FS code path prior to the fix commits. Affected systems are those using F2FS as the active filesystem with pinned file support enabled. The vulnerability has been resolved in upstream kernel commits 25d2dc669f2a7e48b335d1cb07139f2ffc9fe5df, d625a2b08c089397d3a03bff13fa8645e4ec7a01, db489778e6f2a4034c2cd26fadda2796eba24dcd, and eec1589be36fcf7440755703e4faeee2c01e360b per the provided references. Exact kernel version ranges are not specified in available data; administrators should verify F2FS kernel module version against these commit identifiers in their distribution's changelog.

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 F2FS (Flash-Friendly File System) implementation within the Linux kernel. F2FS is a log-structured filesystem optimized for NAND flash storage. The root cause is a race condition in the garbage collection (GC) mechanism, specifically when do_garbage_collect() is invoked during pinned file expansion via f2fs_allocate_pinning_section(). Concurrently, block allocation via f2fs_allocate_data_block() may allocate the same segment that GC is attempting to migrate. The GC process reads on-disk Segment Summary Area (SSA) metadata showing an old segment type, while the in-memory Segment Information Table (SIT) reflects the newly allocated segment type. This mismatch triggers the inconsistency detection and filesystem shutdown. The vulnerability is classified under race condition handling and improper synchronization between kernel subsystems.

Know when Linux Kernel gets its next vulnerability

  • 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

DescriptionCVE.org

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

f2fs: fix to avoid migrating empty section

It reports a bug from device w/ zufs:

F2FS-fs (dm-64): Inconsistent segment (173822) type [1, 0] in SSA and SIT F2FS-fs (dm-64): Stopped filesystem due to reason: 4

Thread A Thread B

  • f2fs_expand_inode_data
  • f2fs_allocate_pinning_section
  • f2fs_gc_range
  • do_garbage_collect w/ segno #x
  • writepage
  • f2fs_allocate_data_block
  • new_curseg
  • allocate segno #x

The root cause is: fallocate on pinning file may race w/ block allocation as above, result in do_garbage_collect() from fallocate() may migrate segment which is just allocated by a log, the log will update segment type in its in-memory structure, however GC will get segment type from on-disk SSA block, once segment type changes by log, we can detect such inconsistency, then shutdown filesystem.

In this case, on-disk SSA shows type of segno #173822 is 1 (SUM_TYPE_NODE), however segno #173822 was just allocated as data type segment, so in-memory SIT shows type of segno #173822 is 0 (SUM_TYPE_DATA).

Change as below to fix this issue:

  • check whether current section is empty before gc
  • add sanity checks on do_garbage_collect() to avoid any race case, result

in migrating segment used by log.

  • btw, it fixes misc issue in printed logs: "SSA and SIT" -> "SIT and SSA".

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Data Quality
2 sources
Confidence: Low

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 Not scored yet
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
No CVSS yet + weak signal (CWE or non-zero EPSS)
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.

Attack Technique

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2022-0847 HIGH POC
7.8 Mar 10

Linux kernel contains a flaw known as 'Dirty Pipe' where improper pipe buffer flag initialization allows unprivileged lo

CVE-2015-1328 HIGH POC
7.8 Nov 28

The overlayfs implementation in the linux (aka Linux kernel) package before 3.19.0-21.21 in Ubuntu through 15.04 does no

CVE-2017-7308 HIGH POC
7.8 Mar 29

The packet_set_ring function in net/packet/af_packet.c in the Linux kernel through 4.10.6 does not properly validate cer

CVE-2017-16995 HIGH POC
7.8 Dec 27

The check_alu_op function in kernel/bpf/verifier.c in the Linux kernel through 4.4 allows local users to cause a denial

CVE-2017-1000112 HIGH POC
7.0 Oct 05

Linux kernel: Exploitable memory corruption due to UFO to non-UFO path switch. Rated high severity (CVSS 7.0). Public ex

CVE-2015-8660 MEDIUM POC
6.7 Dec 28

The ovl_setattr function in fs/overlayfs/inode.c in the Linux kernel through 4.3.3 attempts to merge distinct setattr op

CVE-2012-0056 MEDIUM POC
6.9 Jan 27

The mem_write function in the Linux kernel before 3.2.2, when ASLR is disabled, does not properly check permissions when

CVE-2014-0038 MEDIUM POC
6.9 Feb 06

The compat_sys_recvmmsg function in net/compat.c in the Linux kernel before 3.13.2, when CONFIG_X86_X32 is enabled, allo

CVE-2016-8655 HIGH POC
7.8 Dec 08

Race condition in net/packet/af_packet.c in the Linux kernel through 4.8.12 allows local users to gain privileges or cau

CVE-2016-0728 HIGH POC
7.8 Feb 08

The join_session_keyring function in security/keys/process_keys.c in the Linux kernel before 4.4.1 mishandles object ref

CVE-2017-0561 CRITICAL POC
9.8 Apr 07

A remote code execution vulnerability in the Broadcom Wi-Fi firmware could enable a remote attacker to execute arbitrary

CVE-2016-10277 HIGH POC
7.8 May 12

An elevation of privilege vulnerability in the Motorola bootloader could enable a local malicious application to execute

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