Linux kernel resource leak in ThunderX PTP probe failures
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: thunderx: fix PTP device ref leak in nicvf_probe()
cavium_ptp_get() acquires a reference to the PTP PCI device through pci_get_device(). If any initialization step fails after cavium_ptp_get(), the PTP PCI device reference is leaked. Add a common error path to release the PTP reference before returning from probe failures.
From the CVE record · Linux
The Linux kernel's thunderx network driver can leak a reference to a PTP PCI device if initialization fails after cavium_ptp_get() during nicvf_probe(). The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the thunderx network driver should check whether their kernel includes the fix; affected versions are not specified.