Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9F55C3D75AB for ; Wed, 27 May 2026 12:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884548; cv=none; b=Gxjo00TLj4AzkUfoqI/kKqBO49+Rb0YAuY8mROXxGxjnGqd9JrpmpDWf6kNQiJpaKMqSTv3uqH8ee9PN7bUx2C7fOxSpHHTPNMmd5X1hB//bGbBBLAaBgR6rWP7gVAPQLtWtNdNj/A5tatxn3pnXaMTXU9ol8DBVLJdKaipBkuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884548; c=relaxed/simple; bh=4arwMfYUkxWb4VFsKwvTA5XdQwXfdQozevVJNumGJxY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PBG89J60bTWKbI7qSrM9Zxh/EvAsmCbzNDPX72mkNoxTE0W2TEsiTgoeGGsArMWRho2ffGhidmLWh7m0jlo/kSwLG5tQHSLOpSd9VnkXthKOZufePE9XsrSRP13iL6uAP3onXLhn8IqPNpvB61tdI/pn68e6kQdPFGGN9I3Fuvg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yFcGuPyI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yFcGuPyI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF6CF1F000E9; Wed, 27 May 2026 12:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884547; bh=OlfHyx/ngooiIj7g7yzIuvg7eKEVNLEvIA60yckGXuc=; h=From:To:Cc:Subject:Date:Reply-To; b=yFcGuPyIgo1YlvDFtZLsWpsPAZkTQbYbwKtV8i15JxX4MvXsB9UpHmIQN3nYD9n5H bGTg3xHexi+0kK2mi0n7XlHU6IEVpKMmOxi0xRAGjOQzUbrV9pohNbKWNaMe5zNuOJ 8s12E6Q5096Y1ucVgNIoqZdfXDhf/mteva8S+nDY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45896: mtd: intel-dg: Fix accessing regions before setting nregions Date: Wed, 27 May 2026 14:18:58 +0200 Message-ID: <2026052718-CVE-2026-45896-a4e9@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=2346; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A39jSNF6ciOffCm9Qy1w0XVFv3gXwLHc/bux+4/wOng=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD7nXvuRanZgRKKDdn/nkb+XJZqFAtvSHBxcfjzd3M BCL1AzuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk4VTDMTxSUZPh2pFjkmIX3 5rMq6u4npzdkMsyPneJ9T+rtoanifukxlbdSJCJtJ/gCAA== 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: mtd: intel-dg: Fix accessing regions before setting nregions The regions array is counted by nregions, but it's set only after accessing it: [] UBSAN: array-index-out-of-bounds in drivers/mtd/devices/mtd_intel_dg.c:750:15 [] index 0 is out of range for type ' [*]' Fix it by also fixing an undesired behavior: the loop silently ignores ENOMEM and continues setting the other entries. The Linux kernel CVE team has assigned CVE-2026-45896 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit ceb5ab3cb64637952657be23d347e1c79dd02212 and fixed in 6.18.14 with commit 721bd22bcf45a63ebd9bd0f478ef721b45cc5383 Issue introduced in 6.17 with commit ceb5ab3cb64637952657be23d347e1c79dd02212 and fixed in 6.19.4 with commit d58fca8513414b15387460b14a7a0a30405b9c9e Issue introduced in 6.17 with commit ceb5ab3cb64637952657be23d347e1c79dd02212 and fixed in 7.0 with commit 779c59274d03cc5c07237a2c845dfb71cff77705 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-45896 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: drivers/mtd/devices/mtd_intel_dg.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/721bd22bcf45a63ebd9bd0f478ef721b45cc5383 https://git.kernel.org/stable/c/d58fca8513414b15387460b14a7a0a30405b9c9e https://git.kernel.org/stable/c/779c59274d03cc5c07237a2c845dfb71cff77705