# CVE-2024-26807: spi: cadence-qspi: fix pointer reference in runtime PM hooks

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-04-04T08:20:34.155Z
- **Modified:** 2026-08-05T11:27:25.924Z

## Who should check

- Anyone running Linux \>= 79acf7fb856eade9c3d0cf00fd34a04bf5c43a1c, \< 2c914aac9522f6e93822c18dff233d3e92399c81; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 03f1573c9587029730ca68503f5062105b122f61; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 32ce3bb57b6b402de2aec1012511e7ac4e7449dc; e3f9fc9a4f1499cc9e1bad4482d377494e367b3d; 6716203844bc8489af5e5564f0fa31e0c094a7ff; b24f1ecc8fe2ceefc14af02edb1744c246d87bf7; d453f25faf681799d636fe9d6899ad91c45aa11e; 18cb554e9da81bc4eca653c17a0d65e8b5835c09; 1368dbc0a432acf9fc0dcb23bfe52d32ca4c09ab; …
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

Both cadence-quadspi -\>runtime\_suspend() and -\>runtime\_resume()
implementations start with:

	struct cqspi\_st \*cqspi = dev\_get\_drvdata(dev);
	struct spi\_controller \*host = dev\_get\_drvdata(dev);

This obviously cannot be correct, unless "struct cqspi\_st" is the
first member of " struct spi\_controller", or the other way around, but
it is not the case. "struct spi\_controller" is allocated by
devm\_spi\_alloc\_host(), which allocates an extra amount of memory for
private data, used to store "struct cqspi\_st".

The -\>probe() function of the cadence-quadspi driver then sets the
device drvdata to store the address of the "struct cqspi\_st"
structure. Therefore:

	struct cqspi\_st \*cqspi = dev\_get\_drvdata(dev);

is correct, but:

	struct spi\_controller \*host = dev\_get\_drvdata(dev);

is not, as it makes "host" point not to a "struct spi\_controller" but
to the same "struct cqspi\_st" structure as above.

This obviously leads to bad things (memory corruption, kernel crashes)
directly during -\>probe(), as -\>probe() enables the device using PM
runtime, leading the -\>runtime\_resume() hook being called, which in
turns calls spi\_controller\_resume() with the wrong pointer.

This has at least been reported \[0\] to cause a kernel crash, but the
exact behavior will depend on the memory contents.

\[0\] https://lore.kernel.org/all/20240226121803.5a7r5wkpbbowcxgx@dhruva/

This issue potentially affects all platforms that are currently using
the cadence-quadspi driver.

## Affected and fixed versions

- Linux: \>= 79acf7fb856eade9c3d0cf00fd34a04bf5c43a1c, \< 2c914aac9522f6e93822c18dff233d3e92399c81; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 03f1573c9587029730ca68503f5062105b122f61; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 32ce3bb57b6b402de2aec1012511e7ac4e7449dc; e3f9fc9a4f1499cc9e1bad4482d377494e367b3d; 6716203844bc8489af5e5564f0fa31e0c094a7ff; b24f1ecc8fe2ceefc14af02edb1744c246d87bf7; d453f25faf681799d636fe9d6899ad91c45aa11e; 18cb554e9da81bc4eca653c17a0d65e8b5835c09; 1368dbc0a432acf9fc0dcb23bfe52d32ca4c09ab; … (cvelist)
- Linux: 6.4 (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-2024-26807. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26807.md
Affected: Linux >= 79acf7fb856eade9c3d0cf00fd34a04bf5c43a1c, < 2c914aac9522f6e93822c18dff233d3e92399c81; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 03f1573c9587029730ca68503f5062105b122f61; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03; >= 2087e85bb66ee3652dafe73…
Fixed in: Linux 2c914aac9522f6e93822c18dff233d3e92399c81, Linux 03f1573c9587029730ca68503f5062105b122f61, Linux 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03, Linux 32ce3bb57b6b402de2aec1012511e7ac4e7449dc

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-2024-26807 being exploited?

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

### How serious is CVE-2024-26807?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26807?

Linux \>= 79acf7fb856eade9c3d0cf00fd34a04bf5c43a1c, \< 2c914aac9522f6e93822c18dff233d3e92399c81; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 03f1573c9587029730ca68503f5062105b122f61; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03; \>= 2087e85bb66ee3652dafe732bb9b9b896229eafc, \< 32ce3bb57b6b402de2aec1012511e7ac4e7449dc; e3f9fc9a4f1499cc9e1bad4482d377494e367b3d; 6716203844bc8489af5e5564f0fa31e0c094a7ff; b24f1ecc8fe2ceefc14af02edb1744c246d87bf7; d453f25faf681799d636fe9d6899ad91c45aa11e; 18cb554e9da81bc4eca653c17a0d65e8b5835c09; 1368dbc0a432acf9fc0dcb23bfe52d32ca4c09ab; …; Linux 6.4.

### Is there a fix for CVE-2024-26807?

Yes. Fixed in Linux 2c914aac9522f6e93822c18dff233d3e92399c81, Linux 03f1573c9587029730ca68503f5062105b122f61, Linux 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03, Linux 32ce3bb57b6b402de2aec1012511e7ac4e7449dc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26807?

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/03f1573c9587029730ca68503f5062105b122f61>
- patch: <https://git.kernel.org/stable/c/34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03>
- patch: <https://git.kernel.org/stable/c/32ce3bb57b6b402de2aec1012511e7ac4e7449dc>
- other: <https://git.kernel.org/stable/c/2c914aac9522f6e93822c18dff233d3e92399c81>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## 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-2024-26807>

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