# CVE-2021-47051: spi: fsl-lpspi: Fix PM reference leak in lpspi_prepare_xfer_hardware()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:53.461Z
- Modified: 2026-06-17T04:16:18.990Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## References

- <https://git.kernel.org/stable/c/4a01ad002d2e03c399af536562693752af7c81b1> (patch)
- <https://git.kernel.org/stable/c/ce02e58ddf8658a4c3bed2296f32a5873b3f7cce> (patch)
- <https://git.kernel.org/stable/c/b8207bfc539cd07d15e753ff2d179c5b61c673b1> (patch)
- <https://git.kernel.org/stable/c/6a2b5cee0d31ab6cc51030c441135b0e31217282> (patch)
- <https://git.kernel.org/stable/c/a03675497970a93fcf25d81d9d92a59c2d7377a7> (patch)

## Sources

- CVE List: [CVE-2021-47051](https://www.cve.org/CVERecord?id=CVE-2021-47051), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47051](https://nvd.nist.gov/vuln/detail/CVE-2021-47051), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47051 · Whole record: https://cve.day/CVE-2021-47051.json · Rebuilt by cve.day 2026-11-25T22:58:08.635Z
