Skip to content
Heist/ feed
Back to feed
UnratedFix available

spi: Fix null dereference on suspend

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: spi: Fix null dereference on suspend A race condition exists where a synchronous (noqueue) transfer can be active during a system suspend. This can cause a null pointer dereference exception to occur when the system resumes. Example order of events leading to the exception: 1. spi_sync() calls __spi_transfer_message_noqueue() which sets ctlr->cur_msg 2. Spi transfer begins via spi_transfer_one_message() 3. System is suspended interrupting the transfer context 4. System is resumed 6. spi_controller_resume() calls spi_start_queue() which resets cur_msg to NULL 7. Spi transfer context resumes and spi_finalize_current_message() is called which dereferences cur_msg (which is now NULL) Wait for synchronous transfers to complete before suspending by acquiring the bus mutex and setting/checking a suspend flag.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.66, 6.6.3
CVEs
CVE-2023-52749
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:08 UTC · Revision 1

Source evidence

spi: Fix null dereference on suspend

core-osv · Original source

Published 21 May 2024, 15:30 UTC

In the Linux kernel, the following vulnerability has been resolved: spi: Fix null dereference on suspend A race condition exists where a synchronous (noqueue) transfer can be active during a system suspend. This can cause a null pointer dereference exception to occur when the system resumes. Example order of events leading to the exception: 1. spi_sync() calls __spi_transfer_message_noqueue() which sets ctlr->cur_msg 2. Spi transfer begins via spi_transfer_one_message() 3. System is suspended interrupting the transfer context 4. System is resumed 6. spi_controller_resume() calls spi_start_queue() which resets cur_msg to NULL 7. Spi transfer context resumes and spi_finalize_current_message() is called which dereferences cur_msg (which is now NULL) Wait for synchronous transfers to complete before suspending by acquiring the bus mutex and setting/checking a suspend flag.

osv:CVE-2023-52749

Kernel

Fixed versions: 6.1.66, 6.6.3

Complete source record
{
  "id": "b96203adc5492f40d4b90e5df3f3e479b354f33f83889410ee7f9b3b0a6507a3",
  "url": "https://osv.dev/vulnerability/CVE-2023-52749",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "spi: Fix null dereference on suspend",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: spi: Fix null dereference on suspend A race condition exists where a synchronous (noqueue) transfer can be active during a system suspend. This can cause a null pointer dereference exception to occur when the system resumes. Example order of events leading to the exception: 1. spi_sync() calls __spi_transfer_message_noqueue() which sets ctlr->cur_msg 2. Spi transfer begins via spi_transfer_one_message() 3. System is suspended interrupting the transfer context 4. System is resumed 6. spi_controller_resume() calls spi_start_queue() which resets cur_msg to NULL 7. Spi transfer context resumes and spi_finalize_current_message() is called which dereferences cur_msg (which is now NULL) Wait for synchronous transfers to complete before suspending by acquiring the bus mutex and setting/checking a suspend flag.",
    "evidence": "osv:CVE-2023-52749",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.66",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-52749",
      "aliases": [
        "CVE-2023-52749"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.0.0"
                },
                {
                  "fixed": "6.1.66"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52749.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.437697126Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068",
        "https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e",
        "https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52749.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52749",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52749.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52749",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 493647,
  "published_at": "2024-05-21T15:30:38.904+00:00"
}