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 F03EB39FCCA for ; Sun, 19 Jul 2026 14:59:36 +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=1784473178; cv=none; b=qv6tiQc4GcMu3zaTZSFkPzm5YnkFg1OaJfCmcO6AmxuN2z/GxEXMg9C5w/rqMWrJbzd7UvaczlrCSuFBqLiiWsiWsdjYQ488C8H+uIKipuUnPboYl4uf/Cw6qjxwdekll4YcSNyc5qRaQ0RuP3OflKD5pAz0qTdXFe+K2zY2KtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473178; c=relaxed/simple; bh=/YSiTiK85/jL3VVBhMvuLr7MPDFo0vAYKUhDPWFq99w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SjmQMyKLK6dqeWGupVonoPkUQig+BuUfEooBLHrHL7WZamvcA6lm1zE/76toezhibTvGDiE2zKZlxXH/IWSkORVci3xkr36lsz430HbMmjzN59bsvafpuXK8B3BfiiN4spEo1AJUPBhHKL/FV/7RzByIEvfvzN90LRVtOtCBO5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LPU4yaYG; 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="LPU4yaYG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59D251F000E9; Sun, 19 Jul 2026 14:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473176; bh=E8VeeLTxjDb432B+5GHMWSfjqZnRdSDIrdIFCRxSs9A=; h=From:To:Cc:Subject:Date:Reply-To; b=LPU4yaYGV2aFtFe88dhsr2pt4lrASP+E8kriv/lyzHqfSRCmjkdlcEiNk3ENjzZHe uWELwjYJoA6V7HNlIAKHFir4g8Ruya9ah/qoYu4XCo6AeeUcnTsGnj64QfT35r5+lZ AeQnhkQkK64yJ41RQHWDgvmHh8WxpwJbDQ3fiEcA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63925: macsec: fix replay protection at XPN lower-PN wrap Date: Sun, 19 Jul 2026 16:56:25 +0200 Message-ID: <2026071949-CVE-2026-63925-2f73@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=3751; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kY1Cw6AjNjzYIxLppDX7dgb4h0dfDar0WqIN1hFHkPA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT0urNk5M4N/o1HRH5VDYGun5T5bYK7OrMHD3xXbOt mPdfOduRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE2J5hvqerVf8agf/SX39b fQladftnxonY9wwLLpZ4GJyrsZnx1PxkaEai0cJHt6IWAwA= 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: macsec: fix replay protection at XPN lower-PN wrap In macsec_post_decrypt(), when pn is U32_MAX, pn + 1 overflows u32 to 0 and the first branch never fires. If next_pn_halves.lower is also in the upper half, pn_same_half(pn, lower) is true and the XPN else-if does not fire either, leaving next_pn_halves unchanged. An attacker that captures the legitimate frame carrying pn == 0xFFFFFFFF on an XPN association can then replay it indefinitely, since lowest_pn never rises above the captured pn and macsec_decrypt() reconstructs the same IV. Extend the XPN else-if to also fire when pn + 1 wraps to 0, so receipt of pn == U32_MAX advances next_pn_halves to (upper + 1, 0). The Linux kernel CVE team has assigned CVE-2026-63925 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 5.10.259 with commit dd7306779c6ce1238f4cdc34f3c1f2246b854457 Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 5.15.210 with commit d15130461df388136b62a7b0ce9f66e7e2fa9ff1 Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 6.1.176 with commit 23c0e230eab397d7f68be2538790ac41d3bb91fd Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 6.6.143 with commit 679e13a65e68a67c8b3c0467c02ee89157ec6f0f Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 6.12.93 with commit 79495a1b0944fe31ffd54b54b00211b493590d62 Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 6.18.35 with commit 6d00f5c7e5ff7ec4795b7f5f8ed88bd346641652 Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 7.0.12 with commit d55acbe577db892b60547b6ef1c020b359331a6d Issue introduced in 5.7 with commit a21ecf0e033807b976967286e6c392f48ee2049f and fixed in 7.1 with commit e68842b3356471ba56c882209f324613dac47f64 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-63925 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/macsec.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/dd7306779c6ce1238f4cdc34f3c1f2246b854457 https://git.kernel.org/stable/c/d15130461df388136b62a7b0ce9f66e7e2fa9ff1 https://git.kernel.org/stable/c/23c0e230eab397d7f68be2538790ac41d3bb91fd https://git.kernel.org/stable/c/679e13a65e68a67c8b3c0467c02ee89157ec6f0f https://git.kernel.org/stable/c/79495a1b0944fe31ffd54b54b00211b493590d62 https://git.kernel.org/stable/c/6d00f5c7e5ff7ec4795b7f5f8ed88bd346641652 https://git.kernel.org/stable/c/d55acbe577db892b60547b6ef1c020b359331a6d https://git.kernel.org/stable/c/e68842b3356471ba56c882209f324613dac47f64