
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40025 is a vulnerability discovered in the Linux kernel's F2FS (Flash-Friendly File System) implementation. The issue was identified and disclosed on October 28, 2025, affecting the Linux kernel version 6.17.0-rc1 and earlier versions. The vulnerability specifically relates to improper sanity checking on node footers for non-inode dnodes in the F2FS filesystem (NVD).
The vulnerability occurs in the F2FS filesystem when a non-inode dnode has the same footer.ino and footer.nid values, causing it to be incorrectly parsed as an inode. This leads to ADDRS_PER_PAGE() returning incorrect blkaddr count (typically 923). When dn.ofs_in_node equals 923, the count calculation results in 0, triggering a kernel panic with f2fs_bug_on(). The issue manifests in the f2fs_truncate_hole() function at fs/f2fs/file.c:1243 (Debian Security).
When exploited, this vulnerability can cause a kernel panic in Linux systems using the F2FS filesystem, potentially leading to system crashes and denial of service conditions. The issue affects multiple Linux distributions including Debian Bullseye, Bookworm, Trixie, and Forky versions (Debian Security).
The vulnerability has been fixed in Linux kernel version 6.17.7-2 and later. The fix introduces a new node_type NODE_TYPE_NON_INODE and implements additional sanity checks in f2fs_get_node_folio() to detect corruption when a non-inode dnode has matching footer.ino and footer.nid values (Debian Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."