Description
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.
Published: 2026-05-27
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel’s HFS+ file‑system implementation, the hfs_bnode_create function can erroneously return an existing node without increasing its reference count. This flaw, classified as CWE-911 and an additional unspecified category (NVD-CWE-Other), manifests when hfs_bmap_alloc tries to create a node that already exists in the hash table. When that node is later released, the kernel detects that its reference counter has dropped to zero and triggers a BUG, causing a kernel panic. This loss of availability is a direct result of the improper error handling path.

Affected Systems

All Linux kernel versions that include the HFS+ driver and are capable of mounting or manipulating HFS+ volumes are affected. The vulnerability manifests when hfs_bmap_alloc attempts to create a node that is already present in the hash table—an error condition that can arise from filesystem corruption or a faulty allocation request. Systems using older kernel releases that have not incorporated the fix are susceptible.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity. The EPSS score of <1% reflects a very low but non‑zero predicted exploitation likelihood, and the vulnerability is not listed in CISA’s KEV catalog. An attacker would need either local access to a running system with an HFS+ mount or the capability to supply a corrupted HFS+ volume to trigger the fault. While no widespread exploitation has been observed, the kernel panic can be leveraged for denial‑of‑service attacks in environments where HFS+ is in use.

Generated by OpenCVE AI on June 17, 2026 at 20:33 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel version that includes the patch replacing hfs_bnode_create() with an ERR_PTR(-EEXIST) return value.
  • If an immediate kernel upgrade is not possible, unmount all HFS+ partitions and unload the hfsplus module (e.g., ‘sudo rmmod hfsplus’) to stop further access to the vulnerable code path.
  • Run a consistency check on all HFS+ filesystems (fsck.hfsplus), correcting any corruption before mounting to avoid accidental entry into the error path.

Generated by OpenCVE AI on June 17, 2026 at 20:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4606-1 linux security update
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
History

Tue, 16 Jun 2026 23:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-476

Tue, 16 Jun 2026 06:30:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-Other
CPEs cpe:2.3:o:linux:linux_kernel:2.6.16:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.16:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.16:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.16:rc6:*:*:*:*:*:*

Thu, 28 May 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Wed, 27 May 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-476

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description 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.
Title hfsplus: return error when node already exists in hfs_bnode_create
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:18:16.851Z

Reserved: 2026-05-13T15:03:33.089Z

Link: CVE-2026-45960

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-27T14:17:12.650

Modified: 2026-06-17T10:52:48.117

Link: CVE-2026-45960

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-45960 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-17T20:45:03Z

Weaknesses