CVE-2026-43228

hfs: Replace BUG_ON with error handling for CNID count checks

Published May 6, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

hfs: Replace BUG_ON with error handling for CNID count checks

In a06ec283e125 next_id, folder_count, and file_count in the super block
info were expanded to 64 bits, and BUG_ONs were added to detect
overflow. This triggered an error reported by syzbot: if the MDB is
corrupted, the BUG_ON is triggered. This patch replaces this mechanism
with proper error handling and resolves the syzbot reported bug.

Singed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>

Analysis

AI-generated

Technical impact

The Linux kernel’s HFS filesystem contains an integer overflow flaw that triggers when the master directory block of a mounted filesystem becomes corrupted. The overflow occurs in 64‑bit counters for file and folder counts, and the old implementation used a BUG_ON to terminate the kernel when the counters exceeded their limits. The new patch replaces that BUG_ON with graceful error handling, preventing the crash. The weakness is an integer overflow, classified as CWE‑617.

Affected Systems

Any Linux kernel build that includes HFS support but has not incorporated the two referenced commits is susceptible. No explicit version numbers are given in the CVE, so all kernels implementing HFS prior to the patches are considered vulnerable. The vulnerability applies to the general Linux kernel family across vendors.

Risk and Exploitability

The CVSS score for this issue is 5.5 and the EPSS score is less than 1%, indicating a relatively low likelihood of exploitation. It is not featured in the CISA KEV catalog. Attackers could attempt to trigger the bug by a corrupted HFS image; the pathway to exploitation is inferred from the description of the BUG_ON being triggered by an MDB corruption. Depending on the environment, this could be done with local access to mount a malformed filesystem or remotely if the host accepts external disk images. The resulting kernel panic leads to a denial‑of‑service condition that renders the affected machine unusable until reboot.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a revision that includes the patches replacing the BUG_ON checks for the HFS filesystem.
  • If a kernel upgrade cannot be applied immediately, remove or disable HFS support from the kernel configuration or unload the module so the vulnerable code path cannot run.
  • Avoid mounting HFS images that have not been verified to be intact or trusted, and eliminate the use of untrusted disk images on the system.

Generated by OpenCVE AI on May 8, 2026 at 23:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics 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'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: hfs: Replace BUG_ON with error handling for CNID count checks In a06ec283e125 next_id, folder_count, and file_count in the super block info were expanded to 64 bits, and BUG_ONs were added to detect overflow. This triggered an error reported by syzbot: if the MDB is corrupted, the BUG_ON is triggered. This patch replaces this mechanism with proper error handling and resolves the syzbot reported bug. Singed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
Title hfs: Replace BUG_ON with error handling for CNID count checks
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 15, 2026, 10:07 AM
Reserved
May 1, 2026, 2:12 PM
Status
Modified
Published
May 6, 2026, 12:16 PM
Modified
Nov 11, 2026, 8:10 PM
Severity
Public date
May 6, 2026, 12:00 AM