CVE-2026-139344

macsec: prevent AES-GCM nonce reuse after packet number wrap

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

macsec: prevent AES-GCM nonce reuse after packet number wrap

After allocating the last valid packet number, MACsec wraps next_pn to
zero and deactivates the transmit SA. This happens for both 32- and
64-bit types of packet numbers (at values 0xffffffff and
0xffffffffffffffff, respectively).

TX packets that were still getting processed during deactivation keep
being processed and then receive packet numbers. The first gets 0 and
is correctly dropped, but next_pn is incremented to 1, which makes the
next packet take number 1. It then does not get dropped and may induce
a reuse of the AES-GCM nonce corresponding to value 1.

This race affects TX packets that have already passed the SA activity
check: packets that observe the inactive SA are correctly dropped.
Reactivating the SA after PN wrap without a packet number can also
cause nonce reuse. Keep next_pn at 0 after wrap, even if the SA is
reactivated, so further packet number allocations return 0 and the
corresponding packets are dropped.

Analysis

AI-generated

Technical impact

A race condition exists in the Linux kernel MACsec subsystem that causes the AES‑GCM nonce to be reused after the packet number counter wraps. When the transmit security association is deactivated and subsequently reactivated while packets are still being processed, the counter resets to zero and then increments to one. A packet that receives number one may not be dropped, thereby reusing the nonce associated with that value. This nonce replay compromises the confidentiality and integrity guarantees of AES‑GCM, potentially allowing an attacker to forge or decrypt traffic on a MACsec link.

Affected Systems

All Linux kernel releases that contain the MACsec code path before the commit that introduced the nonce‑reuse fix are impacted. The patch is included in several kernel commits (39f656dc, 504eaccd, 54ac4003, 8366ca90, 83edde47, 94d51c59, a371e502, cf3da25e). Users should verify whether their running kernel contains these changes; the fix is not isolated to a specific version number, but only to code that had the described race condition.

Risk and Exploitability

None of the publicly published metrics are available, so the CVSS score is not known and the EPSS score is unavailable. The likely attack vector is inferred: an attacker who can generate traffic on the vulnerable MACsec interface or influence its SA state—such as by flooding traffic to force a packet number wrap or by manipulating the SA lifecycle—may trigger the nonce reuse. The vulnerability is not listed in the CISA KEV catalog, suggesting no large‑scale exploitation has been observed. The risk remains uncertain, but the potential impact on cryptographic integrity justifies prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the MACsec patch commits listed above.
  • If an immediate kernel upgrade is not possible, disable MACsec on interfaces that carry security‑critical traffic to eliminate the attack surface.
  • Monitor traffic for abnormal MACsec behavior, such as rapid packet number resets or repeated authentication failures, which may indicate an exploitation attempt.

Generated by OpenCVE AI on December 1, 2026 at 10:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-419
CWE-780
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: macsec: prevent AES-GCM nonce reuse after packet number wrap After allocating the last valid packet number, MACsec wraps next_pn to zero and deactivates the transmit SA. This happens for both 32- and 64-bit types of packet numbers (at values 0xffffffff and 0xffffffffffffffff, respectively). TX packets that were still getting processed during deactivation keep being processed and then receive packet numbers. The first gets 0 and is correctly dropped, but next_pn is incremented to 1, which makes the next packet take number 1. It then does not get dropped and may induce a reuse of the AES-GCM nonce corresponding to value 1. This race affects TX packets that have already passed the SA activity check: packets that observe the inactive SA are correctly dropped. Reactivating the SA after PN wrap without a packet number can also cause nonce reuse. Keep next_pn at 0 after wrap, even if the SA is reactivated, so further packet number allocations return 0 and the corresponding packets are dropped.
Title macsec: prevent AES-GCM nonce reuse after packet number wrap
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-419

    Unprotected Primary Channel

  • CWE-780

    Use of RSA Algorithm without OAEP

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM