{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139610","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.943Z","datePublished":"2026-11-30T13:36:20.540Z","dateUpdated":"2026-12-01T05:42:56.214Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:56.214Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nhfs/hfsplus: serialize B-tree close against folio release\n\nB-tree nodes with a zero reference count remain in the node hash until\nfolio reclaim or tree teardown frees them.  The folio release callbacks\nremove nodes while holding hash_lock, but hfs_btree_close() walks and\nfrees the same hash without that lock.  Reclaim can therefore unhash and\nfree a node after close has loaded its pointer, causing a use-after-free\nor double-free.\n\nThe following syzkaller crashes seem to be the same UAF in\n{hfs,hfsplus}_btree_close() (or {hfs,hfsplus}_bnode_unhash()) and follow\nthe same pattern, but do not contain a reproducer to confirm.\n\nDetach each node with hfs_bnode_unhash() while holding hash_lock before\ninspecting and freeing it.  Drop the lock before hfs_bnode_free() so a\nlarge tree is not freed while holding a spinlock.  Apply the same fix to\nthe matching HFS+ implementation."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"06663fea795aad27ab24f480dacd3e8213d40925","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"41daf8439db9087a4a57dedfceefc49eb45437e5","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"586fff868a2f9efa47fef09227b38d1fe4b6123d","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"170fada4a1781effac912d7e3e368b91745a841a","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"b57bb1f1df39aa175cbfc68b86a4d00249ac1390","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"dce0e0248205bb3dc5b4c6793cd2ecb453152259","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/bc2955a1f757a53206d4df7fdfcebc9c9d3c831f"},{"url":"https://git.kernel.org/stable/c/06663fea795aad27ab24f480dacd3e8213d40925"},{"url":"https://git.kernel.org/stable/c/41daf8439db9087a4a57dedfceefc49eb45437e5"},{"url":"https://git.kernel.org/stable/c/25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05"},{"url":"https://git.kernel.org/stable/c/586fff868a2f9efa47fef09227b38d1fe4b6123d"},{"url":"https://git.kernel.org/stable/c/170fada4a1781effac912d7e3e368b91745a841a"},{"url":"https://git.kernel.org/stable/c/b57bb1f1df39aa175cbfc68b86a4d00249ac1390"},{"url":"https://git.kernel.org/stable/c/dce0e0248205bb3dc5b4c6793cd2ecb453152259"}],"title":"hfs/hfsplus: serialize B-tree close against folio release","x_generator":{"engine":"bippy-1.2.0"}}}}