CVE-2025-40005

published 20 Oct 2025 · updated 10 Nov 2026

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

6.6MediumCVSS 6.6EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 56787f4a75907ae99b5f5842b756fa68e2482f6d, Kernel 65ed52200080eafce3eead05cf22ce01238defca, Kernel 7446284023e8ef694fb392348185349c773eefb3 and 3 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.9, >=a314f6367787ee1d767df9a2120f17e4511144d0 <56787f4a75907ae99b5f5842b756fa68e2482f6d, >=a314f6367787ee1d767df9a2120f17e4511144d0 <65ed52200080eafce3eead05cf22ce01238defca, >=a314f6367787ee1d767df9a2120f17e4511144d0 <7446284023e8ef694fb392348185349c773eefb3, >=a314f6367787ee1d767df9a2120f17e4511144d0 <8ce3ebbe5c718940b4e94f5c25f5720223f893f8, >=a314f6367787ee1d767df9a2120f17e4511144d0 <8df235f768cea7a5829cb02525622646eb0df5f5, >=a314f6367787ee1d767df9a2120f17e4511144d0 <b7ec8a2b094a33d0464958c2cbf75b8f229098b056787f4a75907ae99b5f5842b756fa68e2482f6d, 65ed52200080eafce3eead05cf22ce01238defca, 7446284023e8ef694fb392348185349c773eefb3, 8ce3ebbe5c718940b4e94f5c25f5720223f893f8, 8df235f768cea7a5829cb02525622646eb0df5f5, b7ec8a2b094a33d0464958c2cbf75b8f229098b0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40005 severity on Zeptric[![CVE-2025-40005](https://zeptric.io/badge/cve/CVE-2025-40005.svg)](https://zeptric.io/cve/CVE-2025-40005)