Skip to contentSkip to conversation

CVE-2026-98913: net: thunderx: fix PTP device ref leak in nicvf_probe()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-98913 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.1.189 with commit 3a2eedb172e777f2c8608395eec42250fb355dae
	Fixed in 6.6.158 with commit c8bc44a1d86d5b432ec7f5a6f30b4e719a047374
	Fixed in 6.12.111 with commit df3d586ecc580623edadec71a6ffdf4c79e2a8e8
	Fixed in 6.18.53 with commit 916d74343cd60ef7c3d433bd417d26ba31642c09
	Fixed in 7.2 with commit 2bcf59eefb9f00a2b1d426b639ee49c305a80695

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98913

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/cavium/thunder/nicvf_main.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/3a2eedb172e777f2c8608395eec42250fb355dae
	https://git.kernel.org/stable/c/c8bc44a1d86d5b432ec7f5a6f30b4e719a047374
	https://git.kernel.org/stable/c/df3d586ecc580623edadec71a6ffdf4c79e2a8e8
	https://git.kernel.org/stable/c/916d74343cd60ef7c3d433bd417d26ba31642c09
	https://git.kernel.org/stable/c/2bcf59eefb9f00a2b1d426b639ee49c305a80695