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 76D0514A09C for ; Fri, 25 Jul 2025 12:55:23 +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=1753448123; cv=none; b=cz3EPiPRaLUbZvc87odyfIBayUXnxMPyLThzgiI/7o4pCV1aedm/WllBT4pHxehiDZ2v9ywf08SsEJPktBsSXLwVnrM9/waXboluMBI90Nd7t6IzXwQBNoPGjo8NH2PLAuLaRignpCBzUgoodYEKWNYPZN9Wuy0sQg1nKBo/BkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753448123; c=relaxed/simple; bh=CCzFGlU3ZPeaNgEfULNuCr29PElm8TOvw6ZkZMkCxc4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MMDzP6M8MTBaTAw5b8mD3RPAIqD6Pjk7f9U65P39BX65HTYuc0V1Hm9DEsTba4jCH8KvH2Gf0NySqVhnRFidgde/5+1HaQuK8QzScldagqOGq9Q5kPTapy62N1Wo9oASPDO2++NKBqVQJE004hx3izkfghU+MU6Mdgj6/odv3xM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G0n3WyJo; 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="G0n3WyJo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE0FEC4CEE7; Fri, 25 Jul 2025 12:55:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753448123; bh=CCzFGlU3ZPeaNgEfULNuCr29PElm8TOvw6ZkZMkCxc4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G0n3WyJoVUGmLyQPSnDUDe/7aLx32uCwjiIVfNLThgvI7E0vWppQ5Icf37zp/tBK6 E2DK+cnt2y8u562m2k9dn/DTQUvCTaz2pAxDX9+rB/TduheaTmU2398aw6WkqHspfu 12OcQ6kvd3KDko7TU8AUC2PGqmtNXR1w9so5w068= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38380: i2c/designware: Fix an initialization issue Date: Fri, 25 Jul 2025 14:55:11 +0200 Message-ID: <2025072505-CVE-2025-38380-d1a9@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2986; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gbp2JyzJHzY/6JRnBM5VoR5Kx2mnEhjt5ff8IinrMMY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNdSujvj91Kzo76Yck5/vKuc5pCrss5bufH3C4LrjR9 7LO4ZL0jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI4kaGBQtMo2603sk4nfbQ Rvz1FwObYzZLOxhms+qU1K14zpjIaWz/811KR6REfdU9AA== 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: i2c/designware: Fix an initialization issue The i2c_dw_xfer_init() function requires msgs and msg_write_idx from the dev context to be initialized. amd_i2c_dw_xfer_quirk() inits msgs and msgs_num, but not msg_write_idx. This could allow an out of bounds access (of msgs). Initialize msg_write_idx before calling i2c_dw_xfer_init(). The Linux kernel CVE team has assigned CVE-2025-38380 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 17631e8ca2d3421090e54b39d9a1402091019ba1 and fixed in 5.15.187 with commit 475f89e1f9bde45fc948589e7cde1f5d899ae412 Issue introduced in 5.13 with commit 17631e8ca2d3421090e54b39d9a1402091019ba1 and fixed in 6.1.144 with commit 5b622e672e49e50c33fc64cd06b05ce76e1de460 Issue introduced in 5.13 with commit 17631e8ca2d3421090e54b39d9a1402091019ba1 and fixed in 6.6.97 with commit 6358cb9c2a31e23b6b51bfcd7fe2b7becaf6b149 Issue introduced in 5.13 with commit 17631e8ca2d3421090e54b39d9a1402091019ba1 and fixed in 6.12.37 with commit 4c37963d67fb945a59faf53bebe048ca201e44df Issue introduced in 5.13 with commit 17631e8ca2d3421090e54b39d9a1402091019ba1 and fixed in 6.15.6 with commit 9b5b600e751fae92ba571b015eaf02c9c58e2083 Issue introduced in 5.13 with commit 17631e8ca2d3421090e54b39d9a1402091019ba1 and fixed in 6.16-rc5 with commit 3d30048958e0d43425f6d4e76565e6249fa71050 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-2025-38380 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/i2c/busses/i2c-designware-master.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/475f89e1f9bde45fc948589e7cde1f5d899ae412 https://git.kernel.org/stable/c/5b622e672e49e50c33fc64cd06b05ce76e1de460 https://git.kernel.org/stable/c/6358cb9c2a31e23b6b51bfcd7fe2b7becaf6b149 https://git.kernel.org/stable/c/4c37963d67fb945a59faf53bebe048ca201e44df https://git.kernel.org/stable/c/9b5b600e751fae92ba571b015eaf02c9c58e2083 https://git.kernel.org/stable/c/3d30048958e0d43425f6d4e76565e6249fa71050