{"id":"CVE-2025-40005","aliases":["CVE-2025-40005"],"related":[],"kind":"vulnerability","state":"published","title":"spi: cadence-quadspi: Implement refcount to handle unbind during busy","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: cadence-quadspi: Implement refcount to handle unbind during busy\n\ndriver support indirect read and indirect write operation with\nassumption no force device removal(unbind) operation. However\nforce device removal(removal) is still available to root superuser.\n\nUnbinding driver during operation causes kernel crash. This changes\nensure driver able to handle such operation for indirect read and\nindirect write by implementing refcount to track attached devices\nto the controller and gracefully wait and until attached devices\nremove operation completed before proceed with removal operation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: cadence-quadspi: Implement refcount to handle unbind during busy\n\ndriver support indirect read and indirect write operation with\nassumption no force device removal(unbind) operation. However\nforce device removal(removal) is still available to root superuser.\n\nUnbinding driver during operation causes kernel crash. This changes\nensure driver able to handle such operation for indirect read and\nindirect write by implementing refcount to track attached devices\nto the controller and gracefully wait and until attached devices\nremove operation completed before proceed with removal operation.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nspi: cadence-quadspi: Implementar refcount para manejar la desvinculación durante la ocupación\n\nEl controlador soporta operación de lectura indirecta y escritura indirecta con la suposición de que no hay operación de eliminación forzada de dispositivo (desvinculación). Sin embargo, la eliminación forzada de dispositivo (eliminación) todavía está disponible para el superusuario root.\n\nDesvincular el controlador durante la operación causa un fallo del kernel. Estos cambios aseguran que el controlador sea capaz de manejar dicha operación para lectura indirecta y escritura indirecta mediante la implementación de refcount para rastrear los dispositivos conectados al controlador y esperar de forma elegante hasta que la operación de eliminación de los dispositivos conectados se complete antes de proceder con la operación de eliminación.","source":"nvd"}],"published":"2025-10-20T15:26:52.315Z","modified":"2026-10-19T21:10:00.160Z","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":"a314f6367787ee1d767df9a2120f17e4511144d0","fixed":"8ce3ebbe5c718940b4e94f5c25f5720223f893f8","status":"affected"},{"type":"git","introduced":"a314f6367787ee1d767df9a2120f17e4511144d0","fixed":"56787f4a75907ae99b5f5842b756fa68e2482f6d","status":"affected"},{"type":"git","introduced":"a314f6367787ee1d767df9a2120f17e4511144d0","fixed":"8df235f768cea7a5829cb02525622646eb0df5f5","status":"affected"},{"type":"git","introduced":"a314f6367787ee1d767df9a2120f17e4511144d0","fixed":"65ed52200080eafce3eead05cf22ce01238defca","status":"affected"},{"type":"git","introduced":"a314f6367787ee1d767df9a2120f17e4511144d0","fixed":"b7ec8a2b094a33d0464958c2cbf75b8f229098b0","status":"affected"},{"type":"git","introduced":"a314f6367787ee1d767df9a2120f17e4511144d0","fixed":"7446284023e8ef694fb392348185349c773eefb3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.125","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.10","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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.9","fixed":"6.6.125"},{"status":"affected","introduced":"6.7","fixed":"6.16.10"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8ce3ebbe5c718940b4e94f5c25f5720223f893f8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/56787f4a75907ae99b5f5842b756fa68e2482f6d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8df235f768cea7a5829cb02525622646eb0df5f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65ed52200080eafce3eead05cf22ce01238defca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7ec8a2b094a33d0464958c2cbf75b8f229098b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7446284023e8ef694fb392348185349c773eefb3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40005","url":"https://www.cve.org/CVERecord?id=CVE-2025-40005","licence":"CVE Terms of Use","modified":"2026-06-01T16:05:33.466Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40005","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40005","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.575Z","epss":{"score":0.00203,"percentile":0.10843,"date":"2026-12-01T12:00:22.000Z"}}