Kernel panic via misclassified F2FS dnode footer
Published Oct 28, 2025 · Updated Oct 28, 2025
Improper F2FS node validation in Linux 3.8 through 6.17.1 allows local users to crash the kernel via a crafted filesystem image. f2fs_get_node_folio() accepts a non-inode dnode whose footer inode and node IDs match, so ADDRS_PER_PAGE() computes the wrong block-address count. After the image is mounted, an unprivileged punch-hole request drives the count to zero, triggering a kernel panic or configuration-dependent memory and filesystem corruption.
Summary
What happened
Improper F2FS node validation in Linux 3.8 through 6.17.1 allows local users to crash the kernel via a crafted filesystem image. f2fs_get_node_folio() accepts a non-inode dnode whose footer inode and node IDs match, so ADDRS_PER_PAGE() computes the wrong block-address count. After the image is mounted, an unprivileged punch-hole request drives the count to zero, triggering a kernel panic or configuration-dependent memory and filesystem corruption.
The record
- CVE
- CVE-2025-40025
- Published
- Oct 28, 2025
- Updated
- Oct 28, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 28, 2025CVE publishedPublication date reported by the CVE source.
- Oct 28, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <186098f34b8a5d65eb828f952c8cc56272c60ea0
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c18ecd99e0c707ef8f83cace861cbc3162f4fdf1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Linux kernel CNA F2FS reproducerfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo