CVE-2026-139610
published high CVSS 3.1 · 7.0hfs/hfsplus: serialize B-tree close against folio release
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < bc2955a1f757a53206d4df7fdfcebc9c9d3c831f · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 06663fea795aad27ab24f480dacd3e8213d40925 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 41daf8439db9087a4a57dedfceefc49eb45437e5 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 586fff868a2f9efa47fef09227b38d1fe4b6123d · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 170fada4a1781effac912d7e3e368b91745a841a · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < b57bb1f1df39aa175cbfc68b86a4d00249ac1390 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < dce0e0248205bb3dc5b4c6793cd2ecb453152259 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | 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: hfs/hfsplus: serialize B-tree close against folio release B-tree nodes with a zero reference count remain in the node hash until folio reclaim or tree teardown frees them. The folio release callbacks remove nodes while holding hash_lock, but hfs_btree_close() walks and frees the same hash without that lock. Reclaim can therefore unhash and free a node after close has loaded its pointer, causing a use-after-free or double-free. The following syzkaller crashes seem to be the same UAF in {hfs,hfsplus}_btree_close() (or {hfs,hfsplus}_bnode_unhash()) and follow the same pattern, but do not contain a reproducer to confirm. Detach each node with hfs_bnode_unhash() while holding hash_lock before inspecting and freeing it. Drop the lock before hfs_bnode_free() so a large tree is not freed while holding a spinlock. Apply the same fix to the matching HFS+ implementation.
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.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The unlocked hash walk in hfs_btree_close() runs only from hfsplus_put_super()/hfs_mdb_put() on umount, or from the fill_super error unwind. Both start with local mount(2)/umount(2) of an HFS/HFS+ block device. No remote protocol supplies data to this teardown path. AC:H - Reclaim's shrink_folio_list()->hfsplus_release_folio() must lock a B-tree folio and free its zero-ref bnode in the few instructions between close loading node_hash[i] and freeing it. The attacker can cause memory pressure but cannot pick which folio reclaim scans or when. Syzbot hit this five times without a reproducer. PR:L - hfs/hfsplus are FS_REQUIRES_DEV without FS_USERNS_MOUNT, so user-namespace mount does not work. An active desktop user can still mount and unmount an ordinary HFS+ volume or loop image through udisks2, and any unprivileged process can create the memory pressure that drives reclaim. UI:N - The image needs no crafted content. The same local user mounts it through udisks2, populates the catalog/extents node cache with file lookups, generates memory pressure and unmounts it. No other user has to act. S:U - The freed hfs_bnode objects and the node_hash chain belong to the kernel's own slab heap. Corrupting them stays within the kernel's security authority and crosses no VM, IOMMU or sandbox boundary. C:H - After reclaim kfree()s the bnode, hfs_btree_close() keeps reading node->next_hash and node->refcnt from freed slab memory. A reallocated object feeds it a fake chain, so the walk reads attacker-chosen kernel memory. I:H - Both sides can hfs_bnode_free() the same node, which double-kfree()s it and drops its page references twice. A sprayed fake node also makes close call put_page()/kfree() on attacker-chosen pointers (an arbitrary free), which can be turned into kernel memory corruption. A:H - Losing the race causes a KASAN use-after-free or double-free in hfs_btree_close(), or trips BUG_ON(!*p) in hfs_bnode_unhash() when close has already unlinked the node. Either one oopses the kernel during unmount.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < bc2955a1f757a53206d4df7fdfcebc9c9d3c831f (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 06663fea795aad27ab24f480dacd3e8213d40925 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 41daf8439db9087a4a57dedfceefc49eb45437e5 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 586fff868a2f9efa47fef09227b38d1fe4b6123d (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 170fada4a1781effac912d7e3e368b91745a841a (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < b57bb1f1df39aa175cbfc68b86a4d00249ac1390 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < dce0e0248205bb3dc5b4c6793cd2ecb453152259 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/06663fea795aad27ab24f480dacd3e8213d40925
- https://git.kernel.org/stable/c/170fada4a1781effac912d7e3e368b91745a841a
- https://git.kernel.org/stable/c/25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05
- https://git.kernel.org/stable/c/41daf8439db9087a4a57dedfceefc49eb45437e5
- https://git.kernel.org/stable/c/586fff868a2f9efa47fef09227b38d1fe4b6123d
- https://git.kernel.org/stable/c/b57bb1f1df39aa175cbfc68b86a4d00249ac1390
- https://git.kernel.org/stable/c/bc2955a1f757a53206d4df7fdfcebc9c9d3c831f
- https://git.kernel.org/stable/c/dce0e0248205bb3dc5b4c6793cd2ecb453152259
Provider assertions
1Linux · cna
hfs/hfsplus: serialize B-tree close against folio release
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2ea5b1378737dae70d785bd85756e1031f2c342f2d3ce95240620a596504acb8
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record