CVE-2025-40349: Linux kernel · hfs: validate record offset in hfsplus_bmap_alloc hfsplus_bmap_alloc can trigger
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
AI-suggested
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.
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.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40349 (opens in a new tab)
- git.kernel.org/stable/c/0058d20d76182861dbdd8fd6e2dd8d18d6d3becf (opens in a new tab)
- git.kernel.org/stable/c/068a46df3e6acc68fb9db0a6313ab379a11ecd6f (opens in a new tab)
- git.kernel.org/stable/c/17ed51cfce6c62cffb97059ef392ad2e0245806e (opens in a new tab)
- git.kernel.org/stable/c/40dfe7a4215a1f20842561ffaf5a6f83a987e75b (opens in a new tab)
- git.kernel.org/stable/c/418e48cab99c52c1760636a4dbe464bf6db2018b (opens in a new tab)
- git.kernel.org/stable/c/4f40a2b3969daf10dca4dea6f6dd0e813f79b227 (opens in a new tab)
- git.kernel.org/stable/c/738d5a51864ed8d7a68600b8c0c63fe6fe5c4f20 (opens in a new tab)
- git.kernel.org/stable/c/f7d9f600c7c3ff5dab36181a388af55f2c95604c (opens in a new tab)