CVE-2025-38163: f2fs: fix to do sanity check on sbi->total_valid_block_count
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.20% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 05872a167c2cab80ef186ef23cc34a6776a1a30c, 25f3776b58c1c45ad2e50ab4b263505b4d2378ca, 49bc7bf38e42cfa642787e947f5721696ea73ac3; azl3 kernel 6.6.92.2-2 on Azure Linux 3.0 6.6.96.1-1.
Low priority for now. Upgrade to Linux Linux 05872a167c2cab80ef186ef23cc34a6776a1a30c, 25f3776b58c1c45ad2e50ab4b263505b4d2378ca, 49bc7bf38e42cfa642787e947f5721696ea73ac3; azl3 kernel 6.6.92.2-2 on Azure Linux 3.0 6.6.96.1-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to do sanity check on sbi->total_valid_block_count syzbot reported a f2fs bug as below: ------------[ cut here ]------------ kernel BUG at fs/f2fs/f2fs.h:2521! RIP: 0010:dec_valid_block_count+0x3b2/0x3c0 fs/f2fs/f2fs.h:2521 Call Trace: f2fs_truncate_data_blocks_range+0xc8c/0x11a0 fs/f2fs/file.c:695 truncate_dnode+0x417/0x740 fs/f2fs/node.c:973 truncate_nodes+0x3ec/0xf50 fs/f2fs/node.c:1014 f2fs_truncate_inode_blocks+0x8e3/0x1370 fs/f2fs/node.c:1197 f2fs_do_truncate_blocks+0x840/0x12b0 fs/f2fs/file.c:810 f2fs_truncate_blocks+0x10d/0x300 fs/f2fs/file.c:838 f2fs_truncate+0x417/0x720 fs/f2fs/file.c:888 f2fs_setattr+0xc4f/0x12f0 fs/f2fs/file.c:1112 notify_change+0xbca/0xe90 fs/attr.c:552 do_truncate+0x222/0x310 fs/open.c:65 handle_truncate fs/namei.c:3466 [inline] do_open fs/namei.c:3849 [inline] path_openat+0x2e4f/0x35d0 fs/namei.c:4004 do_filp_open+0x284/0x4e0 fs/namei.c:4031 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_creat fs/open.c:1522 [inline] __se_sys_creat fs/open.c:1516 [inline] __x64_sys_creat+0x124/0x170 fs/open.c:1516 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 The reason is: in fuzzed image, sbi->total_valid_block_count is inconsistent w/ mapped blocks indexed by inode, so, we should not trigger panic for such case, instead, let's print log and set fsck flag.
- Published
- Jul 3, 2025
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 10th percentile
- CWE
- CWE-476
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 3.8affected
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before 49bc7bf38e42cfa642787e947f5721696ea73ac3affected · git
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before f1b743c1955151bd392539b739a3ad155296be13affected · git
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20daffected · git
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before 25f3776b58c1c45ad2e50ab4b263505b4d2378caaffected · git
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before a39cc43efc1bca74ed9d6cf9e60b995071f7d178affected · git
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before 65b3f76592aed5a43c4d79375ac097acf975972baffected · git
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before ccc28c0397f75a3ec9539cceed9db014d7b73869affected · git
- 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5 and later · before 05872a167c2cab80ef186ef23cc34a6776a1a30caffected · git
- before 3.8not affected · semver
Affected versions · NVD (8)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux11.0
- linux linux kernel5.5 and later · before 5.10.239
- linux linux kernel5.11 and later · before 5.15.186
- linux linux kernel5.16 and later · before 6.1.142
- linux linux kernel3.8 and later · before 5.4.295
- linux linux kernel6.7 and later · before 6.12.34
- linux linux kernel6.13 and later · before 6.15.3
- linux linux kernel6.2 and later · before 6.6.94
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.147-1 | 6.1.147-1 |
| Debian:13 | linux | before 6.12.35-1 | 6.12.35-1 |
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2025-38158Jul 3, 2025 · hisi_acc_vfio_pci: fix XQE dma address error22Monitor
- ← EarlierCVE-2025-38160Jul 3, 2025 · clk: bcm: rpi: Add NULL check in raspberrypi_clk_register()22Monitor
- Later →CVE-2025-38164Jul 3, 2025 · f2fs: zone: fix to avoid inconsistence in between SIT and SSA22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 05872a167c2cab80ef186ef23cc34a6776a1a30c | Vendor (CNA) |
| Linux Linux | 25f3776b58c1c45ad2e50ab4b263505b4d2378ca | Vendor (CNA) |
| Linux Linux | 49bc7bf38e42cfa642787e947f5721696ea73ac3 | Vendor (CNA) |
| Linux Linux | 65b3f76592aed5a43c4d79375ac097acf975972b | Vendor (CNA) |
| Linux Linux | 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d | Vendor (CNA) |
| Linux Linux | a39cc43efc1bca74ed9d6cf9e60b995071f7d178 | Vendor (CNA) |
| Linux Linux | ccc28c0397f75a3ec9539cceed9db014d7b73869 | Vendor (CNA) |
| Linux Linux | f1b743c1955151bd392539b739a3ad155296be13 | Vendor (CNA) |
| azl3 kernel 6.6.92.2-2 on Azure Linux 3.0 | 6.6.96.1-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| debian:linux | 6.1.147-1 · Debian:12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-476 · NULL Pointer DereferenceCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (9 more)Show less
- git.kernel.org/stable/c/25f3776b58c1c45ad2e50ab4b263505b4d2378ca
- git.kernel.org/stable/c/49bc7bf38e42cfa642787e947f5721696ea73ac3
- git.kernel.org/stable/c/65b3f76592aed5a43c4d79375ac097acf975972b
- git.kernel.org/stable/c/6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d
- git.kernel.org/stable/c/a39cc43efc1bca74ed9d6cf9e60b995071f7d178
- git.kernel.org/stable/c/ccc28c0397f75a3ec9539cceed9db014d7b73869
- git.kernel.org/stable/c/f1b743c1955151bd392539b739a3ad155296be13
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.