spi: stm32-ospi: Fix resource leak in remove() callback
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.226.19.127.0In the Linux kernel, the following vulnerability has been resolved:
spi: stm32-ospi: Fix resource leak in remove() callback
The remove() callback returned early if pm_runtime_resume_and_get() failed, skipping the cleanup of spi controller and other resources.
Remove the early return so cleanup completes regardless of PM resume result.
From the CVE record · Linux
The Linux kernel's stm32-ospi remove() callback can skip cleanup of the SPI controller and other resources if a runtime PM resume fails, causing a resource leak. The input does not establish whether an attacker can trigger this condition or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the stm32-ospi driver should check their versions; affected versions were not provided.