hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-191 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.10.241 to before 5.10.261; 5.15.190 to before 5.15.212; 6.1.149 to before 6.1.178; 6.6.103 to before 6.6.145; 6.12.43 to before 6.12.97; 5.4.297 to before 5.5; 6.15.11 to before 6.16; 6.16.2 to before 6.17 | 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 5.5, 6.16, 6.17 | Patch available | CNA |
| Linux | Linux | 6.17 and later | 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.4, 7.2 | Patch available | CNA |
- Linux VendorLinux Affected 5.10.241 to before 5.10.261; 5.15.190 to before 5.15.212; 6.1.149 to before 6.1.178; 6.6.103 to before 6.6.145; 6.12.43 to before 6.12.97; 5.4.297 to before 5.5; 6.15.11 to before 6.16; 6.16.2 to before 6.17 Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 5.5, 6.16, 6.17 Patch available CNA
- Linux VendorLinux Affected 6.17 and later Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.4, 7.2 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.4.297 to before 5.5; 5.10.241 to before 5.10.261; 5.15.190 to before 5.15.212; 6.1.149 to before 6.1.178; 6.6.103 to before 6.6.145; 6.12.43 to before 6.12.97; 6.15.11 to before 6.16; 6.16.2 to before 6.18.40; 6.19 to before 7.1.4 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 5.4.297 to before 5.5; 5.10.241 to before 5.10.261; 5.15.190 to before 5.15.212; 6.1.149 to before 6.1.178; 6.6.103 to before 6.6.145; 6.12.43 to before 6.12.97; 6.15.11 to before 6.16; 6.16.2 to before 6.18.40; 6.19 to before 7.1.4 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 5.5, 6.16, 6.17
- Fix · CNA Linux (Linux) Fixed in 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.4, 7.2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 5 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2026-64361
- 2026-10-03 Alias added: GHSA-qpqg-q3fj-94c5
- 2026-10-20 Affected versions changed · Red Hat
References
Patch 8
- https://git.kernel.org/stable/c/c8dd112173c02adf539fe2ad34a45f5e0068780d
- https://git.kernel.org/stable/c/fc9d1447ca3cdc78d2e4ace1ce1f3a7c77ca08b1
- https://git.kernel.org/stable/c/671c3fcc2ad31c1311ea6414382a2d95104ae1b9
- https://git.kernel.org/stable/c/b6a481642ea1977be2f84dc08c5affd742c177e7
- https://git.kernel.org/stable/c/7399c3baee7bb622a92f0b895cd4d3009a693f2b
- https://git.kernel.org/stable/c/607217f7ad419b53926f71e3f75001813bbc08ad
- https://git.kernel.org/stable/c/c25d3c931a63e762fcaa9cb125b901c53b62403f
- https://git.kernel.org/stable/c/966cb76fb2857a4242cab6ea2ea17acf818a3da7
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2026-64361 · CVE Program
- CVE-2026-64361 · NVD
- FIRST EPSS
- GHSA-qpqg-q3fj-94c5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-64361 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences