CVE-2021-47147·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 5.12.9
- Published
- 2024-03-25
Affected versions
From: 5.11
Until: 5.12.9
Fixed in: 5.12.9
How to fix this CVE
Update your Linux kernel to version 5.12.9 or later to patch a resource leak in the PTP OCP driver's error handling path. This vulnerability can lead to denial of service if memory-mapped I/O resources fail to release properly during device initialization errors. Apply the kernel update through your distribution's package manager and reboot to activate the fix.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the current kernel version; versions 5.11.x through 5.12.8 are vulnerable
- Verify if ptp_ocp driver is loaded: lsmod | grep ptp_ocp
- Check kernel logs for PTP OCP initialization errors: sudo journalctl -k | grep -i 'ptp\|ocp'
- Confirm patch applied by verifying kernel version is 5.12.9 or later with 'uname -r' after reboot
FAQ
What is CVE-2021-47147?
CVE-2021-47147 is a resource leak vulnerability in the Linux kernel's PTP OCP (Precision Time Protocol Oscillator Clock for PCI) driver where allocated I/O memory fails to be properly released if an error occurs during device initialization, potentially exhausting kernel memory resources.
Is CVE-2021-47147 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available.
What versions of Kernel are affected by CVE-2021-47147?
Linux kernel versions 5.11 through 5.12.8 are vulnerable; the fix is available in 5.12.9 and later.
How do I check if my server is vulnerable to CVE-2021-47147?
Run 'uname -r' and check if the output shows a kernel version between 5.11.0 and 5.12.8; also verify the ptp_ocp driver is present with 'lsmod | grep ptp_ocp'.
Does Defensia detect CVE-2021-47147?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47147 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47147. Free for 1 server.
Get started free