# CVE-2026-45960: hfsplus: return error when node already exists in hfs\_bnode\_create

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-27 · Modified: 2026-05-27
- Aliases: UBUNTU-CVE-2026-45960, DEBIAN-CVE-2026-45960
- Record: https://cvemate.com/vulnerability/CVE-2026-45960 · JSON: https://cvemate.com/vulnerability/CVE-2026-45960/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

hfsplus: return error when node already exists in hfs_bnode_create

When hfs_bnode_create() finds that a node is already hashed (which should
not happen in normal operation), it currently returns the existing node
without incrementing its reference count. This causes a reference count
inconsistency that leads to a kernel panic when the node is later freed
in hfs_bnode_put():

    kernel BUG at fs/hfsplus/bnode.c:676!
    BUG_ON(!atomic_read(&node->refcnt))

This scenario can occur when hfs_bmap_alloc() attempts to allocate a node
that is already in use (e.g., when node 0's bitmap bit is incorrectly
unset), or due to filesystem corruption.

Returning an existing node from a create path is not normal operation.

Fix this by returning ERR_PTR(-EEXIST) instead of the node when it's
already hashed. This properly signals the error condition to callers,
which already check for IS_ERR() return values.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.123%, percentile 2.163%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 161)

- debian linux (Debian): \< 6.1.170-1 \| \< 6.12.85-1 \| \< 6.18.14-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-186.196 \| \< 6.8.0-134.134
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119 \| \< 6.8.0-1060.63
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1060.63~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119+fips1 \| \< 6.8.0-1060.63+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.126 \| \< 6.8.0-1063.71

## References (first 20 of 37)

- <https://git.kernel.org/stable/c/1ca428769cb4737a25bd32fb4d1573cc09eeaeef>
- <https://git.kernel.org/stable/c/507a1de58c21c95ad7c44afccaf1222d1c42246b>
- <https://git.kernel.org/stable/c/986455135b95f32c1f142068e451098fc751749e>
- <https://git.kernel.org/stable/c/7b57ada854b32310f224abd61bcfec2d5790ff0a>
- <https://git.kernel.org/stable/c/51838112d9c22502333c3085ca0c0d691e7093c6>
- <https://git.kernel.org/stable/c/2e6ff6a6fc69cc17ed10c9cb6242935d52acd52d>
- <https://git.kernel.org/stable/c/2e9185a42e0e237c74435fd092b7c34537c62156>
- <https://git.kernel.org/stable/c/d8a73cc46c8462a969a7516131feb3096f4c49d3>
- <https://ubuntu.com/security/CVE-2026-45960>
- <https://www.cve.org/CVERecord?id=CVE-2026-45960>
- <https://git.kernel.org/linus/d8a73cc46c8462a969a7516131feb3096f4c49d3>
- <https://ubuntu.com/security/notices/USN-8492-1>
- <https://ubuntu.com/security/notices/USN-8492-2>
- <https://ubuntu.com/security/notices/USN-8497-1>
- <https://ubuntu.com/security/notices/USN-8498-1>
- <https://ubuntu.com/security/notices/USN-8499-1>
- <https://ubuntu.com/security/notices/USN-8492-3>
- <https://ubuntu.com/security/notices/USN-8492-4>
- <https://ubuntu.com/security/notices/USN-8492-5>
- <https://ubuntu.com/security/notices/USN-8575-1>

---

Data as of 2026-12-06T04:16:47.680Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
