{"id":"CVE-2023-52749","summary":"spi: Fix null dereference on suspend","details":"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-\u003ecur_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.","modified":"2026-04-02T09:43:17.151546Z","published":"2024-05-21T15:30:38.904Z","related":["SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52749.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52749.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52749"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ae7d2346dc89ae89a6e0aabe6037591a11e593c0"},{"fixed":"4ec4508db97502a12daee88c74782e8d35ced068"},{"fixed":"96474ea47dc67b0704392d59192b233c8197db0e"},{"fixed":"bef4a48f4ef798c4feddf045d49e53c8a97d5e37"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52749.json"}}],"schema_version":"1.7.5"}