CVE-2025-40005 spi: cadence-quadspi: Implement refcount to handle unbind during busy
A local attacker with root privileges can cause a kernel crash by unbinding the Cadence QSPI driver during active operations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-40005?
CVE-2025-40005 is a medium-severity denial of service vulnerability in Linux kernel, published on 20 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-40005?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-40005?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-40005 being exploited?
There is no known exploitation of CVE-2025-40005 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-68597, AZL-78380, BELL-CVE-2025-40005, DEBIAN-CVE-2025-40005, GHSA-g4vw-3hq5-q7gr, ROOT-OS-DEBIAN-11-CVE-2025-40005 and 5 more.