In the Linux kernel, the following vulnerability has been resolved: hfs: fix KMSAN uninit-value issue in hfs_find_set_zero_bits() The syzbot… (CVE-2025-40243)
A use of uninitialized memory issue was found and fixed in the Linux kernel's HFS filesystem code in the function hfs_find_set_zero_bits(). The problem was caused by the use of kmalloc() which does not zero memory, potentially leading to corrupted bitmap operations and filesystem errors. The fix replaced kmalloc() with kzalloc() to ensure allocated memory is zeroed, preventing uninitialized data from affecting bitmap handling.
AI Analysis
Technical Summary
The Linux kernel's HFS filesystem had a vulnerability identified by syzbot involving uninitialized memory usage in hfs_find_set_zero_bits(). The root cause was that the bitmap buffer allocated with kmalloc() was not zeroed, allowing garbage data to influence bitmap operations. This could lead to volume corruption and filesystem driver bugs. The patch replaced kmalloc() with kzalloc() to guarantee zero-initialized memory for the bitmap, ensuring correctness of bitmap operations and preventing corruption.
Potential Impact
If uninitialized memory contains non-zero garbage, it can corrupt the bitmap used by the HFS filesystem, potentially causing volume corruption and filesystem driver malfunctions. The CVSS vector indicates local attack vector with low complexity and low privileges required, but with high impact on confidentiality, integrity, and availability. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The issue was fixed by replacing kmalloc() with kzalloc() in the Linux kernel source code for the HFS filesystem. Users should apply the official Linux kernel updates once available that include this fix.
In the Linux kernel, the following vulnerability has been resolved: hfs: fix KMSAN uninit-value issue in hfs_find_set_zero_bits() The syzbot… (CVE-2025-40243)
Description
A use of uninitialized memory issue was found and fixed in the Linux kernel's HFS filesystem code in the function hfs_find_set_zero_bits(). The problem was caused by the use of kmalloc() which does not zero memory, potentially leading to corrupted bitmap operations and filesystem errors. The fix replaced kmalloc() with kzalloc() to ensure allocated memory is zeroed, preventing uninitialized data from affecting bitmap handling.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's HFS filesystem had a vulnerability identified by syzbot involving uninitialized memory usage in hfs_find_set_zero_bits(). The root cause was that the bitmap buffer allocated with kmalloc() was not zeroed, allowing garbage data to influence bitmap operations. This could lead to volume corruption and filesystem driver bugs. The patch replaced kmalloc() with kzalloc() to guarantee zero-initialized memory for the bitmap, ensuring correctness of bitmap operations and preventing corruption.
Potential Impact
If uninitialized memory contains non-zero garbage, it can corrupt the bitmap used by the HFS filesystem, potentially causing volume corruption and filesystem driver malfunctions. The CVSS vector indicates local attack vector with low complexity and low privileges required, but with high impact on confidentiality, integrity, and availability. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The issue was fixed by replacing kmalloc() with kzalloc() in the Linux kernel source code for the HFS filesystem. Users should apply the official Linux kernel updates once available that include this fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-hpm4-xw5p-rr86
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40243"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d59c2644c7f847a27f
Added to database: 07/30/2026, 15:50:45 UTC
Last enriched: 07/30/2026, 16:56:39 UTC
Last updated: 09/10/2026, 19:38:45 UTC
Views: 18
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.