spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware()
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: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware()
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced.
From the CVE record · Linux
The Linux kernel's fsl-lpspi driver can leak a power-management reference when pm_runtime_get_sync fails in lpspi_prepare_xfer_hardware(). The input does not describe an attacker capability or specify network access, authentication, or user-interaction conditions.
Engineers running the Linux kernel with the fsl-lpspi driver should check their version; affected versions are not specified.