Junglewise Threat Intelligence

CVE-2025-37968: Linux Kernel deadlock in TI opt3001 light sensor driver

CVE-2025-37968 · Severity: medium · CVSS 5.5 · Published 2025-05-20

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's driver for the TI OPT3001 light sensor can cause a system deadlock. This sensor is commonly used in hardware to measure ambient light levels. An exploit could allow a local user to cause a denial-of-service, potentially freezing the system or specific hardware functions, impacting operational availability.

Technical details

A race condition exists in the threaded IRQ function of the opt3001 light sensor driver (drivers/iio/light/opt3001.c). The function reads the 'ok_to_ignore_lock' flag twice: once to determine if it should acquire a mutex and again to determine if it should release it. If the flag's state changes between these two reads due to concurrent access, the mutex may be locked but never unlocked. This results in a kernel deadlock (CWE-667). The fix involves reading the flag into a local variable once and using that consistent value for both the lock and unlock logic. Patches have been released across multiple stable kernel branches.

Affected products

  • Linux Linux Kernel 4.3 to 5.4.299, 5.5 to 5.10.243, 5.11 to 5.15.192, 5.16 to 6.1.151, 6.2 to 6.6.105, 6.7 to 6.12.30, 6.13 to 6.14.7

Timeline

  • 2025-03-21: other: Patch submitted by developer
  • 2025-05-20: disclosed: CVE published
  • 2025-05-22: patched: Patch merged into stable trees

References

Related threats