Kernel panic via uninitialized HFS+ inode field
Published Dec 16, 2025 · Updated Dec 16, 2025
Uninitialized memory use in the Linux HFS+ driver allows local users to trigger a kernel warning or configured panic during directory removal. hfsplus_iget() only partially initializes struct hfsplus_inode_info for the root folder, leaving subfolders undefined when hfsplus_delete_cat() decrements it. Reachability requires local ability to mount and modify an HFS+ filesystem, and a kernel panic requires KMSAN with panic behavior enabled.
Summary
What happened
Uninitialized memory use in the Linux HFS+ driver allows local users to trigger a kernel warning or configured panic during directory removal. hfsplus_iget() only partially initializes struct hfsplus_inode_info for the root folder, leaving subfolders undefined when hfsplus_delete_cat() decrements it. Reachability requires local ability to mount and modify an HFS+ filesystem, and a kernel panic requires KMSAN with panic behavior enabled.
The record
- CVE
- CVE-2025-40351
- Published
- Dec 16, 2025
- Updated
- Dec 16, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Dec 16, 2025CVE publishedPublication date reported by the CVE source.
- Dec 16, 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 <1b9e5ade272f8be6421c9eea4c4f6810180017f9
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <295527bfdefd5bf31ec8218e2891a65777141d05
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2bb8bc99b1a7a46d83f95c46f530305f6df84eaf
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4891bf2b09c313622a6e07d7f108aa5e123c768d
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9b3d15a758910bb98ba8feb4109d99cc67450ee4
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9df3c241fbf69edce968b20eeeeb3f6da34af041
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a2bee43b451615531ae6f3cf45054f02915ef885
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b07630afe1671096dc64064190cae3b6165cf6e4
What conditions does exploitation require?
What is affected?
Published CVSS scores
No CVSS assessment is available in this record.
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
- syzkaller HFS+ directory-removal reproducerproof of concept · 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