hfs: Replace BUG_ON with error handling for CNID count checks
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
CVE-2026-43228
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-43228
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "a06ec283e125e334155fe13005c76c9f484ce759",
"lessThan": "559f856b109c45844816a1693e259f93d3556c61",
"versionType": "git"
},
{
"status": "affected",
"version": "a06ec283e125e334155fe13005c76c9f484ce759",
"lessThan": "b6536c1ced315fa645576d3a39c6e07f2a472962",
"versionType": "git"
},
{
"status": "affected",
"version": "a06ec283e125e334155fe13005c76c9f484ce759",
"lessThan": "b226804532a875c10276168dc55ce752944096bd",
"versionType": "git"
}
],
"programFiles": [
"fs/hfs/dir.c",
"fs/hfs/hfs_fs.h",
"fs/hfs/inode.c",
"fs/hfs/mdb.c",
"fs/hfs/super.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.18"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.18",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "6.19.6",
"versionType": "semver",
"lessThanOrEqual": "6.19.*"
},
{
"status": "unaffected",
"version": "7.0",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/hfs/dir.c",
"fs/hfs/hfs_fs.h",
"fs/hfs/inode.c",
"fs/hfs/mdb.c",
"fs/hfs/super.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-43228
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #28602 · Revision 1
- Added to Heist Feed
- Publisher date