# CVE-2025-37968: iio: light: opt3001: fix deadlock due to concurrent flag access

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-05-20T16:47:16.051Z
- Modified: 2026-06-17T09:15:47.777Z
- Weaknesses: CWE-667
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before a9c56ccb7cddfca754291fb24b108a5350a5fbe9; from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before 957e8be112636d9bc692917286e81e54bd87decc; from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before 1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5; from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before 748ebd8e61d0bc182c331b8df3887af7285c8a8f; from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before e791bf216c9e236b34dabf514ec0ede140cca719; from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before 7ca84f6a22d50bf8b31efe9eb05f9859947266d7; from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before 2c95c8f0959d0a72575eabf2ff888f47ed6d8b77; from 94a9b7b1809f56cfaa080e70ec49b6979563a237 before f063a28002e3350088b4577c5640882bf4ea17ea; 4.3 (not affected: before 4.3; from 5.4.299 up to 5.4.*; from 5.10.243 up to 5.10.*; from 5.15.192 up to 5.15.*; from 6.1.151 up to 6.1.*; from 6.6.105 up to 6.6.*; from 6.12.30 up to 6.12.*; from 6.14.7 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 4.3 before 5.4.299; from 5.5 before 5.10.243; from 5.11 before 5.15.192; from 5.16 before 6.1.151; from 6.2 before 6.6.105; from 6.7 before 6.12.30; from 6.13 before 6.14.7; 6.15
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/a9c56ccb7cddfca754291fb24b108a5350a5fbe9> (patch)
- <https://git.kernel.org/stable/c/957e8be112636d9bc692917286e81e54bd87decc> (patch)
- <https://git.kernel.org/stable/c/1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5> (patch)
- <https://git.kernel.org/stable/c/748ebd8e61d0bc182c331b8df3887af7285c8a8f> (patch)
- <https://git.kernel.org/stable/c/e791bf216c9e236b34dabf514ec0ede140cca719> (patch)
- <https://git.kernel.org/stable/c/7ca84f6a22d50bf8b31efe9eb05f9859947266d7> (patch)
- <https://git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77> (patch)
- <https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Sources

- CVE List: [CVE-2025-37968](https://www.cve.org/CVERecord?id=CVE-2025-37968), CVE Terms of Use, modified 2026-05-12
- NVD: [CVE-2025-37968](https://nvd.nist.gov/vuln/detail/CVE-2025-37968), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37968 · Whole record: https://cve.day/CVE-2025-37968.json · Rebuilt by cve.day 2026-11-25T22:58:58.313Z
