{"id":"CVE-2024-26806","published":"2024-04-04T08:20:33Z","modified":"2026-05-11T20:04:31Z","title":"spi: cadence-qspi: remove system-wide suspend helper calls from runtime PM hooks","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: cadence-qspi: remove system-wide suspend helper calls from runtime PM hooks\n\nThe ->runtime_suspend() and ->runtime_resume() callbacks are not\nexpected to call spi_controller_suspend() and spi_controller_resume().\nRemove calls to those in the cadence-qspi driver.\n\nThose helpers have two roles currently:\n - They stop/start the queue, including dealing with the kworker.\n - They toggle the SPI controller SPI_CONTROLLER_SUSPENDED flag. It\n   requires acquiring ctlr->bus_lock_mutex.\n\nStep one is irrelevant because cadence-qspi is not queued. Step two\nhowever has two implications:\n - A deadlock occurs, because ->runtime_resume() is called in a context\n   where the lock is already taken (in the ->exec_op() callback, where\n   the usage count is incremented).\n - It would disallow all operations once the device is auto-suspended.\n\nHere is a brief call tree highlighting the mutex deadlock:\n\nspi_mem_exec_op()\n        ...\n        spi_mem_access_start()\n                mutex_lock(&ctlr->bus_lock_mutex)\n\n        cqspi_exec_mem_op()\n                pm_runtime_resume_and_get()\n                        cqspi_resume()\n                                spi_controller_resume()\n                                        mutex_lock(&ctlr->bus_lock_mutex)\n                ...\n\n        spi_mem_access_end()\n                mutex_unlock(&ctlr->bus_lock_mutex)\n        ...","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00203,"percentile":0.05826,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/041562ebc4759c9932b59a06527f8753b86da365","tags":[]},{"url":"https://git.kernel.org/stable/c/959043afe53ae80633e810416cee6076da6e91c6","tags":[]}],"priority":{"score":1.2,"factors":[{"name":"EPSS percentile","points":1.17}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0578a6dbfe7514db7134501cf93acc21cf13e479, < 041562ebc4759c9932b59a06527f8753b86da365",">= 0578a6dbfe7514db7134501cf93acc21cf13e479, < 959043afe53ae80633e810416cee6076da6e91c6"]},{"vendor":"Linux","product":"Linux","versions":["6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-05T17:28:20.913168Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-24068","exploited":false,"provenance":"source"}}