CVE-2025-40150 in Block products
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_in...
Affects 1 product from 4 vendors. Facts below cite their sources.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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".
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-40150 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-258875-I |
| Published | 2025-11-12 |
| Last modified | 2026-10-19 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A bug in the F2FS filesystem implementation within the Linux kernel could lead to filesystem corruption and potential system instability due to inconsistent segment types in the SSA and SIT.
The vulnerability arises from improper handling of empty section migration in the F2FS filesystem, which can be triggered by specific operations leading to inconsistent segment types in the Segment Summary Area (SSA) and Segment Information Table (SIT). This can cause the filesystem to stop due to detected corruption.
Questions
What is CVE-2025-40150?
A bug in the F2FS filesystem implementation within the Linux kernel could lead to filesystem corruption and potential system instability due to inconsistent segment types in the SSA and SIT.
Is CVE-2025-40150 actively exploited?
No confirmed active exploitation of CVE-2025-40150 as of 2026-10-25.
How do I remediate CVE-2025-40150?
Priority: MEDIUM.
What systems are affected by CVE-2025-40150?
CVE-2025-40150 affects Block; Kernel; Linux Linux; Segment.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Block","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.