Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B116A439008 for ; Wed, 6 May 2026 11:34:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067287; cv=none; b=u0To3Px6gzk2cDnSLVbh8covkL41o9nyaGAgvrVMjZZ+q50E4xcpx7I2I9BD8dmaWIM9+L0zK88RGQTNiNmDPDQMRdes1p5CVRYInUM8mnv9i5YS8DGUf97s04m/x+PNNbyou7agY3IVzNALSzu2bRMCbwxeRbWSXsrIx+qQ48Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067287; c=relaxed/simple; bh=mqpZh6ABbAhTIISVSfAKqllbZAS8kNU8A4eldo+jIRk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kO4TO/F1oSlQSIZ3mad5HLs6r1zWWBWso2P3BOACB7g4GPAMiNt8GKUpYrVMnCs2mOLXXCOoWVorbhnMU0FbTlRD4NdJZw0VY0oCE54NpoQeryuDJS4YuDhy4uP4kBcDAqdcWGPssgbO7q1KDL3medWgH/a5k4JnI7PHPGemcv0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Dj7YfVpO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Dj7YfVpO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E331C2BCB8; Wed, 6 May 2026 11:34:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067287; bh=mqpZh6ABbAhTIISVSfAKqllbZAS8kNU8A4eldo+jIRk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Dj7YfVpOqn4BU8w5p9pOh2uqNx6+3H2Ok1RG7DBg2m7slN4d6Lzmwc3jYFx/D38TD Gyt/6SNbScyunJ0TgEkvCN0nQUilAYZfOQZrQIf6cvgEphRRv048vgDK2x89u3ddOy xJ7DtAzUxbqwiFDC58KBzz0j+gcJpGIZoPRmGxBQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman , Jori Koolstra Subject: CVE-2026-43228: hfs: Replace BUG_ON with error handling for CNID count checks Date: Wed, 6 May 2026 13:29:04 +0200 Message-ID: <2026050655-CVE-2026-43228-4b65@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7h8EVfxA7taWNJt08tccUsxc7UK4MC4DnmPvki2KGJ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VXczPnyjcef2h6f60numGD04qBliGOvvGH/k3sGCX 7e89l7t7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfFzFME+/s4xL8KKW+sE5 buXl/TvUbhlPXsYwP+uofn1UjPjmy9vMvj+pqtn15ce15wA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 The Linux kernel CVE team has assigned CVE-2026-43228 to this issue. Affected and fixed versions =========================== Fixed in 6.19.6 with commit b6536c1ced315fa645576d3a39c6e07f2a472962 Fixed in 7.0 with commit b226804532a875c10276168dc55ce752944096bd Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43228 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/hfs/dir.c fs/hfs/hfs_fs.h fs/hfs/inode.c fs/hfs/mdb.c fs/hfs/super.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/b6536c1ced315fa645576d3a39c6e07f2a472962 https://git.kernel.org/stable/c/b226804532a875c10276168dc55ce752944096bd