CVE-2025-71299

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:-:*:*:*:*:*:*

History

14 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: spi: cadence-quadspi: Analizar DT para flashes con el resto del análisis de DT La reciente refactorización de dónde se habilita el PM en tiempo de ejecución, realizada en el commit f1eb4e792bb1 ('spi: spi-cadence-quadspi: Habilitar pm runtime antes para evitar desequilibrio'), hizo que cuando hacemos un pm_runtime_disable() en las rutas de error de probe() podamos activar una deshabilitación en tiempo de ejecución que a su vez resulta en deshabilitaciones de reloj duplicadas. Esto es particularmente probable que ocurra cuando hay una descripción de DT faltante o rota para los flashes conectados al controlador. Al principio de la función probe hacemos un pm_runtime_get_noresume() ya que la función probe deja el dispositivo en un estado encendido, pero en la ruta de error no podemos asumir que el PM está habilitado, por lo que también deshabilitamos manualmente todo, incluidos los relojes. Esto significa que cuando el PM en tiempo de ejecución está activo, tanto este como la función probe liberan la misma referencia al reloj principal para la IP, lo que activa advertencias del subsistema de reloj: [ 8.693719] clk:75:7 ya deshabilitado [ 8.693791] ADVERTENCIA: CPU: 1 PID: 185 en /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 Abordar este problema correctamente se complica por el hecho de que no sabemos si el PM en tiempo de ejecución está activo, por lo que no podemos saber si deshabilitará los relojes o no. Sin embargo, podemos eludir el problema para las descripciones de flash moviendo su análisis a cuando analizamos las propiedades del controlador, lo que también nos ahorra hacer una serie de configuraciones que nunca podrán ser utilizadas, así que hagámoslo.

Information

Published : 2026-05-08 14:16

Updated : 2026-10-14 13:10


NVD link : CVE-2025-71299

Mitre link : CVE-2025-71299

CVE.ORG link : CVE-2025-71299


JSON object : View

Products Affected

linux

  • linux_kernel