5.5medium
spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 944c01a889d97dc08e1b71f4ed868f4023fd6034 before 4a01ad002d2e03c399af536562693752af7c81b1, from 944c01a889d97dc08e1b71f4ed868f4023fd6034 before ce02e58ddf8658a4c3bed2296f32a5873b3f7cce, from 944c01a889d97dc08e1b71f4ed868f4023fd6034 before b8207bfc539cd07d15e753ff2d179c5b61c673b1, from 944c01a889d97dc08e1b71f4ed868f4023fd6034 before 6a2b5cee0d31ab6cc51030c441135b0e31217282, from 944c01a889d97dc08e1b71f4ed868f4023fd6034 before a03675497970a93fcf25d81d9d92a59c2d7377a7, 5.2 Not affected: before 5.2, from 5.4.119 up to 5.4.*, from 5.10.37 up to 5.10.*, from 5.11.21 up to 5.11.*, from 5.12.4 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | from 5.2 before 5.4.119, from 5.5 before 5.10.37, from 5.11 before 5.11.21, from 5.12 before 5.12.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: spi: fsl-lpspi: corrige la fuga de referencia de PM en lpspi_prepare_xfer_hardware() pm_runtime_get_sync incrementará el contador de uso de PM incluso si falla. Olvidarse de poner en funcionamiento resultará en una fuga de referencia aquí. Solucionelo reemplazándolo con pm_runtime_resume_and_get para mantener el contador de uso equilibrado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47051 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47051 changed 2026-06-17 | Public domain |