spi: spi-qcom-qspi: Fix incomplete error handling in runtime PM
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: spi-qcom-qspi: Fix incomplete error handling in runtime PM
The runtime PM functions had incomplete error handling that could leave the system in an inconsistent state. If any operation failed midway through suspend or resume, some resources would be left in the wrong state while others were already changed, leading to potential clock/power imbalances.
Reorder the suspend/resume sequences to avoid brownout risk by ensuring the performance state is set appropriately before clocks are enabled and clocks are disabled before dropping the performance state.
Fix by adding proper error checking for all operations and using goto-based cleanup to ensure all successfully acquired resources are properly released on any error.
From the CVE record · Linux
Incomplete error handling during runtime suspend or resume in the Linux kernel’s spi-qcom-qspi driver can leave resources in an inconsistent state if an operation fails midway. This can cause clock/power imbalances and a brownout risk. The input does not establish an attacker path, access requirements, or user-interaction conditions.
Engineers running Linux kernels with the spi-qcom-qspi driver should check their versions; affected versions were not provided.