| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-37968: iio: light: opt3001: fix deadlock due to concurrent flag access |
| |
| 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.12.30 with commit 7ca84f6a22d50bf8b31efe9eb05f9859947266d7 |
| 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 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/7ca84f6a22d50bf8b31efe9eb05f9859947266d7 |
| https://git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77 |
| https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea |