{"id":"CVE-2026-80562","state":"PUBLISHED","title":"gpio: ml-ioh: use raw_spinlock_t for the register lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: ml-ioh: use raw_spinlock_t for the register lock\n\nioh_irq_type() is registered as the irq_chip .irq_set_type callback and\ntakes chip->spinlock with spin_lock_irqsave().  This callback is reached\nfrom __setup_irq() -> __irq_set_trigger() -> chip->irq_set_type() while\nthe caller holds desc->lock, a raw_spinlock_t, with hardirqs disabled.\nThat context is not sleepable, but on PREEMPT_RT a regular spinlock_t is\nan rtmutex-backed sleeping lock, so acquiring it there is invalid.\nioh_irq_enable() and ioh_irq_disable() take the same lock from the\n.irq_enable/.irq_disable callbacks, which are likewise invoked with\ndesc->lock held.\n\nConvert the register lock to raw_spinlock_t.  The same lock also\nserializes the GPIO direction/value callbacks and the suspend/resume\nregister save/restore, and those critical sections only perform short\nsequences of MMIO register accesses (ioread32()/iowrite32()); the\n.irq_set_type callback additionally emits a dev_warn() on an unsupported\ntype.  None of these are sleepable operations, so keeping this register\nlock non-sleeping is appropriate for the irqchip callbacks and does not\nchange the GPIO-side locking contract.\n\nThis is the same fix as commit a02b8950d619 (\"gpio: pch: use\nraw_spinlock_t for the register lock\"); this driver shares the same\nstructure as gpio-pch.","publishedAt":"2026-08-26T14:37:27.171Z","updatedAt":"2026-08-27T12:40:17.967Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"431b10133113537660a6090a2856b0d74d1b06de","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"359e6b1168c9a62a7bd214ace476aaa2d57eebe8","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"63d2230e5076c12f93d2a1d1bff2fbbf6cf32f3c","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"b6505a4cea45dd92eb753581b1ad9b524b5fcc34","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"84be002b40d30c56a91873b236e2d9001bbee363","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"bc7934d0acd4fc1c7e5b7c68debdb4a991121628","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"0559b86611c35d342dd48542ea26a9e437046bf6","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"600411ea1f2443fdf5b1af9b6480f616d7aff9d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-ml-ioh.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.2","versionType":"semver"},{"version":"5.10.267","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.218","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.185","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.154","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.106","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-ml-ioh.c"]}],"references":["https://git.kernel.org/stable/c/431b10133113537660a6090a2856b0d74d1b06de","https://git.kernel.org/stable/c/359e6b1168c9a62a7bd214ace476aaa2d57eebe8","https://git.kernel.org/stable/c/63d2230e5076c12f93d2a1d1bff2fbbf6cf32f3c","https://git.kernel.org/stable/c/b6505a4cea45dd92eb753581b1ad9b524b5fcc34","https://git.kernel.org/stable/c/84be002b40d30c56a91873b236e2d9001bbee363","https://git.kernel.org/stable/c/bc7934d0acd4fc1c7e5b7c68debdb4a991121628","https://git.kernel.org/stable/c/0559b86611c35d342dd48542ea26a9e437046bf6","https://git.kernel.org/stable/c/600411ea1f2443fdf5b1af9b6480f616d7aff9d0"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80562.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80562","state":"PUBLISHED","datePublished":"2026-08-26T14:37:27.171Z","dateUpdated":"2026-08-27T12:40:17.967Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.767Z"},"containers":{"cna":{"title":"gpio: ml-ioh: use raw_spinlock_t for the register lock","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: ml-ioh: use raw_spinlock_t for the register lock\n\nioh_irq_type() is registered as the irq_chip .irq_set_type callback and\ntakes chip->spinlock with spin_lock_irqsave().  This callback is reached\nfrom __setup_irq() -> __irq_set_trigger() -> chip->irq_set_type() while\nthe caller holds desc->lock, a raw_spinlock_t, with hardirqs disabled.\nThat context is not sleepable, but on PREEMPT_RT a regular spinlock_t is\nan rtmutex-backed sleeping lock, so acquiring it there is invalid.\nioh_irq_enable() and ioh_irq_disable() take the same lock from the\n.irq_enable/.irq_disable callbacks, which are likewise invoked with\ndesc->lock held.\n\nConvert the register lock to raw_spinlock_t.  The same lock also\nserializes the GPIO direction/value callbacks and the suspend/resume\nregister save/restore, and those critical sections only perform short\nsequences of MMIO register accesses (ioread32()/iowrite32()); the\n.irq_set_type callback additionally emits a dev_warn() on an unsupported\ntype.  None of these are sleepable operations, so keeping this register\nlock non-sleeping is appropriate for the irqchip callbacks and does not\nchange the GPIO-side locking contract.\n\nThis is the same fix as commit a02b8950d619 (\"gpio: pch: use\nraw_spinlock_t for the register lock\"); this driver shares the same\nstructure as gpio-pch."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"431b10133113537660a6090a2856b0d74d1b06de","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"359e6b1168c9a62a7bd214ace476aaa2d57eebe8","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"63d2230e5076c12f93d2a1d1bff2fbbf6cf32f3c","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"b6505a4cea45dd92eb753581b1ad9b524b5fcc34","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"84be002b40d30c56a91873b236e2d9001bbee363","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"bc7934d0acd4fc1c7e5b7c68debdb4a991121628","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"0559b86611c35d342dd48542ea26a9e437046bf6","versionType":"git"},{"version":"54be566317b6aece2389a95bb19ea209af9359be","status":"affected","lessThan":"600411ea1f2443fdf5b1af9b6480f616d7aff9d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-ml-ioh.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.2","versionType":"semver"},{"version":"5.10.267","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.218","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.185","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.154","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.106","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-ml-ioh.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/431b10133113537660a6090a2856b0d74d1b06de"},{"url":"https://git.kernel.org/stable/c/359e6b1168c9a62a7bd214ace476aaa2d57eebe8"},{"url":"https://git.kernel.org/stable/c/63d2230e5076c12f93d2a1d1bff2fbbf6cf32f3c"},{"url":"https://git.kernel.org/stable/c/b6505a4cea45dd92eb753581b1ad9b524b5fcc34"},{"url":"https://git.kernel.org/stable/c/84be002b40d30c56a91873b236e2d9001bbee363"},{"url":"https://git.kernel.org/stable/c/bc7934d0acd4fc1c7e5b7c68debdb4a991121628"},{"url":"https://git.kernel.org/stable/c/0559b86611c35d342dd48542ea26a9e437046bf6"},{"url":"https://git.kernel.org/stable/c/600411ea1f2443fdf5b1af9b6480f616d7aff9d0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-27T12:40:17.967Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.10.267"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.15.218"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"6.1.185"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"6.6.154"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"6.12.106"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"6.18.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"7.1.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}