CVE-2021-47147
JSON

6.2medium

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

Severity
6.2medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.11 before 5.12.9, 5.13NVD

All scores

CISA-ADP6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

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: 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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ptp: ocp: corrige una fuga de recursos en una ruta de manejo de errores. Si se produce un error después de una llamada exitosa a 'pci_ioremap_bar()', se debe deshacer mediante el correspondiente 'pci_iounmap()' 'llamar, como ya se hizo en la función de eliminación.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47147 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47147 changed 2026-06-17Public domain