Description
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 virtio_driver, 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 WARN_ON 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f98cabe3f6cf6396b3ae0264800d9b53d7612433 to < feaaed040262e1a74c9e3cff91fd9d27849a4661affectedf98cabe3f6cf6396b3ae0264800d9b53d7612433 to < 0f453d221d53bbe5ce00c2f80c9948f5570cb55daffectedf98cabe3f6cf6396b3ae0264800d9b53d7612433 to < 9060f5ba658c9b0a7332be55b3d8abfc2b08618baffected
Linux Linux
Default version status: affected
6.18affected0 to < 6.18unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected