CVE-2025-37968
JSON

5.5medium

iio: light: opt3001: fix deadlock due to concurrent flag access

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.15NVD
debian debian_linux11.0NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: light: opt3001: corrección de interbloqueo debido al acceso simultáneo a indicadores. La función IRQ enhebrada de este controlador lee el indicador dos veces: una para bloquear un mutex y otra para desbloquearlo. Aunque el código que configura el indicador está diseñado para evitarlo, existen casos sutiles en los que el indicador podría ser verdadero en la etapa mutex_lock y falso en la etapa mutex_unlock. Esto provoca que el mutex no se desbloquee, lo que genera un interbloqueo. Para solucionarlo, haga que el código opt3001_irq() sea generalmente más robusto, leyendo el indicador en una variable y utilizando el valor de la variable en ambas etapas.

References

https://git.kernel.org/stable/c/a9c56ccb7cddfca754291fb24b108a5350a5fbe9patch
https://git.kernel.org/stable/c/957e8be112636d9bc692917286e81e54bd87deccpatch
https://git.kernel.org/stable/c/1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5patch
https://git.kernel.org/stable/c/748ebd8e61d0bc182c331b8df3887af7285c8a8fpatch
https://git.kernel.org/stable/c/e791bf216c9e236b34dabf514ec0ede140cca719patch
https://git.kernel.org/stable/c/7ca84f6a22d50bf8b31efe9eb05f9859947266d7patch
https://git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77patch
https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17eapatch
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlthird-party-advisory
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlthird-party-advisory
https://cert-portal.siemens.com/productcert/html/ssa-032379.html

Sources

SourceRecordLicence
CVE ListCVE-2025-37968 changed 2026-05-12CVE Terms of Use
NVDCVE-2025-37968 changed 2026-06-17Public domain