iio: light: opt3001: fix deadlock due to concurrent flag access
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.243, 5.15.192, 5.4.299, 6.1.151, 6.12.30, 6.14.7, 6.6.105
- CVEs
- CVE-2025-37968
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:26 UTC · Revision 1
Source evidence
iio: light: opt3001: fix deadlock due to concurrent flag access
core-osv · Original sourcePublished 20 May 2025, 16:47 UTC
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.
osv:CVE-2025-37968
Kernel
Fixed versions: 5.4.299, 5.10.243, 5.15.192, 6.1.151, 6.6.105, 6.12.30, 6.14.7
Complete source record
{
"id": "20e08ecaf69baf10f67038127f149f0afa4c2c565dd124b36f34290a7379979a",
"url": "https://osv.dev/vulnerability/CVE-2025-37968",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "iio: light: opt3001: fix deadlock due to concurrent flag access",
"summary": "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.",
"evidence": "osv:CVE-2025-37968",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.299",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.243",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.192",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.151",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.105",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.30",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-37968",
"aliases": [
"CVE-2025-37968"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "94a9b7b1809f56cfaa080e70ec49b6979563a237"
},
{
"fixed": "a9c56ccb7cddfca754291fb24b108a5350a5fbe9"
},
{
"fixed": "957e8be112636d9bc692917286e81e54bd87decc"
},
{
"fixed": "1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5"
},
{
"fixed": "748ebd8e61d0bc182c331b8df3887af7285c8a8f"
},
{
"fixed": "e791bf216c9e236b34dabf514ec0ede140cca719"
},
{
"fixed": "7ca84f6a22d50bf8b31efe9eb05f9859947266d7"
},
{
"fixed": "2c95c8f0959d0a72575eabf2ff888f47ed6d8b77"
},
{
"fixed": "f063a28002e3350088b4577c5640882bf4ea17ea"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37968.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.3.0"
},
{
"fixed": "5.4.299"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.243"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.192"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.151"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.105"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.30"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.14.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37968.json"
}
}
],
"modified": "2026-10-28T02:30:49.604712461Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-032379.html",
"https://git.kernel.org/stable/c/1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5",
"https://git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77",
"https://git.kernel.org/stable/c/748ebd8e61d0bc182c331b8df3887af7285c8a8f",
"https://git.kernel.org/stable/c/7ca84f6a22d50bf8b31efe9eb05f9859947266d7",
"https://git.kernel.org/stable/c/957e8be112636d9bc692917286e81e54bd87decc",
"https://git.kernel.org/stable/c/a9c56ccb7cddfca754291fb24b108a5350a5fbe9",
"https://git.kernel.org/stable/c/e791bf216c9e236b34dabf514ec0ede140cca719",
"https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea",
"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html",
"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37968.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-37968",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37968.json"
}
},
"related_cves": [
{
"value": "CVE-2025-37968",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 517744,
"published_at": "2025-05-20T16:47:16.051+00:00"
}