CVE-2025-40082: Out-of-bounds Read in Linux Kernel HFS+ hfsplus_uni2asc()
- Vendor
- Linux
CVE-2025-40082 is an out-of-bounds read vulnerability in the Linux kernel HFS+ filesystem implementation. The hfsplus_uni2asc() function can be called by hfsplus_listxattr() with an hfsplus_attr_unistr structure rather than an hfsplus_unistr structure. Because the structures have different sizes, prior bounds handling did not prevent the Unicode-buffer pointer from exceeding the allocated object when the supplied ustrlen exceeds the available buffer size. The flaw is reachable during extended-attribute enumeration on an HFS+ filesystem.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes an out-of-bounds read in kernel context. Depending on kernel configuration and adjacent memory layout, this may disclose kernel memory or cause a kernel crash and denial of service.
Mitigation
If you can’t patch tonight, do this now.
Until a fixed kernel is deployed, avoid mounting or processing untrusted HFS+ filesystems, particularly removable media. Restrict untrusted users' ability to enumerate extended attributes on HFS+ mounts. Where operationally feasible, disable or do not load HFS+ filesystem support to make the vulnerable code path unreachable.
Remediation
Patch, then assume compromise.
Apply a Linux kernel update containing the upstream correction. The fix separates handling of hfsplus_attr_unistr and hfsplus_unistr buffers through dedicated wrapper functions and clamps ustrlen to a safe limit based on the allocated buffer size. Distribution-provided kernel security updates that incorporate this fix should be installed, followed by a reboot into the updated kernel where required.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-40082 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2025-40082 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-40082?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2025-40082.
- Is there a patch for CVE-2025-40082?
- Apply a Linux kernel update containing the upstream correction. The fix separates handling of hfsplus_attr_unistr and hfsplus_unistr buffers through dedicated wrapper functions and clamps ustrlen to a safe limit based on the allocated buffer size.
- What products are affected by CVE-2025-40082?
- Linux Kernel.
- How severe is CVE-2025-40082?
- CVE-2025-40082 has a CVSS v3.1 score of 7.1 (High) and an EPSS score of 0.20% (9th percentile) as of Oct 16, 2026.
Recent activity
14 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.