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 942D5248F46 for ; Tue, 20 May 2025 16:47:49 +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=1747759669; cv=none; b=Jm4Zpdv+getPvz8tMyLGMTmfbxrVZKAJmr7Pwti2rtkaGVTVueCiBVaLkVxHdcC4QvnM7G/wuvk1xqpBuaDc8HEWIXvEO+YqmXCdZ7q6ugXG7OGcvprLxR7SbsjcHU/G49+mh3lhwVMimo+FoUHqpPYSLMXCelnrBDFxE6pNIqU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747759669; c=relaxed/simple; bh=7X0h29oCYkPJwR0kbHqXqoWNaamXARgzLXHV7U8qol8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KUKwlyYkkQtNKJSuUV6rojZEWl54HVJZdScKCYQBVzRacRPz90CU+8CSXMNRiMP9aepopQImkxv0Tz2XEnn7ItOA+h5v8JoHEvMo1+6LR9JJ5NUYhMFEt4n4a0f02EthNKMfXoffH/0a+3pRVCKXxFLwpv3Mw8j3ohmGX4XU9WE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IzsiYjsl; 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="IzsiYjsl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEF21C4CEE9; Tue, 20 May 2025 16:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747759669; bh=7X0h29oCYkPJwR0kbHqXqoWNaamXARgzLXHV7U8qol8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IzsiYjslclHJ7+8a5/XXfZJshg3lbVxRE0paVeh/HTV7sWQUdacB0FE2vI5UHNKnN DOy4kzFmIfTHwmnctItkk99oPj68E9Q5rY8jeDofHjeItgQs9pH+Sxtx5SboZ1MDjl XloZpAc+BIBSTtWy5wFA02s6+7T+jiOArGeLNpL4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37968: iio: light: opt3001: fix deadlock due to concurrent flag access Date: Tue, 20 May 2025 18:45:47 +0200 Message-ID: <2025052045-CVE-2025-37968-5eb1@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=2285; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kaDoovEl/k4VI59xOAIKS/NHS1amCo7ucf4Qev1MVRE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6G3fGbyp9JH5R74B415KbbhJsu7Netm9LMt97U7cwN IJx7s3KjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIDz6G+SnpjrcO3Gha+aS8 9uYKnT1SU4wFDRjm57y6pJX50efiK1FD5nUT7sUnxvZsBAA= 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: light: opt3001: fix deadlock due to concurrent flag access The threaded IRQ function in this driver is reading the flag twice: once to lock a mutex and once to unlock it. Even though the code setting the flag is designed to prevent it, there are subtle cases where the flag could be true at the mutex_lock stage and false at the mutex_unlock stage. This results in the mutex not being unlocked, resulting in a deadlock. Fix it by making the opt3001_irq() code generally more robust, reading the flag into a variable and using the variable value at both stages. The Linux kernel CVE team has assigned CVE-2025-37968 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit 94a9b7b1809f56cfaa080e70ec49b6979563a237 and fixed in 6.14.7 with commit 2c95c8f0959d0a72575eabf2ff888f47ed6d8b77 Issue introduced in 4.3 with commit 94a9b7b1809f56cfaa080e70ec49b6979563a237 and fixed in 6.15-rc6 with commit f063a28002e3350088b4577c5640882bf4ea17ea 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-37968 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/light/opt3001.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/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77 https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea