{"id":"CVE-2026-45960","aliases":["CVE-2026-45960"],"related":[],"kind":"vulnerability","state":"published","title":"hfsplus: return error when node already exists in hfs_bnode_create","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhfsplus: return error when node already exists in hfs_bnode_create\n\nWhen hfs_bnode_create() finds that a node is already hashed (which should\nnot happen in normal operation), it currently returns the existing node\nwithout incrementing its reference count. This causes a reference count\ninconsistency that leads to a kernel panic when the node is later freed\nin hfs_bnode_put():\n\n    kernel BUG at fs/hfsplus/bnode.c:676!\n    BUG_ON(!atomic_read(&node->refcnt))\n\nThis scenario can occur when hfs_bmap_alloc() attempts to allocate a node\nthat is already in use (e.g., when node 0's bitmap bit is incorrectly\nunset), or due to filesystem corruption.\n\nReturning an existing node from a create path is not normal operation.\n\nFix this by returning ERR_PTR(-EEXIST) instead of the node when it's\nalready hashed. This properly signals the error condition to callers,\nwhich already check for IS_ERR() return values.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhfsplus: return error when node already exists in hfs_bnode_create\n\nWhen hfs_bnode_create() finds that a node is already hashed (which should\nnot happen in normal operation), it currently returns the existing node\nwithout incrementing its reference count. This causes a reference count\ninconsistency that leads to a kernel panic when the node is later freed\nin hfs_bnode_put():\n\n    kernel BUG at fs/hfsplus/bnode.c:676!\n    BUG_ON(!atomic_read(&node->refcnt))\n\nThis scenario can occur when hfs_bmap_alloc() attempts to allocate a node\nthat is already in use (e.g., when node 0's bitmap bit is incorrectly\nunset), or due to filesystem corruption.\n\nReturning an existing node from a create path is not normal operation.\n\nFix this by returning ERR_PTR(-EEXIST) instead of the node when it's\nalready hashed. This properly signals the error condition to callers,\nwhich already check for IS_ERR() return values.","source":"cvelist"}],"published":"2026-05-27T12:18:16.851Z","modified":"2026-06-17T10:52:48.117Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"1ca428769cb4737a25bd32fb4d1573cc09eeaeef","status":"affected"},{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"507a1de58c21c95ad7c44afccaf1222d1c42246b","status":"affected"},{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"986455135b95f32c1f142068e451098fc751749e","status":"affected"},{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"7b57ada854b32310f224abd61bcfec2d5790ff0a","status":"affected"},{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"51838112d9c22502333c3085ca0c0d691e7093c6","status":"affected"},{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"2e6ff6a6fc69cc17ed10c9cb6242935d52acd52d","status":"affected"},{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"2e9185a42e0e237c74435fd092b7c34537c62156","status":"affected"},{"type":"git","introduced":"634725a92938b0f282b17cec0b007dca77adebd2","fixed":"d8a73cc46c8462a969a7516131feb3096f4c49d3","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.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.16","status":"unaffected"},{"type":"semver","introduced":"5.10.252","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.202","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.165","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.128","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.14","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.4","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.16.1","fixed":"5.10.252"},{"status":"affected","introduced":"5.11","fixed":"5.15.202"},{"status":"affected","introduced":"5.16","fixed":"6.1.165"},{"status":"affected","introduced":"6.2","fixed":"6.6.128"},{"status":"affected","introduced":"6.7","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.14"},{"status":"affected","introduced":"6.19","fixed":"6.19.4"},{"status":"affected","version":"2.6.16"},{"status":"affected","version":"2.6.16"},{"status":"affected","version":"2.6.16"},{"status":"affected","version":"2.6.16"},{"status":"affected","version":"2.6.16"},{"status":"affected","version":"2.6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1ca428769cb4737a25bd32fb4d1573cc09eeaeef","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/507a1de58c21c95ad7c44afccaf1222d1c42246b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/986455135b95f32c1f142068e451098fc751749e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b57ada854b32310f224abd61bcfec2d5790ff0a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51838112d9c22502333c3085ca0c0d691e7093c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e6ff6a6fc69cc17ed10c9cb6242935d52acd52d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e9185a42e0e237c74435fd092b7c34537c62156","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8a73cc46c8462a969a7516131feb3096f4c49d3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45960","url":"https://www.cve.org/CVERecord?id=CVE-2026-45960","licence":"CVE Terms of Use","modified":"2026-05-27T12:18:16.851Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45960","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45960","licence":"Public domain","modified":"2026-06-17T10:52:48.117Z"}],"updatedAt":"2026-11-25T22:59:22.522Z","epss":{"score":0.00123,"percentile":0.02208,"date":"2026-12-01T12:00:22.000Z"}}