{"id":"CVE-2023-52749","state":"PUBLISHED","title":"spi: Fix null dereference on suspend","description":"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.","publishedAt":"2024-05-21T15:30:38.904Z","updatedAt":"2026-05-11T19:32:27.438Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ae7d2346dc89ae89a6e0aabe6037591a11e593c0","status":"affected","lessThan":"4ec4508db97502a12daee88c74782e8d35ced068","versionType":"git"},{"version":"ae7d2346dc89ae89a6e0aabe6037591a11e593c0","status":"affected","lessThan":"96474ea47dc67b0704392d59192b233c8197db0e","versionType":"git"},{"version":"ae7d2346dc89ae89a6e0aabe6037591a11e593c0","status":"affected","lessThan":"bef4a48f4ef798c4feddf045d49e53c8a97d5e37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi.c","include/linux/spi/spi.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.66","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi.c","include/linux/spi/spi.h"]}],"references":["https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068","https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e","https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52749.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52749","state":"PUBLISHED","datePublished":"2024-05-21T15:30:38.904Z","dateUpdated":"2026-05-11T19:32:27.438Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T15:19:24.234Z"},"containers":{"cna":{"title":"spi: Fix null dereference on suspend","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ae7d2346dc89ae89a6e0aabe6037591a11e593c0","status":"affected","lessThan":"4ec4508db97502a12daee88c74782e8d35ced068","versionType":"git"},{"version":"ae7d2346dc89ae89a6e0aabe6037591a11e593c0","status":"affected","lessThan":"96474ea47dc67b0704392d59192b233c8197db0e","versionType":"git"},{"version":"ae7d2346dc89ae89a6e0aabe6037591a11e593c0","status":"affected","lessThan":"bef4a48f4ef798c4feddf045d49e53c8a97d5e37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi.c","include/linux/spi/spi.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.66","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi.c","include/linux/spi/spi.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068"},{"url":"https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e"},{"url":"https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:32:27.438Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-17T17:36:59.089454Z","id":"CVE-2023-52749","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-17T17:37:26.791Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:35.612Z"}}]}}}