CVE-2026-139344
macsec: prevent AES-GCM nonce reuse after packet number wrap
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.
INFO
Published Date :
Nov. 30, 2026, 2:18 p.m.
Last Modified :
Nov. 30, 2026, 2:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to resolve the issue.
- Ensure packet number remains zero after wrap.
- Prevent nonce reuse by dropping packets with number zero.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-139344.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-139344 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-139344
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-139344 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139344 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139344.json">CVE-2026-139344</a> Added Reference https://git.kernel.org/stable/c/39f656dcdb08dc5463e90b67ee30d2f7b41a933b Added Reference https://git.kernel.org/stable/c/504eaccdb56f267d7e087b653b1fb0e075f9b4c9 Added Reference https://git.kernel.org/stable/c/54ac400341e33bd8c79840595e0185eb17a422bc Added Reference https://git.kernel.org/stable/c/8366ca908e5f2aa2e283fae5f0512a788cf1b4c8 Added Reference https://git.kernel.org/stable/c/83edde471129ab3f0bbff4b2470d3066e2c7e111 Added Reference https://git.kernel.org/stable/c/94d51c59f0a872c57cb8daa1964ec033d77a79fb Added Reference https://git.kernel.org/stable/c/a371e502e5a07cb049499be1e43b865ed3ba4eb1 Added Reference https://git.kernel.org/stable/c/cf3da25ead14590771ea151dde9b7c4ae112bb48