Skip to content
Heist/ feed
Back to feed
UnratedFix available

hfs: Replace BUG_ON with error handling for CNID count checks

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
6.18.57, 6.19.6
CVEs
CVE-2026-43228
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:34 UTC · Revision 1

Source evidence

hfs: Replace BUG_ON with error handling for CNID count checks

core-osv · Original source

Published 6 May 2026, 11:28 UTC

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

osv:CVE-2026-43228

Kernel

Fixed versions: 6.18.57, 6.19.6

Complete source record
{
  "id": "4d20e1b586f26c77d27450aa7e883424cdd4daccb865bd060c3e652c428a23a4",
  "url": "https://osv.dev/vulnerability/CVE-2026-43228",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "hfs: Replace BUG_ON with error handling for CNID count checks",
    "summary": "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",
    "evidence": "osv:CVE-2026-43228",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.18.57",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.19.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-43228",
      "aliases": [
        "CVE-2026-43228"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a06ec283e125e334155fe13005c76c9f484ce759"
                },
                {
                  "fixed": "559f856b109c45844816a1693e259f93d3556c61"
                },
                {
                  "fixed": "b6536c1ced315fa645576d3a39c6e07f2a472962"
                },
                {
                  "fixed": "b226804532a875c10276168dc55ce752944096bd"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43228.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.18.0"
                },
                {
                  "fixed": "6.18.57"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "6.19.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43228.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.018457410Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/559f856b109c45844816a1693e259f93d3556c61",
        "https://git.kernel.org/stable/c/b226804532a875c10276168dc55ce752944096bd",
        "https://git.kernel.org/stable/c/b6536c1ced315fa645576d3a39c6e07f2a472962",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43228.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-43228",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43228.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-43228",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 504064,
  "published_at": "2026-05-06T11:28:26.292+00:00"
}