Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-38163

MEDIUM 5.5EPSS 15%

f2fs: fix to do sanity check on sbi->total_valid_block_count

Mitigation

  • Upgrade Linux to 05872a167c2cab80ef186ef23cc34a6776a1a30c or later.

Who should check

  • Anyone running Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 49bc7bf38e42cfa642787e947f5721696ea73ac3; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f1b743c1955151bd392539b739a3ad155296be13; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 25f3776b58c1c45ad2e50ab4b263505b4d2378ca; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < a39cc43efc1bca74ed9d6cf9e60b995071f7d178; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 65b3f76592aed5a43c4d79375ac097acf975972b; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccc28c0397f75a3ec9539cceed9db014d7b73869; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 05872a167c2cab80ef186ef23cc34a6776a1a30c
  • Anyone running Linux 3.8

Vulnerability facts

Affected
Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 49bc7bf38e42cfa642787e947f5721696ea73ac3; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f1b743c1955151bd392539b739a3ad155296be13; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 25f3776b58c1c45ad2e50ab4b263505b4d2378ca; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < a39cc43efc1bca74ed9d6cf9e60b995071f7d178; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 65b3f76592aed5a43c4d79375ac097acf975972b; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccc28c0397f75a3ec9539cceed9db014d7b73869; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 05872a167c2cab80ef186ef23cc34a6776a1a30c; Linux 3.8
Fixed in
Linux 49bc7bf38e42cfa642787e947f5721696ea73ac3, Linux 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d, Linux 25f3776b58c1c45ad2e50ab4b263505b4d2378ca, Linux 65b3f76592aed5a43c4d79375ac097acf975972b, Linux 05872a167c2cab80ef186ef23cc34a6776a1a30c
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 49bc7bf38e42cfa642787e947f5721696ea73ac3; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f1b743c1955151bd392539b739a3ad155296be13; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 25f3776b58c1c45ad2e50ab4b263505b4d2378ca; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < a39cc43efc1bca74ed9d6cf9e60b995071f7d178; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 65b3f76592aed5a43c4d79375ac097acf975972b; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccc28c0397f75a3ec9539cceed9db014d7b73869; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 05872a167c2cab80ef186ef23cc34a6776a1a30c—cvelist
Linux3.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-38163. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38163.md
Affected: Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 49bc7bf38e42cfa642787e947f5721696ea73ac3; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f1b743c1955151bd392539b739a3ad155296be13; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d; >= 39a53e0ce0df01b3cf4bb89…
Fixed in: Linux 49bc7bf38e42cfa642787e947f5721696ea73ac3, Linux 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d, Linux 25f3776b58c1c45ad2e50ab4b263505b4d2378ca, Linux 65b3f76592aed5a43c4d79375ac097acf975972b, Linux 05872a167c2cab80ef186ef23cc34a6776a1a30c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-38163 being exploited?

There is no confirmed exploitation: CVE-2025-38163 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-38163?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-38163?

Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 49bc7bf38e42cfa642787e947f5721696ea73ac3; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f1b743c1955151bd392539b739a3ad155296be13; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 25f3776b58c1c45ad2e50ab4b263505b4d2378ca; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < a39cc43efc1bca74ed9d6cf9e60b995071f7d178; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 65b3f76592aed5a43c4d79375ac097acf975972b; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccc28c0397f75a3ec9539cceed9db014d7b73869; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 05872a167c2cab80ef186ef23cc34a6776a1a30c; Linux 3.8.

Is there a fix for CVE-2025-38163?

Yes. Fixed in Linux 49bc7bf38e42cfa642787e947f5721696ea73ac3, Linux 6a324d77f7ea1a91d55c4b6ad970e3ac9ab6a20d, Linux 25f3776b58c1c45ad2e50ab4b263505b4d2378ca, Linux 65b3f76592aed5a43c4d79375ac097acf975972b, Linux 05872a167c2cab80ef186ef23cc34a6776a1a30c. Upgrade Linux to 05872a167c2cab80ef186ef23cc34a6776a1a30c or later.

How do I check if I'm affected by CVE-2025-38163?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors