[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025072505-CVE-2025-38380-d1a9@gregkh>
Date: Fri, 25 Jul 2025 14:55:11 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38380: i2c/designware: Fix an initialization issue
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists