Skip to main content
EPSS 0.1%top 96%

In the Linux kernel, the following vulnerability has been resolved: hfs: validate record offset in hfsplus_bmap_alloc hfsplus_bmap_alloc can trigger… (CVE-2025-40349)

0
High
Published: 12/16/2025 (12/16/2025, 15:30:43 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's HFS+ filesystem implementation (hfsplus_bmap_alloc) allows out-of-bounds memory access due to improper validation of record offset and length. This can cause a kernel crash (KASAN slab-out-of-bounds) and potentially lead to high impact including confidentiality, integrity, and availability loss. The issue arises when the offset or length exceeds the node size, leading to invalid page access. A patch has been applied to add proper validation of these values to prevent out-of-bounds access.

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, 17:54:12 UTC

Technical Analysis

The Linux kernel's hfsplus_bmap_alloc function in the HFS+ filesystem code did not properly validate the record offset and length before using them to access memory pages. If these values exceeded the node size, the function could access memory outside the allocated node range, causing a slab-out-of-bounds error detected by KASAN and leading to a kernel crash. The vulnerability is addressed by adding validation checks for offset and length before use, preventing out-of-bounds page access. This fix moves validation helper functions to a shared header for broader use.

Potential Impact

Exploitation of this vulnerability can cause a kernel crash resulting in denial of service. The CVSS vector indicates local attack vector with low complexity and low privileges required, no user interaction, and impacts confidentiality, integrity, and availability at a high level. This means an attacker with local access and limited privileges could trigger the vulnerability to crash the system and potentially affect data confidentiality and integrity.

Mitigation Recommendations

A patch has been applied to the Linux kernel to validate record offset and length in hfsplus_bmap_alloc, preventing out-of-bounds memory access. Users and administrators should update to the fixed Linux kernel version once available. Patch status is not explicitly confirmed in the provided data, so check the official Linux kernel advisories or vendor sources for the exact fixed versions and apply updates accordingly.

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-fw43-f4rv-3fjg
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40349"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a6b72d49c2644c7f8478ef7

Added to database: 07/30/2026, 15:50:44 UTC

Last enriched: 07/30/2026, 17:54:12 UTC

Last updated: 09/10/2026, 19:26:54 UTC

Views: 10

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