CVE-2026-98913: net: thunderx: fix PTP device ref leak in nicvf_probe()
In the Linux kernel, the following vulnerability has been resolved:
net: thunderx: fix PTP device ref leak in nicvfprobe()
caviumptpget() acquires a reference to the PTP PCI device through pcigetdevice(). If any initialization step fails after caviumptpget(), the PTP PCI device reference is leaked. Add a common error path to release the PTP reference before returning from probe failures.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Operational
In net: thunderx nicvf_probe(), add a common error path that releases the PTP PCI device reference acquired by cavium_ptp_get() through pci_get_device() before returning when any initialization step fails.