{"id":"CVE-2025-37968","state":"PUBLISHED","title":"iio: light: opt3001: fix deadlock due to concurrent flag access","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: light: opt3001: fix deadlock due to concurrent flag access\n\nThe threaded IRQ function in this driver is reading the flag twice: once to\nlock a mutex and once to unlock it. Even though the code setting the flag\nis designed to prevent it, there are subtle cases where the flag could be\ntrue at the mutex_lock stage and false at the mutex_unlock stage. This\nresults in the mutex not being unlocked, resulting in a deadlock.\n\nFix it by making the opt3001_irq() code generally more robust, reading the\nflag into a variable and using the variable value at both stages.","publishedAt":"2025-05-20T16:47:16.051Z","updatedAt":"2026-05-12T12:04:21.741Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"a9c56ccb7cddfca754291fb24b108a5350a5fbe9","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"957e8be112636d9bc692917286e81e54bd87decc","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"748ebd8e61d0bc182c331b8df3887af7285c8a8f","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"e791bf216c9e236b34dabf514ec0ede140cca719","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"7ca84f6a22d50bf8b31efe9eb05f9859947266d7","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"2c95c8f0959d0a72575eabf2ff888f47ed6d8b77","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"f063a28002e3350088b4577c5640882bf4ea17ea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/light/opt3001.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.3","versionType":"semver"},{"version":"5.4.299","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.243","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.192","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.151","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.105","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.30","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.7","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/light/opt3001.c"]}],"references":["https://git.kernel.org/stable/c/a9c56ccb7cddfca754291fb24b108a5350a5fbe9","https://git.kernel.org/stable/c/957e8be112636d9bc692917286e81e54bd87decc","https://git.kernel.org/stable/c/1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5","https://git.kernel.org/stable/c/748ebd8e61d0bc182c331b8df3887af7285c8a8f","https://git.kernel.org/stable/c/e791bf216c9e236b34dabf514ec0ede140cca719","https://git.kernel.org/stable/c/7ca84f6a22d50bf8b31efe9eb05f9859947266d7","https://git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77","https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea","https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","https://cert-portal.siemens.com/productcert/html/ssa-032379.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37968.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37968","state":"PUBLISHED","datePublished":"2025-05-20T16:47:16.051Z","dateUpdated":"2026-05-12T12:04:21.741Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.974Z"},"containers":{"cna":{"title":"iio: light: opt3001: fix deadlock due to concurrent flag access","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: light: opt3001: fix deadlock due to concurrent flag access\n\nThe threaded IRQ function in this driver is reading the flag twice: once to\nlock a mutex and once to unlock it. Even though the code setting the flag\nis designed to prevent it, there are subtle cases where the flag could be\ntrue at the mutex_lock stage and false at the mutex_unlock stage. This\nresults in the mutex not being unlocked, resulting in a deadlock.\n\nFix it by making the opt3001_irq() code generally more robust, reading the\nflag into a variable and using the variable value at both stages."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"a9c56ccb7cddfca754291fb24b108a5350a5fbe9","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"957e8be112636d9bc692917286e81e54bd87decc","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"748ebd8e61d0bc182c331b8df3887af7285c8a8f","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"e791bf216c9e236b34dabf514ec0ede140cca719","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"7ca84f6a22d50bf8b31efe9eb05f9859947266d7","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"2c95c8f0959d0a72575eabf2ff888f47ed6d8b77","versionType":"git"},{"version":"94a9b7b1809f56cfaa080e70ec49b6979563a237","status":"affected","lessThan":"f063a28002e3350088b4577c5640882bf4ea17ea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/light/opt3001.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.3","versionType":"semver"},{"version":"5.4.299","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.243","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.192","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.151","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.105","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.30","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.7","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/light/opt3001.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a9c56ccb7cddfca754291fb24b108a5350a5fbe9"},{"url":"https://git.kernel.org/stable/c/957e8be112636d9bc692917286e81e54bd87decc"},{"url":"https://git.kernel.org/stable/c/1d7def97e7eb65865ccc01bbdf4eb9e6bbe8a5b5"},{"url":"https://git.kernel.org/stable/c/748ebd8e61d0bc182c331b8df3887af7285c8a8f"},{"url":"https://git.kernel.org/stable/c/e791bf216c9e236b34dabf514ec0ede140cca719"},{"url":"https://git.kernel.org/stable/c/7ca84f6a22d50bf8b31efe9eb05f9859947266d7"},{"url":"https://git.kernel.org/stable/c/2c95c8f0959d0a72575eabf2ff888f47ed6d8b77"},{"url":"https://git.kernel.org/stable/c/f063a28002e3350088b4577c5640882bf4ea17ea"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:18:43.308Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"5.4.299"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"5.10.243"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"5.15.192"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.1.151"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.6.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.12.30"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.14.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T17:32:49.287Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC CN 4100","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V5.0","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-05-12T12:04:21.741Z"},"x_adpType":"supplier"}]}}}