Skip to main content
EPSS 0.2%top 95%

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)

0
High
Published: 12/04/2025 (12/04/2025, 18:30:52 UTC)
Source: GCVE Database

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:56:39 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses