{"id":"CVE-2026-43228","state":"PUBLISHED","title":"hfs: Replace BUG_ON with error handling for CNID count checks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhfs: Replace BUG_ON with error handling for CNID count checks\n\nIn a06ec283e125 next_id, folder_count, and file_count in the super block\ninfo were expanded to 64 bits, and BUG_ONs were added to detect\noverflow. This triggered an error reported by syzbot: if the MDB is\ncorrupted, the BUG_ON is triggered. This patch replaces this mechanism\nwith proper error handling and resolves the syzbot reported bug.\n\nSinged-off-by: Jori Koolstra <jkoolstra@xs4all.nl>","publishedAt":"2026-05-06T11:28:26.292Z","updatedAt":"2026-10-15T10:07:13.116Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a06ec283e125e334155fe13005c76c9f484ce759","status":"affected","lessThan":"559f856b109c45844816a1693e259f93d3556c61","versionType":"git"},{"version":"a06ec283e125e334155fe13005c76c9f484ce759","status":"affected","lessThan":"b6536c1ced315fa645576d3a39c6e07f2a472962","versionType":"git"},{"version":"a06ec283e125e334155fe13005c76c9f484ce759","status":"affected","lessThan":"b226804532a875c10276168dc55ce752944096bd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/dir.c","fs/hfs/hfs_fs.h","fs/hfs/inode.c","fs/hfs/mdb.c","fs/hfs/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/dir.c","fs/hfs/hfs_fs.h","fs/hfs/inode.c","fs/hfs/mdb.c","fs/hfs/super.c"]}],"references":["https://git.kernel.org/stable/c/559f856b109c45844816a1693e259f93d3556c61","https://git.kernel.org/stable/c/b6536c1ced315fa645576d3a39c6e07f2a472962","https://git.kernel.org/stable/c/b226804532a875c10276168dc55ce752944096bd"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/43xxx/CVE-2026-43228.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-43228","state":"PUBLISHED","datePublished":"2026-05-06T11:28:26.292Z","dateUpdated":"2026-10-15T10:07:13.116Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-01T14:12:55.994Z"},"containers":{"cna":{"title":"hfs: Replace BUG_ON with error handling for CNID count checks","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nhfs: Replace BUG_ON with error handling for CNID count checks\n\nIn a06ec283e125 next_id, folder_count, and file_count in the super block\ninfo were expanded to 64 bits, and BUG_ONs were added to detect\noverflow. This triggered an error reported by syzbot: if the MDB is\ncorrupted, the BUG_ON is triggered. This patch replaces this mechanism\nwith proper error handling and resolves the syzbot reported bug.\n\nSinged-off-by: Jori Koolstra <jkoolstra@xs4all.nl>"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a06ec283e125e334155fe13005c76c9f484ce759","status":"affected","lessThan":"559f856b109c45844816a1693e259f93d3556c61","versionType":"git"},{"version":"a06ec283e125e334155fe13005c76c9f484ce759","status":"affected","lessThan":"b6536c1ced315fa645576d3a39c6e07f2a472962","versionType":"git"},{"version":"a06ec283e125e334155fe13005c76c9f484ce759","status":"affected","lessThan":"b226804532a875c10276168dc55ce752944096bd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/dir.c","fs/hfs/hfs_fs.h","fs/hfs/inode.c","fs/hfs/mdb.c","fs/hfs/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/dir.c","fs/hfs/hfs_fs.h","fs/hfs/inode.c","fs/hfs/mdb.c","fs/hfs/super.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/559f856b109c45844816a1693e259f93d3556c61"},{"url":"https://git.kernel.org/stable/c/b6536c1ced315fa645576d3a39c6e07f2a472962"},{"url":"https://git.kernel.org/stable/c/b226804532a875c10276168dc55ce752944096bd"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-15T10:07:13.116Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.19.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}