{"api_version":"1","generated_at":"2026-12-01T06:50:23+00:00","cve":"CVE-2026-139610","urls":{"html":"https://cve.report/CVE-2026-139610","api":"https://cve.report/api/cve/CVE-2026-139610.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139610","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139610"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:43","updated_at":"2026-12-01 06:17:46"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/b57bb1f1df39aa175cbfc68b86a4d00249ac1390","name":"https://git.kernel.org/stable/c/b57bb1f1df39aa175cbfc68b86a4d00249ac1390","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/586fff868a2f9efa47fef09227b38d1fe4b6123d","name":"https://git.kernel.org/stable/c/586fff868a2f9efa47fef09227b38d1fe4b6123d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/06663fea795aad27ab24f480dacd3e8213d40925","name":"https://git.kernel.org/stable/c/06663fea795aad27ab24f480dacd3e8213d40925","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/41daf8439db9087a4a57dedfceefc49eb45437e5","name":"https://git.kernel.org/stable/c/41daf8439db9087a4a57dedfceefc49eb45437e5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/170fada4a1781effac912d7e3e368b91745a841a","name":"https://git.kernel.org/stable/c/170fada4a1781effac912d7e3e368b91745a841a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dce0e0248205bb3dc5b4c6793cd2ecb453152259","name":"https://git.kernel.org/stable/c/dce0e0248205bb3dc5b4c6793cd2ecb453152259","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","name":"https://git.kernel.org/stable/c/25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","name":"https://git.kernel.org/stable/c/bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139610","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139610","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 bc2955a1f757a53206d4df7fdfcebc9c9d3c831f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 06663fea795aad27ab24f480dacd3e8213d40925 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 41daf8439db9087a4a57dedfceefc49eb45437e5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 586fff868a2f9efa47fef09227b38d1fe4b6123d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 170fada4a1781effac912d7e3e368b91745a841a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 b57bb1f1df39aa175cbfc68b86a4d00249ac1390 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 dce0e0248205bb3dc5b4c6793cd2ecb453152259 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bc2955a1f757a53206d4df7fdfcebc9c9d3c831f","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"06663fea795aad27ab24f480dacd3e8213d40925","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"41daf8439db9087a4a57dedfceefc49eb45437e5","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"25cc86f0dfaf7d5366fe2dc5aa4302f5d0b87a05","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"586fff868a2f9efa47fef09227b38d1fe4b6123d","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"170fada4a1781effac912d7e3e368b91745a841a","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"b57bb1f1df39aa175cbfc68b86a4d00249ac1390","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"dce0e0248205bb3dc5b4c6793cd2ecb453152259","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/hfs/btree.c","fs/hfsplus/btree.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.12"},{"lessThan":"2.6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:56.214Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139610","datePublished":"2026-11-30T13:36:20.540Z","dateReserved":"2026-11-30T13:22:15.943Z","dateUpdated":"2026-12-01T05:42:56.214Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:43","lastModifiedDate":"2026-12-01 06:17:46","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139610","Ordinal":"1","Title":"hfs/hfsplus: serialize B-tree close against folio release","CVE":"CVE-2026-139610","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139610","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"hfs/hfsplus: serialize B-tree close against folio release"}]}}}