CVE-2025-40005: spi: cadence-quadspi: Implement refcount to handle unbind during busy
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-40005?
CVE-2025-40005 has been classified with a medium severity level due to the potential for race conditions when unbinding busy devices.
How do I fix CVE-2025-40005?
To fix CVE-2025-40005, update your Linux kernel to the latest version where the vulnerability has been patched.
Which systems are affected by CVE-2025-40005?
CVE-2025-40005 affects various versions of the Linux kernel and specifically Microsoft azl3 kernels 6.6.104.2-4 and 6.6.96.2-2.
What type of vulnerability is CVE-2025-40005?
CVE-2025-40005 is a race condition vulnerability that can occur during the unbinding of devices that are still in use.
Is there a workaround for CVE-2025-40005?
The best approach for CVE-2025-40005 is to apply the recommended patches; however, avoiding forced removal of devices may provide a temporary workaround.