CVE-2026-80656
published high CVSS 3.1 · 7.8hfsplus: Add a sanity check for btree node size
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8ad2c6a36ac4328072377906a47ea0bff11e4032 to < 306265eb9384d2c224f1b14d83a29323f0eab6d1 · 8ad2c6a36ac4328072377906a47ea0bff11e4032 to < 3f95e2661574ff13f099dd13456751933c280628 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.1.5 through 7.1.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: hfsplus: Add a sanity check for btree node size Syzbot reported an uninit-value bug in [1] with a corrupted HFS+ image, during the file system mounting process, specifically while loading the catalog, a corrupted node_size value of 1 caused the rec_off argument passed to hfs_bnode_read_u16() (within hfs_bnode_find()) to be excessively large. Consequently, the function failed to return a valid value to initialize the off variable, triggering the bug [1]. Every node starts from BTree node descriptor: struct hfs_bnode_desc. So, the size of node cannot be lesser than that. However, technical specification declares that: "The node size (which is expressed in bytes) must be power of two, from 512 through 32,768, inclusive." Add a check for btree node size base on technical specification. [1] BUG: KMSAN: uninit-value in hfsplus_bnode_find+0x141c/0x1600 fs/hfsplus/bnode.c:584 hfsplus_bnode_find+0x141c/0x1600 fs/hfsplus/bnode.c:584 hfsplus_btree_open+0x169a/0x1e40 fs/hfsplus/btree.c:382 hfsplus_fill_super+0x111f/0x2770 fs/hfsplus/super.c:553 get_tree_bdev_flags+0x6e6/0x920 fs/super.c:1694 get_tree_bdev+0x38/0x50 fs/super.c:1717 hfsplus_get_tree+0x35/0x40 fs/hfsplus/super.c:709 vfs_get_tree+0xb3/0x5d0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable hfs_btree_open→hfs_bnode_find path is reached only via local mount(2)/vfs_get_tree on a block/loop/USB device (hfsplus_fill_super); there is no network-facing consumer of hfsplus btree parsing. AC:L - A crafted on-disk btree header node_size of 1 is a valid power-of-two and deterministically makes rec_off negative (wrapped to a huge u32), so hfs_bnode_read_u16 skips filling its stack buffer and KMSAN reports uninit-value at mount without races or external preconditions. PR:L - hfsplus is FS_REQUIRES_DEV without FS_USERNS_MOUNT; the highest-impact scenario is an unprivileged local user supplying an HFS+ USB/SD image that udisks2 or a desktop automounter mounts, or a loop image attached through session polkit helpers—no real root in init_ns is needed by the attacker. UI:N - The attacker inserts removable media or supplies the image that gets mounted; mount-time catalog/extent btree loading fires automatically during fill_super with no separate victim action beyond routine automount behavior. S:U - Uninitialized-value consumption and any mount-time parser fault stay within the host kernel parsing the attacker's filesystem; no VM escape, IOMMU bypass, or sandbox boundary is crossed. C:H - Before the fix, invalid node_size lets hfs_bnode_read return without initializing the hfs_bnode_read_u16 buffer; the resulting garbage off value drives subsequent btree record-offset parsing and bounded node reads that consume uninitialized stack bytes—a memory-safety defect class treated as arbitrary read potential per kernel CVSS guidance. I:H - Attacker-controlled sub-512 power-of-two node_size corrupts btree rec_off arithmetic; uninitialized or crafted record offsets can pass hfs_bnode_find checks and seed inconsistent in-memory btree nodes whose corrupted offsets propagate into further mount-time bmap and page-cache accesses. A:H - Syzbot/KMSAN builds panic on the uninit-value at hfsplus_bnode_find; even on production kernels a crafted image causes mount failure after kernel error logging, and repeated automount of malicious removable media can deny access to the volume and waste mount resources.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8ad2c6a36ac4328072377906a47ea0bff11e4032 to < 306265eb9384d2c224f1b14d83a29323f0eab6d1 (affected · git)8ad2c6a36ac4328072377906a47ea0bff11e4032 to < 3f95e2661574ff13f099dd13456751933c280628 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.1 (affected)0 to < 7.1 (unaffected · semver)7.1.5 through 7.1.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
hfsplus: Add a sanity check for btree node size
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a24c61700715f301515d74a8c92e3c13cba32d59842bd697bc921801dda89a4b
- Ingested
- 23 Sep 2026, 09:34:40 UTC
- Source record
- Official CVE record