Skip to contentSkip to conversation

CVE-2025-40175: idpf: cleanup remaining SKBs in PTP flows

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 12, 2025

lore
Share & tools
lore
#0 lore raw

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

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

In the Linux kernel, the following vulnerability has been resolved:

idpf: cleanup remaining SKBs in PTP flows

When the driver requests Tx timestamp value, one of the first steps is to clone SKB using skb_get. It increases the reference counter for that SKB to prevent unexpected freeing by another component. However, there may be a case where the index is requested, SKB is assigned and never consumed by PTP flows - for example due to reset during running PTP apps.

Add a check in release timestamping function to verify if the SKB assigned to Tx timestamp latch was freed, and release remaining SKBs.

The Linux kernel CVE team has assigned CVE-2025-40175 to this issue.

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

	Issue introduced in 6.16 with commit 4901e83a94ef0a8baf27916f31daf59b0a68547f and fixed in 6.17.5 with commit 2c84e91ef831d4fedb0b94670b3cfd1cc5f966a5
	Issue introduced in 6.16 with commit 4901e83a94ef0a8baf27916f31daf59b0a68547f and fixed in 6.18-rc2 with commit a3f8c0a273120fd2638f03403e786c3de2382e72

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-2025-40175

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/intel/idpf/idpf_ptp.c drivers/net/ethernet/intel/idpf/idpf_virtchnl_ptp.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/2c84e91ef831d4fedb0b94670b3cfd1cc5f966a5
	https://git.kernel.org/stable/c/a3f8c0a273120fd2638f03403e786c3de2382e72