Description
In the Linux kernel, the following vulnerability has been resolved:

hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length

check_and_correct_requested_length() compares (off + len) against
node_size using u32 arithmetic. When the caller passes a large len
value (e.g. from an underflowed subtraction in hfs_brec_remove()),
off + len can wrap past 2^32 and produce a small result, causing the
bounds check to pass when it should fail.

For example, with off=14 and len=0xFFFFFFF2 (underflowed from
data_off - keyoffset - size in hfs_brec_remove), off + len wraps to 6,
which is less than a typical node_size of 512, so the check passes and
the subsequent memmove reads ~4GB past the node buffer.

Fix this by widening the addition to u64 before comparing against
node_size. This prevents the u32 wrap while keeping the logic
straightforward.
Published: 2026-07-25
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is an unsigned 32‑bit integer overflow in the HFS/HFSPlus's check_and_correct_requested_length function. When a caller supplies a very large length value, the addition off+len overflows, yielding a small value that passes the bounds check. The subsequent memmove then reads from a location far beyond the node buffer, potentially reading up to ~4 GB of unrelated kernel memory. This kernel memory corruption can expose sensitive data or serve as a stepping stone to arbitrary code execution with elevated privileges.

Affected Systems

All Linux kernels that include HFS/HFSPlus file system support are potentially affected. The advisory does not specify an exact kernel version range, so any kernel build prior to the commit that widened the length addition to 64‑bit arithmetic may be vulnerable. This includes typical distributions that ship the stock kernel with HFS/HFSPlus drivers enabled.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. The EPSS score is less than 1% and the vulnerability is not listed in the CISA KEV catalog, indicating low public exploitation activity. However, based on the description, it is inferred that the flaw resides in kernel space and could be triggered by a local attacker who can write to or modify an HFS/HFSPlus volume. The likely attack vector involves crafting an overlarge length during a file‑record removal operation; this inference comes from the mention of hfs_brec_remove and an underflowed subtraction. If such a condition is achieved, the out‑of‑bounds memmove may leak memory, allow privilege escalation, or cause denial of service. Remote exploitation would likely require the file system to be exposed over a network service, a condition not documented.

Generated by OpenCVE AI on August 5, 2026 at 00:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the commit that widens the length addition to 64‑bit arithmetic.
  • If an immediate kernel update is not feasible, unmount or disable all HFS/HFSPlus mounts until the patch is applied.
  • Restrict write permissions on any HFS/HFSPlus mounts so that only trusted users or processes can modify file metadata, reducing the ability to trigger the overflow condition.

Generated by OpenCVE AI on August 5, 2026 at 00:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4717-1 linux security update
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
Debian DSA Debian DSA DSA-6405-1 linux security update
History

Tue, 04 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-680

Thu, 30 Jul 2026 00:15:00 +0000


Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
CWE-680

Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length check_and_correct_requested_length() compares (off + len) against node_size using u32 arithmetic. When the caller passes a large len value (e.g. from an underflowed subtraction in hfs_brec_remove()), off + len can wrap past 2^32 and produce a small result, causing the bounds check to pass when it should fail. For example, with off=14 and len=0xFFFFFFF2 (underflowed from data_off - keyoffset - size in hfs_brec_remove), off + len wraps to 6, which is less than a typical node_size of 512, so the check passes and the subsequent memmove reads ~4GB past the node buffer. Fix this by widening the addition to u64 before comparing against node_size. This prevents the u32 wrap while keeping the logic straightforward.
Title hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:41:05.440Z

Reserved: 2026-07-19T15:36:31.783Z

Link: CVE-2026-64361

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:18.677

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64361

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64361 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T00:45:03Z

Weaknesses