news.mlab.sh
Vulnerabilities
Vulnerability

CVE-2025-40005

Reference data from vuln.mlab.sh, coverage from our own index.

CVSS
5.2 Medium
Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H
EPSS
0.19%
Risk score
4.2
Published
2025-10-20
Status
Published

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. 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.

Weaknesses

CWE-664

Coverage 4

Advisories and references