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 14373298CC0 for ; Thu, 3 Jul 2025 08:36:42 +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=1751531803; cv=none; b=PCmL3fN6RUof2ZRkjfAprzyke7r4Y0SS/3LgCiUTSZxdi3T7EMeT4JxbPR4ZEScU1aD1W2+l6dY4uM9Q1+Y/i9zmino2VeWkWwdfwwECYq9ju/Qq9/dOCjtHJ89KGIH1d2UPBIKVaYYIJZLobLyYhkx+QzV7JW2C8hzZ4vUXfhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531803; c=relaxed/simple; bh=VNV0dPMq3GwRAUnB3iqPIZtDzVizErkZz3/nSW9EPWg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SKd4R1JRAAEr64AxX3xc7P2wBN1RwDxLwRNF1R8+/w8kKi44mIUHTy6f52mA5F7gZ0FiAaBnpJ6hMxAK+q4TbS6Z+GIyNME6vgSiLEiBr4Lhykb+cE8ZJsovX649PtRNa02U47coyZLorjv7x9+Og0Tf9pqyM/WxIdIoooYKwxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TCAgaUoi; 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="TCAgaUoi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2343FC4CEED; Thu, 3 Jul 2025 08:36:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531802; bh=VNV0dPMq3GwRAUnB3iqPIZtDzVizErkZz3/nSW9EPWg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TCAgaUoidhUDg6l4ZlKWIuiPveG6J2LEUYm1mG59H0BCNwwO5e/vNaj8yUxbLZwoj Pm8ynwG4dc+pwGUENuG1tojdBM3nskR4Ldt9OH0doeXfz66e3+kN6X/7a6OuwPaOV0 /oY2IznXh3lpxaEsLYbQGu22vGpLJsJ2YnMb2/HQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38125: net: stmmac: make sure that ptp_rate is not 0 before configuring EST Date: Thu, 3 Jul 2025 10:35:42 +0200 Message-ID: <2025070328-CVE-2025-38125-8a6b@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=2272; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W1av3JfOY6cUDUikkots0Z0BGk19w+ypw7YHTlz9BOs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDhcMHs6RWizLs/HT1QWRF3T/b/nwQCDbaM8jad2zX X/zY9dN6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfNZgmCvot+MCx1WhnXnn IpWelE1fsZ3hwnOGBevPz1l87PX+wpR68dtTtkSftCv+dwUA 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: stmmac: make sure that ptp_rate is not 0 before configuring EST If the ptp_rate recorded earlier in the driver happens to be 0, this bogus value will propagate up to EST configuration, where it will trigger a division by 0. Prevent this division by 0 by adding the corresponding check and error code. The Linux kernel CVE team has assigned CVE-2025-38125 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 8572aec3d0dc43045254fd1bf581fb980bfdbc4b and fixed in 6.12.34 with commit 451ee661d0f6272017fa012f99617101aa8ddf2c Issue introduced in 5.6 with commit 8572aec3d0dc43045254fd1bf581fb980bfdbc4b and fixed in 6.15.3 with commit d5e3bfdba0dc419499b801937128957f77503761 Issue introduced in 5.6 with commit 8572aec3d0dc43045254fd1bf581fb980bfdbc4b and fixed in 6.16-rc1 with commit cbefe2ffa7784525ec5d008ba87c7add19ec631a 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-38125 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/stmicro/stmmac/stmmac_est.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/451ee661d0f6272017fa012f99617101aa8ddf2c https://git.kernel.org/stable/c/d5e3bfdba0dc419499b801937128957f77503761 https://git.kernel.org/stable/c/cbefe2ffa7784525ec5d008ba87c7add19ec631a