CVE-2025-37968

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

MEDIUM
5.5
CVSS Score
Published: May 20, 2025 at 04:47 PM UTC
Updated: June 17, 2026 at 09:15 AM UTC
3 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC CN 4100

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.3 ≤ v < 5.10.2434.3 ≤ v < 5.15.1924.3 ≤ v < 5.4.2994.3 ≤ v < 6.1.1514.3 ≤ v < 6.12.304.3 ≤ v < 6.14.74.3 ≤ v < 6.154.3 ≤ v < 6.6.1055.11 ≤ v < 5.15.1925.16 ≤ v < 6.1.1515.5 ≤ v < 5.10.2436.13 ≤ v < 6.14.76.2 ≤ v < 6.6.1056.7 ≤ v < 6.12.304.36.15 rc16.15 rc26.15 rc36.15 rc46.15 rc594a9b7b1809f56cfaa080e70ec49b6979563a237
Vendor states this is fixed in 1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5 (fixed)
Vendor states this is fixed in 2c95c8f0959d0a72575eabf2ff888f47ed6d8b77 (fixed)
Vendor states this is fixed in 748ebd8e61d0bc182c331b8df3887af7285c8a8f (fixed)
Vendor states this is fixed in 7ca84f6a22d50bf8b31efe9eb05f9859947266d7 (fixed)
Vendor states this is fixed in 957e8be112636d9bc692917286e81e54bd87decc (fixed)
Vendor states this is fixed in a9c56ccb7cddfca754291fb24b108a5350a5fbe9 (fixed)
Vendor states this is fixed in e791bf216c9e236b34dabf514ec0ede140cca719 (fixed)
Vendor states this is fixed in f063a28002e3350088b4577c5640882bf4ea17ea (fixed)
Vendor states this is fixed in 4.3 (unaffected)
Vendor states this is fixed in 5.10.243 (unaffected)
Vendor states this is fixed in 5.15.192 (unaffected)
Vendor states this is fixed in 5.4.299 (unaffected)
Vendor states this is fixed in 6.1.151 (unaffected)
Vendor states this is fixed in 6.12.30 (unaffected)
Vendor states this is fixed in 6.14.7 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.105 (unaffected)
v < V5.0
Affected range stops below V5.0, so it looks safe — our inference, not a vendor statement

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/748ebd8e61d0bc182c331b8df3887af7285c8a8f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7ca84f6a22d50bf8b31efe9eb05f9859947266d7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/957e8be112636d9bc692917286e81e54bd87decc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a9c56ccb7cddfca754291fb24b108a5350a5fbe9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e791bf216c9e236b34dabf514ec0ede140cca719
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card