{"id":"CVE-2026-139610","aliases":["CVE-2026-139610"],"related":[],"kind":"vulnerability","state":"published","title":"hfs/hfsplus: serialize B-tree close against folio release","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:36:20.540Z","modified":"2026-12-01T06:17:46.603Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"06663fea795aad27ab24f480dacd3e8213d40925","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"41daf8439db9087a4a57dedfceefc49eb45437e5","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"586fff868a2f9efa47fef09227b38d1fe4b6123d","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"170fada4a1781effac912d7e3e368b91745a841a","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"b57bb1f1df39aa175cbfc68b86a4d00249ac1390","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"dce0e0248205bb3dc5b4c6793cd2ecb453152259","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06663fea795aad27ab24f480dacd3e8213d40925","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41daf8439db9087a4a57dedfceefc49eb45437e5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/586fff868a2f9efa47fef09227b38d1fe4b6123d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/170fada4a1781effac912d7e3e368b91745a841a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b57bb1f1df39aa175cbfc68b86a4d00249ac1390","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dce0e0248205bb3dc5b4c6793cd2ecb453152259","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139610","url":"https://www.cve.org/CVERecord?id=CVE-2026-139610","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:56.214Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139610","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139610","licence":"Public domain","modified":"2026-12-01T06:17:46.603Z"}],"updatedAt":"2026-12-01T06:32:24.161Z","epss":{"score":0.00141,"percentile":0.0368,"date":"2026-12-01T12:00:22.000Z"}}