# CVE-2025-40005: spi: cadence-quadspi: Implement refcount to handle unbind during busy

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-10-20T15:26:52.315Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

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

spi: cadence-quadspi: Implement refcount to handle unbind during busy

driver support indirect read and indirect write operation with
assumption no force device removal(unbind) operation. However
force device removal(removal) is still available to root superuser.

Unbinding driver during operation causes kernel crash. This changes
ensure driver able to handle such operation for indirect read and
indirect write by implementing refcount to track attached devices
to the controller and gracefully wait and until attached devices
remove operation completed before proceed with removal operation.

(As written by CVE List.)

## Affected

- Linux Linux: from a314f6367787ee1d767df9a2120f17e4511144d0 before 8ce3ebbe5c718940b4e94f5c25f5720223f893f8; from a314f6367787ee1d767df9a2120f17e4511144d0 before 56787f4a75907ae99b5f5842b756fa68e2482f6d; from a314f6367787ee1d767df9a2120f17e4511144d0 before 8df235f768cea7a5829cb02525622646eb0df5f5; from a314f6367787ee1d767df9a2120f17e4511144d0 before 65ed52200080eafce3eead05cf22ce01238defca; from a314f6367787ee1d767df9a2120f17e4511144d0 before b7ec8a2b094a33d0464958c2cbf75b8f229098b0; from a314f6367787ee1d767df9a2120f17e4511144d0 before 7446284023e8ef694fb392348185349c773eefb3; 5.9 (not affected: before 5.9; from 5.15.209 up to 5.15.*; from 6.1.167 up to 6.1.*; from 6.6.125 up to 6.6.*; from 6.12.78 up to 6.12.*; from 6.16.10 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.9 before 6.6.125; from 6.7 before 6.16.10; 6.17

## References

- <https://git.kernel.org/stable/c/8ce3ebbe5c718940b4e94f5c25f5720223f893f8>
- <https://git.kernel.org/stable/c/56787f4a75907ae99b5f5842b756fa68e2482f6d>
- <https://git.kernel.org/stable/c/8df235f768cea7a5829cb02525622646eb0df5f5> (patch)
- <https://git.kernel.org/stable/c/65ed52200080eafce3eead05cf22ce01238defca>
- <https://git.kernel.org/stable/c/b7ec8a2b094a33d0464958c2cbf75b8f229098b0> (patch)
- <https://git.kernel.org/stable/c/7446284023e8ef694fb392348185349c773eefb3> (patch)

## Sources

- CVE List: [CVE-2025-40005](https://www.cve.org/CVERecord?id=CVE-2025-40005), CVE Terms of Use, modified 2026-06-01
- NVD: [CVE-2025-40005](https://nvd.nist.gov/vuln/detail/CVE-2025-40005), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40005 · Whole record: https://cve.day/CVE-2025-40005.json · Rebuilt by cve.day 2026-11-25T22:59:06.575Z
