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 53D4178C7A for ; Wed, 22 May 2024 06:20:48 +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=1716358849; cv=none; b=aypILZmroTPD8U1kmDI9cuqijka0FnbdWye6djjUPYk00jZ4jfK7JBo1+sPejWBE4r8TDUfe+2D+Y6ZnoyvWKeFEjNVEf0FrL9JgWMYDCYfjZ9qMY+vfZ0hHn2Vqwe8aixDAVg4M1lQmwPAaUAJayrXeYAvoQh5zRY7PsBHBpS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716358849; c=relaxed/simple; bh=Uy9OVaFM7/z3X0MellQucSXLy1JqyaFevyW75/yM87k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CeldwsWxzU3M2p0E8eqBTvPxgVDBZVW/baKOerjavFfQhgpYdrjynoL/yBvEyBmwCGZUMpbMXopDvDQnKTbKFWqBOKpyQzfHoK9KrwHCKFUIcjeRvh1wCKYNxzH2Lr5zz8h9ANZrU+GInQmdytXaw9JeIEx9e8lml/Ey9A2s/nI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2OapIo9e; 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="2OapIo9e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CF6BC2BD11; Wed, 22 May 2024 06:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716358848; bh=Uy9OVaFM7/z3X0MellQucSXLy1JqyaFevyW75/yM87k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2OapIo9eqVOIKxsY4xyJGg43PdkQOurg4I4QmDTH/huhH8WGmPqPCqgYszdLWG4za xvj2KMvU6PQWsxN4GBeMyXxqnYw6NpHhZNNmX1dwO1w0oAGCdmcO/O9rhfkf1AJ6qK cLibr9MVKVuJh41XS152iCSGS+6Z3oCuLxgiQmZ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47437: iio: adis16475: fix deadlock on frequency set Date: Wed, 22 May 2024 08:19:40 +0200 Message-ID: <2024052238-CVE-2021-47437-10ea@gregkh> X-Mailer: git-send-email 2.45.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=1957; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Uy9OVaFM7/z3X0MellQucSXLy1JqyaFevyW75/yM87k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+fVUCLStz96aalL6KO8gX6yIS/SM9X/j5mYts5XvUH z3X/hzcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPpXskwv87/q29wxekTqpcu bi7dVNq+QcdkM8M8Pa6fRrEdK0VXHVwmFFJxaMpP5VBTAA== 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: iio: adis16475: fix deadlock on frequency set With commit 39c024b51b560 ("iio: adis16475: improve sync scale mode handling"), two deadlocks were introduced: 1) The call to 'adis_write_reg_16()' was not changed to it's unlocked version. 2) The lock was not being released on the success path of the function. This change fixes both these issues. The Linux kernel CVE team has assigned CVE-2021-47437 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 39c024b51b56 and fixed in 5.14.14 with commit 04e03b907022 Issue introduced in 5.13 with commit 39c024b51b56 and fixed in 5.15 with commit 9da1b86865ab 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-2021-47437 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/adis16475.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/04e03b907022ebd876f422f17efcc2c6cc934dc6 https://git.kernel.org/stable/c/9da1b86865ab4376408c58cd9fec332c8bdb5c73