{"id":"CVE-2025-37842","aliases":["CVE-2025-37842"],"related":[],"kind":"vulnerability","state":"published","title":"spi: fsl-qspi: use devm function instead of driver remove","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: fsl-qspi: use devm function instead of driver remove\n\nDriver use devm APIs to manage clk/irq/resources and register the spi\ncontroller, but the legacy remove function will be called first during\ndevice detach and trigger kernel panic. Drop the remove function and use\ndevm_add_action_or_reset() for driver cleanup to ensure the release\nsequence.\n\nTrigger kernel panic on i.MX8MQ by\necho 30bb0000.spi >/sys/bus/platform/drivers/fsl-quadspi/unbind","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: fsl-qspi: use devm function instead of driver remove\n\nDriver use devm APIs to manage clk/irq/resources and register the spi\ncontroller, but the legacy remove function will be called first during\ndevice detach and trigger kernel panic. Drop the remove function and use\ndevm_add_action_or_reset() for driver cleanup to ensure the release\nsequence.\n\nTrigger kernel panic on i.MX8MQ by\necho 30bb0000.spi >/sys/bus/platform/drivers/fsl-quadspi/unbind","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: spi: fsl-qspi: usar la función devm en lugar de eliminar el controlador. El controlador usa las API devm para administrar clk/irq/resources y registrar el controlador spi, pero la función de eliminación heredada se llamará primero durante la desconexión del dispositivo y activará el pánico del kernel. Se debe omitir la función de eliminación y usar devm_add_action_or_reset() para limpiar el controlador y asegurar la secuencia de liberación. Se activa el pánico del kernel en i.MX8MQ mediante echo 30bb0000.spi &gt;/sys/bus/platform/drivers/fsl-quadspi/unbind.","source":"nvd"}],"published":"2025-05-09T06:41:51.310Z","modified":"2026-11-05T21:17:55.087Z","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":"8fcb830a00f0980ffe38d223cdd9a4d2d24da476","fixed":"69d2d7020b9966817ffc7442ae778c29cb81813f","status":"affected"},{"type":"git","introduced":"8fcb830a00f0980ffe38d223cdd9a4d2d24da476","fixed":"50ae352c1848cab408fb4f7d7f50c71f818bbdbf","status":"affected"},{"type":"git","introduced":"8fcb830a00f0980ffe38d223cdd9a4d2d24da476","fixed":"f68b27d82a749117d9c7d7f33fa53f46373e38e2","status":"affected"},{"type":"git","introduced":"8fcb830a00f0980ffe38d223cdd9a4d2d24da476","fixed":"439688dbe82baa10d4430dc3252bb5ef1183a171","status":"affected"},{"type":"git","introduced":"8fcb830a00f0980ffe38d223cdd9a4d2d24da476","fixed":"f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8","status":"affected"},{"type":"git","introduced":"8fcb830a00f0980ffe38d223cdd9a4d2d24da476","fixed":"40369bfe717e96e26650eeecfa5a6363563df6e4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.105","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.36","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.12","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.3","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","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":"5.2","fixed":"6.6.105"},{"status":"affected","introduced":"6.7","fixed":"6.12.36"},{"status":"affected","introduced":"6.13","fixed":"6.13.12"},{"status":"affected","introduced":"6.14","fixed":"6.14.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/69d2d7020b9966817ffc7442ae778c29cb81813f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50ae352c1848cab408fb4f7d7f50c71f818bbdbf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f68b27d82a749117d9c7d7f33fa53f46373e38e2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/439688dbe82baa10d4430dc3252bb5ef1183a171","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/40369bfe717e96e26650eeecfa5a6363563df6e4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:42:05.791Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37842","url":"https://www.cve.org/CVERecord?id=CVE-2025-37842","licence":"CVE Terms of Use","modified":"2026-11-05T20:52:04.849Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37842","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37842","licence":"Public domain","modified":"2026-11-05T21:17:55.087Z"}],"updatedAt":"2026-11-25T22:58:57.843Z","epss":{"score":0.00311,"percentile":0.25866,"date":"2026-12-01T12:00:22.000Z"}}