# CVE-2023-52749: spi: Fix null dereference on suspend

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **CWE:** CWE-362, CWE-476
- **Published:** 2024-05-21T15:30:38.904Z
- **Modified:** 2026-06-17T06:43:29.737Z

## Who should check

- Anyone running Linux \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< 4ec4508db97502a12daee88c74782e8d35ced068; \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< 96474ea47dc67b0704392d59192b233c8197db0e; \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< bef4a48f4ef798c4feddf045d49e53c8a97d5e37
- Anyone running Linux 6.0

## Description

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.

## Affected and fixed versions

- Linux: \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< 4ec4508db97502a12daee88c74782e8d35ced068; \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< 96474ea47dc67b0704392d59192b233c8197db0e; \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< bef4a48f4ef798c4feddf045d49e53c8a97d5e37 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52749. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52749.md
Affected: Linux >= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, < 4ec4508db97502a12daee88c74782e8d35ced068; >= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, < 96474ea47dc67b0704392d59192b233c8197db0e; >= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, < bef4a48f4ef798c4feddf045d49e53c8a97d5e37; Linux 6.0
Fixed in: Linux 4ec4508db97502a12daee88c74782e8d35ced068, Linux 96474ea47dc67b0704392d59192b233c8197db0e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52749 being exploited?

There is no confirmed exploitation: CVE-2023-52749 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-52749?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-52749?

Linux \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< 4ec4508db97502a12daee88c74782e8d35ced068; \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< 96474ea47dc67b0704392d59192b233c8197db0e; \>= ae7d2346dc89ae89a6e0aabe6037591a11e593c0, \< bef4a48f4ef798c4feddf045d49e53c8a97d5e37; Linux 6.0.

### Is there a fix for CVE-2023-52749?

Yes. Fixed in Linux 4ec4508db97502a12daee88c74782e8d35ced068, Linux 96474ea47dc67b0704392d59192b233c8197db0e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52749?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4ec4508db97502a12daee88c74782e8d35ced068>
- patch: <https://git.kernel.org/stable/c/96474ea47dc67b0704392d59192b233c8197db0e>
- patch: <https://git.kernel.org/stable/c/bef4a48f4ef798c4feddf045d49e53c8a97d5e37>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52749>

HTML: <https://flawdb.com/CVE-2023-52749> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52749>
