CVE-2025-40005
kernel: spi: cadence-quadspi: Implement refcount to handle unbind during busy
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 20, 2025
Updated · June 30, 2026
Description
A flaw was found in the Linux kernel’s cadence-quadspi SPI controller driver. The driver did not implement reference counting when devices are bound/unbound, assuming that forced removals (“unbind”) will not happen while indirect read or write operations are ongoing. However, a root user can force device removal even during busy operations, and this can lead to a kernel crash.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 5.2CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H
CWE-664 · Improper Control of a Resource Through its Lifetime