Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-26807

HIGH 7.8EPSS 18%

spi: cadence-qspi: fix pointer reference in runtime PM hooks

Mitigation

  • No fix listed yet: follow the vendor advisory.

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

Vulnerability facts

Affected
Linux >= 79acf7fb856eade9c3d0cf00fd34a04bf5c43a1c, < 2c914aac9522f6e93822c18dff233d3e92399c81; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 03f1573c9587029730ca68503f5062105b122f61; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 32ce3bb57b6b402de2aec1012511e7ac4e7449dc; e3f9fc9a4f1499cc9e1bad4482d377494e367b3d; 6716203844bc8489af5e5564f0fa31e0c094a7ff; b24f1ecc8fe2ceefc14af02edb1744c246d87bf7; d453f25faf681799d636fe9d6899ad91c45aa11e; 18cb554e9da81bc4eca653c17a0d65e8b5835c09; 1368dbc0a432acf9fc0dcb23bfe52d32ca4c09ab; …; Linux 6.4
Fixed in
Linux 2c914aac9522f6e93822c18dff233d3e92399c81, Linux 03f1573c9587029730ca68503f5062105b122f61, Linux 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03, Linux 32ce3bb57b6b402de2aec1012511e7ac4e7449dc
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.33% chance of exploitation in 30 days (percentile 18, 2026-11-26)
CWE
CWE-787
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 79acf7fb856eade9c3d0cf00fd34a04bf5c43a1c, < 2c914aac9522f6e93822c18dff233d3e92399c81; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 03f1573c9587029730ca68503f5062105b122f61; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03; >= 2087e85bb66ee3652dafe732bb9b9b896229eafc, < 32ce3bb57b6b402de2aec1012511e7ac4e7449dc; e3f9fc9a4f1499cc9e1bad4482d377494e367b3d; 6716203844bc8489af5e5564f0fa31e0c094a7ff; b24f1ecc8fe2ceefc14af02edb1744c246d87bf7; d453f25faf681799d636fe9d6899ad91c45aa11e; 18cb554e9da81bc4eca653c17a0d65e8b5835c09; 1368dbc0a432acf9fc0dcb23bfe52d32ca4c09ab; …—cvelist
Linux6.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors