# CVE-2026-43228: hfs: Replace BUG_ON with error handling for CNID count checks

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-06T11:28:26.292Z
- Modified: 2026-11-11T20:10:00.273Z
- Weaknesses: CWE-617
- Assigned by: Linux

## 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>

(As written by CVE List.)

## Affected

- Linux Linux: from a06ec283e125e334155fe13005c76c9f484ce759 before 559f856b109c45844816a1693e259f93d3556c61; from a06ec283e125e334155fe13005c76c9f484ce759 before b6536c1ced315fa645576d3a39c6e07f2a472962; from a06ec283e125e334155fe13005c76c9f484ce759 before b226804532a875c10276168dc55ce752944096bd; 6.18 (not affected: before 6.18; from 6.18.57 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.18 before 6.19.6

## References

- <https://git.kernel.org/stable/c/559f856b109c45844816a1693e259f93d3556c61>
- <https://git.kernel.org/stable/c/b6536c1ced315fa645576d3a39c6e07f2a472962> (patch)
- <https://git.kernel.org/stable/c/b226804532a875c10276168dc55ce752944096bd> (patch)

## Sources

- CVE List: [CVE-2026-43228](https://www.cve.org/CVERecord?id=CVE-2026-43228), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-43228](https://nvd.nist.gov/vuln/detail/CVE-2026-43228), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-43228 · Whole record: https://cve.day/CVE-2026-43228.json · Rebuilt by cve.day 2026-11-25T22:59:20.739Z
