Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4DE2033B6DA for ; Fri, 25 Sep 2026 10:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332227; cv=none; b=RgVxDYNCW07uyrU7sYd0zFHYLSa8P0CvxDqbbmvWzBOoOdhDbIrtK0l/SvPForQeYd7BJ1GQGjqUus04FOd0lrto9vMi2VjWG7vbkDhb36C4kElGtioal4fWDfxj+pGJGNE8Bfj2RXAUSq/oypyW7ICOXDu0ASiTx3IoQepthBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332227; c=relaxed/simple; bh=h1fO68BTekIT2CcB4PciMLUBVbDQWAgrB/gHfAy2Kns=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J/YoE2Vw6FimCUr2bxpXVkdxRoY/JbwxTNg57ApH4QLzs6wSp8trCSBFIOxuVtM90T7KNV1O2D9mpOsXXOpp50WWaKwnW2RMDAKcWuSZbleG3BBIymWUDi4X2GmfEPDTyBVhEsxDnYgRRMOoD7eBuzjIh7WLYtbPUVfTKjV12Bw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NSTtQE5h; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NSTtQE5h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7EA31F000FF; Fri, 25 Sep 2026 10:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332226; bh=Y/DugydvMl9YuLkIzERl50sHzxQU6Eab0V2/lJTPvgc=; h=From:To:Cc:Subject:Date:Reply-To; b=NSTtQE5h63qMpnIVzhVjcK5lPzF9JLKB7q/RWqlf/gsEk7NSFeZm3LDvFr8VqnfBO OzrHkhhZFknvHTn9d511bRiFMX+UOKF+535WloFCRIgjUkmuSnQX2dATv3ItUpvAHQ zfmI/xjqDXWNoxL2RFglx7OM+uKW5zh5Qot0wzCk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97963: net: stmmac: initialize ptp_lock at probe time Date: Fri, 25 Sep 2026 12:24:26 +0200 Message-ID: <2026092516-CVE-2026-97963-cf01@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2852; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FJNSrkGBHwgZx0VIXLFXWHPiP30iM+BPwrc9H1Myly8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvCOmVx0vODDn8E+ex/KXp3M4/WXoOxu+k2Oj+A72i Q2fD1kFdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEdhYyzNNz13Yr6HlgGp+4 dvP38CvHFUraCxkW7Ogw9bVvCym1/xf70btzz+5TrEq6AA== 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: initialize ptp_lock at probe time priv->ptp_lock is only initialized in stmmac_ptp_register(), which runs during __stmmac_open(). However, the lock is also used while the interface is down and has never been opened: tc_taprio_configure() invokes the PTP gettime64() callback to compute the EST base time when offloading a TAPRIO schedule, and stmmac_get_time() takes priv->ptp_lock. Using an uninitialized rwlock is undefined behaviour. Move the rwlock_init() to __stmmac_dvr_probe(), together with the other private locks, so that ptp_lock is always valid regardless of the interface state. The Linux kernel CVE team has assigned CVE-2026-97963 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit b60189e0392fa06348911077ef281eb2b1047b6a and fixed in 6.12.111 with commit 420315413b29635de1d4ea4142e410e6465260f3 Issue introduced in 5.6 with commit b60189e0392fa06348911077ef281eb2b1047b6a and fixed in 6.18.53 with commit 25cc0096efba83b4e0e6fa50f03e9543b41e9d3d Issue introduced in 5.6 with commit b60189e0392fa06348911077ef281eb2b1047b6a and fixed in 7.2.7 with commit b1986595cf827c38ff929e22fbc9ca8f76379306 Issue introduced in 5.6 with commit b60189e0392fa06348911077ef281eb2b1047b6a and fixed in 7.3-rc3 with commit 0338c68e22abd2ee509ec2e32508a50896618c32 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-97963 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_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_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/420315413b29635de1d4ea4142e410e6465260f3 https://git.kernel.org/stable/c/25cc0096efba83b4e0e6fa50f03e9543b41e9d3d https://git.kernel.org/stable/c/b1986595cf827c38ff929e22fbc9ca8f76379306 https://git.kernel.org/stable/c/0338c68e22abd2ee509ec2e32508a50896618c32