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

Summary

CVECVE-2025-37968
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-05-20 17:15:47 UTC
Updated2026-05-12 13:16:41 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-667

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 a9c56ccb7cddfca754291fb24b108a5350a5fbe9 git Not specified
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 957e8be112636d9bc692917286e81e54bd87decc git Not specified
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5 git Not specified
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 748ebd8e61d0bc182c331b8df3887af7285c8a8f git Not specified
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 e791bf216c9e236b34dabf514ec0ede140cca719 git Not specified
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 7ca84f6a22d50bf8b31efe9eb05f9859947266d7 git Not specified
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 2c95c8f0959d0a72575eabf2ff888f47ed6d8b77 git Not specified
CNA Linux Linux affected 94a9b7b1809f56cfaa080e70ec49b6979563a237 f063a28002e3350088b4577c5640882bf4ea17ea git Not specified
CNA Linux Linux affected 4.3 Not specified
CNA Linux Linux unaffected 4.3 semver Not specified
CNA Linux Linux unaffected 5.4.299 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.243 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.192 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.151 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.105 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.30 6.12.* semver Not specified
CNA Linux Linux unaffected 6.14.7 6.14.* semver Not specified
CNA Linux Linux unaffected 6.15 * original_commit_for_fix Not specified
ADP Siemens SIMATIC CN 4100 affected V5.0 custom Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2025/10/msg00008.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Third Party Advisory
git.kernel.org/stable/c/957e8be112636d9bc692917286e81e54bd87decc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/748ebd8e61d0bc182c331b8df3887af7285c8a8f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
cert-portal.siemens.com/productcert/html/ssa-032379.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/e791bf216c9e236b34dabf514ec0ede140cca719 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/a9c56ccb7cddfca754291fb24b108a5350a5fbe9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/7ca84f6a22d50bf8b31efe9eb05f9859947266d7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2025/10/msg00007.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report