CVE-2025-71299

Source
https://cve.org/CVERecord?id=CVE-2025-71299
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71299.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-71299
Downstream
AZL (1)
BELL (1)
DEBIAN (1)
ROOT (3)
UBUNTU (1)
Published
2026-05-08T13:11:10Z
Modified
2026-10-08T02:49:10Z
Summary
spi: cadence-quadspi: Parse DT for flashes with the rest of the DT parsing
Details

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

spi: cadence-quadspi: Parse DT for flashes with the rest of the DT parsing

The recent refactoring of where runtime PM is enabled done in commit f1eb4e792bb1 ("spi: spi-cadence-quadspi: Enable pm runtime earlier to avoid imbalance") made the fact that when we do a pm_runtime_disable() in the error paths of probe() we can trigger a runtime disable which in turn results in duplicate clock disables. This is particularly likely to happen when there is missing or broken DT description for the flashes attached to the controller.

Early on in the probe function we do a pm_runtime_get_noresume() since the probe function leaves the device in a powered up state but in the error path we can't assume that PM is enabled so we also manually disable everything, including clocks. This means that when runtime PM is active both it and the probe function release the same reference to the main clock for the IP, triggering warnings from the clock subsystem:

[ 8.693719] clk:75:7 already disabled [ 8.693791] WARNING: CPU: 1 PID: 185 at /usr/src/kernel/drivers/clk/clk.c:1188 clk_core_disable+0xa0/0xb ... [ 8.694261] clk_core_disable+0xa0/0xb4 (P) [ 8.694272] clk_disable+0x38/0x60 [ 8.694283] cqspi_probe+0x7c8/0xc5c [spi_cadence_quadspi] [ 8.694309] platform_probe+0x5c/0xa4

Dealing with this issue properly is complicated by the fact that we don't know if runtime PM is active so can't tell if it will disable the clocks or not. We can, however, sidestep the issue for the flash descriptions by moving their parsing to when we parse the controller properties which also save us doing a bunch of setup which can never be used so let's do that.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71299.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3
Fixed
08dca4c8099a41a9fa3be128a793387603f73a17
Fixed
dcaa104ad9c860a6dbd5797919e0ec0b1cd5a57a
Fixed
9f0736a4e136a6eb61e0cf530ddc18ab6d816ba3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.17.11
Fixed
6.18
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7f3c5e0585250097be39736e6b182c5779b7b609

Affected versions

v6.*
v6.17.11
v6.17.12
v6.17.13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71299.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
6.18.16
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71299.json"