CVE-2026-143224: spi: virtio: move teardown to .remove()
In the Linux kernel, the following vulnerability has been resolved:
spi: virtio: move teardown to .remove()
The .remove() callback is not marked as optional for a virtiodriver, and thus a missing one is a bug. Moreover, the virtio framework expects a driver to reset the device it controls during teardown and explicitly checks for this reading the device status and WARNing in case it is still running. Any devm cleanup action gets however called after that check, leading to the WARNON condition to always be true for spi-virtio; thus, an empty remove() is not an option.
Move the cleanup actions to the .remove() callback of the driver and adapt the surrounding code to the new behavior.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
For spi-virtio, move cleanup actions to the driver's .remove() callback, ensure the callback is non-empty, and adapt the surrounding code to the new teardown behavior.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel spi-virtio driver are affected during driver or device teardown. The issue concerns the virtio SPI driver lifecycle rather than normal SPI transaction handling.
What is required to trigger the problem?
The spi-virtio driver must be removed or its device torn down while it is still under virtio framework control. The framework checks whether the device was reset during teardown, but the original cleanup occurred too late through a devm cleanup action.
How can I tell whether a system is affected?
An affected system can emit a WARN_ON condition during spi-virtio teardown because the virtio device remains running when the framework performs its status check. Review kernel logs around removal of the spi-virtio driver or associated virtio device.
What is the mitigation if an update cannot be applied immediately?
No configuration-based mitigation is provided. Limit exposure by avoiding removal or teardown of devices using the spi-virtio driver until a kernel containing the corrected teardown behavior can be deployed.