[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025111255-CVE-2025-40175-9dd0@gregkh>
Date: Wed, 12 Nov 2025 05:53:58 -0500
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-40175: idpf: cleanup remaining SKBs in PTP flows
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists