{"id":"CVE-2023-52749","published":"2024-05-21T15:30:38Z","modified":"2026-05-11T19:32:27Z","title":"spi: Fix null dereference on suspend","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: Fix null dereference on suspend\n\nA race condition exists where a synchronous (noqueue) transfer can be\nactive during a system suspend. This can cause a null pointer\ndereference exception to occur when the system resumes.\n\nExample order of events leading to the exception:\n1. spi_sync() calls __spi_transfer_message_noqueue() which sets\n   ctlr->cur_msg\n2. Spi transfer begins via spi_transfer_one_message()\n3. System is suspended interrupting the transfer context\n4. System is resumed\n6. spi_controller_resume() calls spi_start_queue() which resets cur_msg\n   to NULL\n7. Spi transfer context resumes and spi_finalize_current_message() is\n   called which dereferences cur_msg (which is now NULL)\n\nWait for synchronous transfers to complete before suspending by\nacquiring the bus mutex and setting/checking a suspend flag.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00181,"percentile":0.07871,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068","tags":[]},{"url":"https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e","tags":[]},{"url":"https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37","tags":[]}],"priority":{"score":1.6,"factors":[{"name":"EPSS percentile","points":1.57}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, < 4ec4508db97502a12daee88c74782e8d35ced068",">= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, < 96474ea47dc67b0704392d59192b233c8197db0e",">= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, < bef4a48f4ef798c4feddf045d49e53c8a97d5e37"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-17T17:36:59.089454Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59468","exploited":false,"provenance":"source"}}