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 D20EA22083 for ; Tue, 20 May 2025 16:47:54 +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=1747759674; cv=none; b=EqqH83CMl55aAkL6n9trkB7rj+naxwalho91SVzNRL7i/8ppxmJ/4TusII065J/aN+kajy2xd6j/fMCeSXHGOQG++hSd9+42ADy7SHeXKmUIPm2QEVkCNC/+LuTIqiTa+eeJk0zE+OLe3JB8A+bpnyCd5PJ15IfYP14M6R2IRLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747759674; c=relaxed/simple; bh=NuJIHTtI03ZKP4y5K5EdhncuVtnLT/Q3mlQlVHHs3Bg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UNQ8s9XsvTRUwhmeO8vyEQRfYsC40gAgZidWFzE7Z+1LQzkUSzFgd2wP+Vo42GnWVYXzr/gjfeDiejGD/Vj0k0wjgmZezkQUarJQC3EwADSlLYSGcf1BSd9tvvXTDMa8U3AwfjCWrxdtlZAJtTl8Aj3VHEHtbmjg0zRaZ3HTl3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iEslUk8f; 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="iEslUk8f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 032C7C4CEE9; Tue, 20 May 2025 16:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747759674; bh=NuJIHTtI03ZKP4y5K5EdhncuVtnLT/Q3mlQlVHHs3Bg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iEslUk8fBMz0IHDia0jE8f6oW0ubB63WJYVoN6ORYzuHwp1+7wot8zSlnIZzy1dA2 t/LSDsHQYb0Zh9NJlk+Qb7HdviVOLNmfkpTrG/t7Y74rO2RCc8BIECZDmmyUVksVtU tBd2LKsb2V4I2VXIPW3kiD/5EtOINFb+Lywk8NAM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37970: iio: imu: st_lsm6dsx: fix possible lockup in st_lsm6dsx_read_fifo Date: Tue, 20 May 2025 18:45:49 +0200 Message-ID: <2025052045-CVE-2025-37970-f6d0@gregkh> X-Mailer: git-send-email 2.49.0 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=2848; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BQFAWw5Ka7OgkmH3cFbbmIzlldER5l5flSbrfvtMqks=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6G3cmmC4TuTRxyxzJRNZe/+pHc/cn+Mm0lN/rNZ9Wv YOTkeNlRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkpQ7Dgmah5Zlu6cbnzzaI 2z02b6z2c5mZyzC/av+jSXs/tK3wrPfvlJTmMyh9Me8RAA== 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: iio: imu: st_lsm6dsx: fix possible lockup in st_lsm6dsx_read_fifo Prevent st_lsm6dsx_read_fifo from falling in an infinite loop in case pattern_len is equal to zero and the device FIFO is not empty. The Linux kernel CVE team has assigned CVE-2025-37970 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 290a6ce11d938be52634b3ce1bbc6b78be4d23c1 and fixed in 5.15.183 with commit f3cf233c946531a92fe651ff2bd15ebbe60630a7 Issue introduced in 4.11 with commit 290a6ce11d938be52634b3ce1bbc6b78be4d23c1 and fixed in 6.1.139 with commit 6c4a5000618a8c44200d455c92e2f2a4db264717 Issue introduced in 4.11 with commit 290a6ce11d938be52634b3ce1bbc6b78be4d23c1 and fixed in 6.6.91 with commit da33c4167b9cc1266a97215114cb74679f881d0c Issue introduced in 4.11 with commit 290a6ce11d938be52634b3ce1bbc6b78be4d23c1 and fixed in 6.12.29 with commit a1cad8a3bca41dead9980615d35efc7bff1fd534 Issue introduced in 4.11 with commit 290a6ce11d938be52634b3ce1bbc6b78be4d23c1 and fixed in 6.14.7 with commit 3bb6c02d6fe8347ce1785016d135ff539c20043c Issue introduced in 4.11 with commit 290a6ce11d938be52634b3ce1bbc6b78be4d23c1 and fixed in 6.15-rc6 with commit 159ca7f18129834b6f4c7eae67de48e96c752fc9 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-37970 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/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.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/f3cf233c946531a92fe651ff2bd15ebbe60630a7 https://git.kernel.org/stable/c/6c4a5000618a8c44200d455c92e2f2a4db264717 https://git.kernel.org/stable/c/da33c4167b9cc1266a97215114cb74679f881d0c https://git.kernel.org/stable/c/a1cad8a3bca41dead9980615d35efc7bff1fd534 https://git.kernel.org/stable/c/3bb6c02d6fe8347ce1785016d135ff539c20043c https://git.kernel.org/stable/c/159ca7f18129834b6f4c7eae67de48e96c752fc9