Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B240629A9E4 for ; Thu, 3 Jul 2025 08:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531870; cv=none; b=qOcVqQ9o0N7eV0/ftqJ3gAXb1bYrbDIud7CoM53pgiPtbnIdQ55eRUja9ilixFsAR+RTajPTDpUzRDBFYiFch1EKuWqd5eHiK6e9AhMTWtwLby8y0V9cgT/vBj/1B4lbB0VrUu3619hR4JS4rfUUDXhFT9xwHzX4WHkwKAcMWok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531870; c=relaxed/simple; bh=xN3ruoZ3NHeh7zCvAj3yqNM2FQeEGQfMawA3m6yoSP8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TGg299qkCV0FzbPQycBm15E+Iq+5Ixtdmvq3+bk3P33HwYHEm47LQP+mbaOsBlYjraU11rx6cQD/254dPQpiUHnD6xUrQ8AoxP7fm5frMFYWphpJKmiABE1duNdqIdafjwgFDgwsB0m0SpN1wLlACbOPn4da0z4s7etzTY7R7MU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mod7IYmE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mod7IYmE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D28D4C4CEE3; Thu, 3 Jul 2025 08:37:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531870; bh=xN3ruoZ3NHeh7zCvAj3yqNM2FQeEGQfMawA3m6yoSP8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mod7IYmE+jBi9CzaAiRdtLGUa/LA3FY39jD3JdIcVSfH0cL02svhZjzsCZ0V35DlM ifCtDGZX9KMxYDJj7Ug9+mwjr3LuhoNGbZ3f+9fZs7I69seAgPvgWnU9xor0pvRQLT HBP4DLjuzwAB0MHw/J0DsPbvRpc6h28BtxgarKxU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38148: net: phy: mscc: Fix memory leak when using one step timestamping Date: Thu, 3 Jul 2025 10:36:05 +0200 Message-ID: <2025070336-CVE-2025-38148-76a4@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2862; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+yoe5x00C5jT9W0YxM/kWlSOkZ3P2z1g9/3TNXcsp7U=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDjf2359160FjUPGsjZtE9kikLE9Qsg34sTU5a9/zy ufdrQJGHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/z8Z5vvn7fBv2L/7Csuh y37N+jP/GVzldmBYMLd+mt92vskds2vrmLb+TGfNDYmwBwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: phy: mscc: Fix memory leak when using one step timestamping Fix memory leak when running one-step timestamping. When running one-step sync timestamping, the HW is configured to insert the TX time into the frame, so there is no reason to keep the skb anymore. As in this case the HW will never generate an interrupt to say that the frame was timestamped, then the frame will never released. Fix this by freeing the frame in case of one-step timestamping. The Linux kernel CVE team has assigned CVE-2025-38148 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 7d272e63e0979d38a6256108adbe462d621c26c5 and fixed in 6.1.142 with commit db2a12ddd3a31f668137ff6a4befc1343c79cbc4 Issue introduced in 5.9 with commit 7d272e63e0979d38a6256108adbe462d621c26c5 and fixed in 6.6.94 with commit 0b40aeaf83ca04d4c9801e235b7533400c8b5f17 Issue introduced in 5.9 with commit 7d272e63e0979d38a6256108adbe462d621c26c5 and fixed in 6.12.34 with commit 66abe22017522dd56b820e41ca3a5b131a637001 Issue introduced in 5.9 with commit 7d272e63e0979d38a6256108adbe462d621c26c5 and fixed in 6.15.3 with commit cdbabd316c5a4a9b0fda6aafe491e2db17fbb95d Issue introduced in 5.9 with commit 7d272e63e0979d38a6256108adbe462d621c26c5 and fixed in 6.16-rc1 with commit 846992645b25ec4253167e3f931e4597eb84af56 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-38148 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/phy/mscc/mscc_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/db2a12ddd3a31f668137ff6a4befc1343c79cbc4 https://git.kernel.org/stable/c/0b40aeaf83ca04d4c9801e235b7533400c8b5f17 https://git.kernel.org/stable/c/66abe22017522dd56b820e41ca3a5b131a637001 https://git.kernel.org/stable/c/cdbabd316c5a4a9b0fda6aafe491e2db17fbb95d https://git.kernel.org/stable/c/846992645b25ec4253167e3f931e4597eb84af56