{"id":"CVE-2025-71299","aliases":["CVE-2025-71299"],"related":[],"kind":"vulnerability","state":"published","title":"spi: cadence-quadspi: Parse DT for flashes with the rest of the DT parsing","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: cadence-quadspi: Parse DT for flashes with the rest of the DT parsing\n\nThe recent refactoring of where runtime PM is enabled done in commit\nf1eb4e792bb1 (\"spi: spi-cadence-quadspi: Enable pm runtime earlier to\navoid imbalance\") made the fact that when we do a pm_runtime_disable()\nin the error paths of probe() we can trigger a runtime disable which in\nturn results in duplicate clock disables.  This is particularly likely\nto happen when there is missing or broken DT description for the flashes\nattached to the controller.\n\nEarly on in the probe function we do a pm_runtime_get_noresume() since\nthe probe function leaves the device in a powered up state but in the\nerror path we can't assume that PM is enabled so we also manually\ndisable everything, including clocks. This means that when runtime PM is\nactive both it and the probe function release the same reference to the\nmain clock for the IP, triggering warnings from the clock subsystem:\n\n[    8.693719] clk:75:7 already disabled\n[    8.693791] WARNING: CPU: 1 PID: 185 at /usr/src/kernel/drivers/clk/clk.c:1188 clk_core_disable+0xa0/0xb\n...\n[    8.694261]  clk_core_disable+0xa0/0xb4 (P)\n[    8.694272]  clk_disable+0x38/0x60\n[    8.694283]  cqspi_probe+0x7c8/0xc5c [spi_cadence_quadspi]\n[    8.694309]  platform_probe+0x5c/0xa4\n\nDealing with this issue properly is complicated by the fact that we\ndon't know if runtime PM is active so can't tell if it will disable the\nclocks or not.  We can, however, sidestep the issue for the flash\ndescriptions by moving their parsing to when we parse the controller\nproperties which also save us doing a bunch of setup which can never be\nused so let's do that.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: cadence-quadspi: Parse DT for flashes with the rest of the DT parsing\n\nThe recent refactoring of where runtime PM is enabled done in commit\nf1eb4e792bb1 (\"spi: spi-cadence-quadspi: Enable pm runtime earlier to\navoid imbalance\") made the fact that when we do a pm_runtime_disable()\nin the error paths of probe() we can trigger a runtime disable which in\nturn results in duplicate clock disables.  This is particularly likely\nto happen when there is missing or broken DT description for the flashes\nattached to the controller.\n\nEarly on in the probe function we do a pm_runtime_get_noresume() since\nthe probe function leaves the device in a powered up state but in the\nerror path we can't assume that PM is enabled so we also manually\ndisable everything, including clocks. This means that when runtime PM is\nactive both it and the probe function release the same reference to the\nmain clock for the IP, triggering warnings from the clock subsystem:\n\n[    8.693719] clk:75:7 already disabled\n[    8.693791] WARNING: CPU: 1 PID: 185 at /usr/src/kernel/drivers/clk/clk.c:1188 clk_core_disable+0xa0/0xb\n...\n[    8.694261]  clk_core_disable+0xa0/0xb4 (P)\n[    8.694272]  clk_disable+0x38/0x60\n[    8.694283]  cqspi_probe+0x7c8/0xc5c [spi_cadence_quadspi]\n[    8.694309]  platform_probe+0x5c/0xa4\n\nDealing with this issue properly is complicated by the fact that we\ndon't know if runtime PM is active so can't tell if it will disable the\nclocks or not.  We can, however, sidestep the issue for the flash\ndescriptions by moving their parsing to when we parse the controller\nproperties which also save us doing a bunch of setup which can never be\nused so let's do that.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nspi: cadence-quadspi: Analizar DT para flashes con el resto del análisis de DT\n\nLa 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.\n\nAl 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:\n\n[    8.693719] clk:75:7 ya deshabilitado\n[    8.693791] ADVERTENCIA: CPU: 1 PID: 185 en /usr/src/kernel/drivers/clk/clk.c:1188 clk_core_disable+0xa0/0xb\n...\n[    8.694261]  clk_core_disable+0xa0/0xb4 (P)\n[    8.694272]  clk_disable+0x38/0x60\n[    8.694283]  cqspi_probe+0x7c8/0xc5c [spi_cadence_quadspi]\n[    8.694309]  platform_probe+0x5c/0xa4\n\nAbordar 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.","source":"nvd"}],"published":"2026-05-08T13:11:10.518Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3","fixed":"08dca4c8099a41a9fa3be128a793387603f73a17","status":"affected"},{"type":"git","introduced":"f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3","fixed":"dcaa104ad9c860a6dbd5797919e0ec0b1cd5a57a","status":"affected"},{"type":"git","introduced":"f1eb4e792bb1ee3dcdffa66f8a83a4867cda2dd3","fixed":"9f0736a4e136a6eb61e0cf530ddc18ab6d816ba3","status":"affected"},{"type":"git","version":"7f3c5e0585250097be39736e6b182c5779b7b609","status":"affected"},{"type":"semver","introduced":"6.17.11","fixed":"6.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.17.11","fixed":"6.18"},{"status":"affected","introduced":"6.18.1","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"},{"status":"affected","version":"6.18"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/08dca4c8099a41a9fa3be128a793387603f73a17","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dcaa104ad9c860a6dbd5797919e0ec0b1cd5a57a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f0736a4e136a6eb61e0cf530ddc18ab6d816ba3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71299","url":"https://www.cve.org/CVERecord?id=CVE-2025-71299","licence":"CVE Terms of Use","modified":"2026-05-23T16:03:36.757Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71299","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71299","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:12.156Z","epss":{"score":0.00121,"percentile":0.02075,"date":"2026-12-01T12:00:22.000Z"}}