{"id":"CVE-2026-139610","state":"PUBLISHED","title":"hfs/hfsplus: serialize B-tree close against folio release","description":"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.","publishedAt":"2026-11-30T13:36:20.540Z","updatedAt":"2026-11-30T13:36:20.540Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"06663fea795aad27ab24f480dacd3e8213d40925","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"41daf8439db9087a4a57dedfceefc49eb45437e5","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"586fff868a2f9efa47fef09227b38d1fe4b6123d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"170fada4a1781effac912d7e3e368b91745a841a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b57bb1f1df39aa175cbfc68b86a4d00249ac1390","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"dce0e0248205bb3dc5b4c6793cd2ecb453152259","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"]}],"references":["https://git.kernel.org/stable/c/bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","https://git.kernel.org/stable/c/06663fea795aad27ab24f480dacd3e8213d40925","https://git.kernel.org/stable/c/41daf8439db9087a4a57dedfceefc49eb45437e5","https://git.kernel.org/stable/c/25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","https://git.kernel.org/stable/c/586fff868a2f9efa47fef09227b38d1fe4b6123d","https://git.kernel.org/stable/c/170fada4a1781effac912d7e3e368b91745a841a","https://git.kernel.org/stable/c/b57bb1f1df39aa175cbfc68b86a4d00249ac1390","https://git.kernel.org/stable/c/dce0e0248205bb3dc5b4c6793cd2ecb453152259"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139610.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139610","state":"PUBLISHED","datePublished":"2026-11-30T13:36:20.540Z","dateUpdated":"2026-11-30T13:36:20.540Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.943Z"},"containers":{"cna":{"title":"hfs/hfsplus: serialize B-tree close against folio release","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"06663fea795aad27ab24f480dacd3e8213d40925","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"41daf8439db9087a4a57dedfceefc49eb45437e5","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"586fff868a2f9efa47fef09227b38d1fe4b6123d","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"170fada4a1781effac912d7e3e368b91745a841a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b57bb1f1df39aa175cbfc68b86a4d00249ac1390","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"dce0e0248205bb3dc5b4c6793cd2ecb453152259","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:20.540Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}