# CVE-2026-63925: macsec: fix replay protection at XPN lower-PN wrap

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-07-19T14:55:26.442Z
- Modified: 2026-10-27T13:00:07.490Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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).

(As written by CVE List.)

## Affected

- Linux Linux: from a21ecf0e033807b976967286e6c392f48ee2049f before dd7306779c6ce1238f4cdc34f3c1f2246b854457; from a21ecf0e033807b976967286e6c392f48ee2049f before d15130461df388136b62a7b0ce9f66e7e2fa9ff1; from a21ecf0e033807b976967286e6c392f48ee2049f before 23c0e230eab397d7f68be2538790ac41d3bb91fd; from a21ecf0e033807b976967286e6c392f48ee2049f before 679e13a65e68a67c8b3c0467c02ee89157ec6f0f; from a21ecf0e033807b976967286e6c392f48ee2049f before 79495a1b0944fe31ffd54b54b00211b493590d62; from a21ecf0e033807b976967286e6c392f48ee2049f before 6d00f5c7e5ff7ec4795b7f5f8ed88bd346641652; from a21ecf0e033807b976967286e6c392f48ee2049f before d55acbe577db892b60547b6ef1c020b359331a6d; from a21ecf0e033807b976967286e6c392f48ee2049f before e68842b3356471ba56c882209f324613dac47f64; 5.7 (not affected: before 5.7; from 5.10.259 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.93 up to 6.12.*; from 6.18.35 up to 6.18.*; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.7 before 5.10.259; from 5.11 before 5.15.210; from 5.16 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.93; from 6.13 before 6.18.35; from 6.19 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/dd7306779c6ce1238f4cdc34f3c1f2246b854457> (patch)
- <https://git.kernel.org/stable/c/d15130461df388136b62a7b0ce9f66e7e2fa9ff1> (patch)
- <https://git.kernel.org/stable/c/23c0e230eab397d7f68be2538790ac41d3bb91fd> (patch)
- <https://git.kernel.org/stable/c/679e13a65e68a67c8b3c0467c02ee89157ec6f0f> (patch)
- <https://git.kernel.org/stable/c/79495a1b0944fe31ffd54b54b00211b493590d62> (patch)
- <https://git.kernel.org/stable/c/6d00f5c7e5ff7ec4795b7f5f8ed88bd346641652> (patch)
- <https://git.kernel.org/stable/c/d55acbe577db892b60547b6ef1c020b359331a6d> (patch)
- <https://git.kernel.org/stable/c/e68842b3356471ba56c882209f324613dac47f64> (patch)

## Sources

- CVE List: [CVE-2026-63925](https://www.cve.org/CVERecord?id=CVE-2026-63925), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-63925](https://nvd.nist.gov/vuln/detail/CVE-2026-63925), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2026-63925 · Whole record: https://cve.day/CVE-2026-63925.json · Rebuilt by cve.day 2026-11-25T22:59:28.834Z
