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 1E46716EBEE for ; Fri, 12 Jul 2024 12:33:10 +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=1720787591; cv=none; b=WiU3mVb5VIHKV5PH8VGBWia085gTSqgsmEBdFumEA1e0EIL6CH5isPI/d534okR5+Ny+D9t2BBMypV2NxrBxygotRW7qUc4L3ExAVmPBqNPZ64gumEcNKa7oANw2f1ZVPg8R5I3tNJVV8kfT0T/cMrznNMmF1ZN/Gd4YxIb6HT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787591; c=relaxed/simple; bh=av0Tkny04UdT5LAwvygZx1y9QXa0rn2Poosq7wJYG5Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b0U2nFoNbYz6rmt1kQzvrskDMPdMwQAeR0aJ6QwquyVQjvFprL9Ik1K2BLb+/OTk/Jy93yG+q1UKNmmSH/DY7dz726prTmv7naxOA7zErMwimLM7KktdHW1tgGYPg9ANV+51XEKonJyeJOd3/jihw2VieZRufauzvN+hmzfuV2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qHVrqVzL; 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="qHVrqVzL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 463E8C32782; Fri, 12 Jul 2024 12:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787590; bh=av0Tkny04UdT5LAwvygZx1y9QXa0rn2Poosq7wJYG5Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qHVrqVzLouJRy27H+ecADqU+Uqc2bn5b2qPZc6TsIoAqnfcpK+AGksuKXmlpo9K3U KSGP46ahHWx+m5wzIMeqLqZHG8M8/7tWoUpJqgFx4sOzRL+R2wbBzIU55Fc2QjY/BH p5vy7+7wsKTM3TYGhHtZ+PLgtvSfSTXskzVRzNdg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40965: i2c: lpi2c: Avoid calling clk_get_rate during transfer Date: Fri, 12 Jul 2024 14:32:41 +0200 Message-ID: <2024071227-CVE-2024-40965-d9b9@gregkh> X-Mailer: git-send-email 2.45.2 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=1901; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=av0Tkny04UdT5LAwvygZx1y9QXa0rn2Poosq7wJYG5Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTlaIn3f0xn6ddq/tFjLT+ye/+m+sii/a1fb7LrBxy/ pj0+fymjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIrhPDgubDTSWxPxqfbn+a p97I2a+jqqfwmGGeuoiC1OQE9djz95dHTd78pfZBRPlfAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: i2c: lpi2c: Avoid calling clk_get_rate during transfer Instead of repeatedly calling clk_get_rate for each transfer, lock the clock rate and cache the value. A deadlock has been observed while adding tlv320aic32x4 audio codec to the system. When this clock provider adds its clock, the clk mutex is locked already, it needs to access i2c, which in return needs the mutex for clk_get_rate as well. The Linux kernel CVE team has assigned CVE-2024-40965 to this issue. Affected and fixed versions =========================== Fixed in 6.9.7 with commit 2b42e9587a7a Fixed in 6.10-rc1 with commit 4268254a3948 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-2024-40965 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-imx-lpi2c.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/2b42e9587a7a9c7b824e0feb92958f258263963e https://git.kernel.org/stable/c/4268254a39484fc11ba991ae148bacbe75d9cc0a