# CVE-2021-47147: ptp: ocp: Fix a resource leak in an error handling path

- Severity: Medium 6.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-03-25T09:07:43.750Z
- Modified: 2026-06-17T04:16:39.383Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ptp: ocp: Fix a resource leak in an error handling path

If an error occurs after a successful 'pci_ioremap_bar()' call, it must be
undone by a corresponding 'pci_iounmap()' call, as already done in the
remove function.

(As written by CVE List.)

## Affected

- Linux Linux: from a7e1abad13f3f0366ee625831fecda2b603cdc17 before 0e38e702f1152479e6afac34f151dbfd99417f99; from a7e1abad13f3f0366ee625831fecda2b603cdc17 before 9c1bb37f8cad5e2ee1933fa1da9a6baa7876a8e4; 5.11 (not affected: before 5.11; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.11 before 5.12.9; 5.13

## Every score

- CISA-ADP: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0e38e702f1152479e6afac34f151dbfd99417f99> (patch)
- <https://git.kernel.org/stable/c/9c1bb37f8cad5e2ee1933fa1da9a6baa7876a8e4> (patch)

## Sources

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

---

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