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 E5A8E230269 for ; Fri, 22 Aug 2025 16:04:12 +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=1755878653; cv=none; b=BfXZ9ff8iBoiSw2x6+E4eInPXvntPVWY/kUhh0php7DkWUql8yanjRH8PE8f6NLUIZVKNdlqmbHjVNdSceafndG+MdeDfrh17b7mbeZSYtgAnrB+DMfqruR5GMgZMstZzr94+OI30dJbRDx0QA+Mq0UanuY7kWPYB1+EiKh2Bxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878653; c=relaxed/simple; bh=bQWIu5Luz1aIGbmyJhPnyIBw4ixeVUJAEB621ZJUd8s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Kacsf9cPDa+xGj1XHG3M7uVZqcvHALdHGhiKs3+17+f/TYG+8t1mtHwD7041mSA8tdoecxLQbS9q3fQoEJjNQ4lFGup7Powb344r+3fvcB1bqsDoD64lJqgZibVNSpagTcTq9/d+Ui46BFsU4RF3rUg+4JlcTLcznxbW7ah4cEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FgbMCK8U; 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="FgbMCK8U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 123D0C4CEED; Fri, 22 Aug 2025 16:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878652; bh=bQWIu5Luz1aIGbmyJhPnyIBw4ixeVUJAEB621ZJUd8s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FgbMCK8UEoUM1fcSl1LAdoabVmRzgeJqDihmPpT/hhwQ/qeNks9n6GuBU5p1HEiHv fU0ihmk6v1APsO1ko+G58z2bWWgfQl5A6ZEcRoceis8oKmrAeZFh2Zjo5bz9LnSU6s Bo0TBgKu0E4GGaMSS6oPnwFpuk1gZyxH/PlOUciA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38671: i2c: qup: jump out of the loop in case of timeout Date: Fri, 22 Aug 2025 18:03:08 +0200 Message-ID: <2025082201-CVE-2025-38671-80a3@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=2887; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qPb5mULBln+tjkX1lunq2rVlcSJajEL++VElRpGzPhk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpmx1v6UWu/X585aue4JcQe9OVTIYxB4/Pn3flp6am UpZ8+6u64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ7NBimO/5dfusnCu1ao2u h7U1ZadwOi/Jl2BYMMnuyxyhv22Tplb8m9XpOOHCtiivNQA= 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: qup: jump out of the loop in case of timeout Original logic only sets the return value but doesn't jump out of the loop if the bus is kept active by a client. This is not expected. A malicious or buggy i2c client can hang the kernel in this case and should be avoided. This is observed during a long time test with a PCA953x GPIO extender. Fix it by changing the logic to not only sets the return value, but also jumps out of the loop and return to the caller with -ETIMEDOUT. The Linux kernel CVE team has assigned CVE-2025-38671 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit fbfab1ab065879370541caf0e514987368eb41b2 and fixed in 6.1.148 with commit c523bfba46c4b4d7676fb050909533a766698ecd Issue introduced in 4.17 with commit fbfab1ab065879370541caf0e514987368eb41b2 and fixed in 6.6.101 with commit 0d33913fce67a93c1eb83396c3c9d6b411dcab33 Issue introduced in 4.17 with commit fbfab1ab065879370541caf0e514987368eb41b2 and fixed in 6.12.41 with commit 42c4471b30fa203249f476dd42321cd7efb7f6a8 Issue introduced in 4.17 with commit fbfab1ab065879370541caf0e514987368eb41b2 and fixed in 6.15.9 with commit 89459f168b78e5c801dc8b7ad037b62898bc4f57 Issue introduced in 4.17 with commit fbfab1ab065879370541caf0e514987368eb41b2 and fixed in 6.16 with commit a7982a14b3012527a9583d12525cd0dc9f8d8934 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-38671 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-qup.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/c523bfba46c4b4d7676fb050909533a766698ecd https://git.kernel.org/stable/c/0d33913fce67a93c1eb83396c3c9d6b411dcab33 https://git.kernel.org/stable/c/42c4471b30fa203249f476dd42321cd7efb7f6a8 https://git.kernel.org/stable/c/89459f168b78e5c801dc8b7ad037b62898bc4f57 https://git.kernel.org/stable/c/a7982a14b3012527a9583d12525cd0dc9f8d8934