# CVE-2026-139344: macsec: prevent AES-GCM nonce reuse after packet number wrap

- Severity: not scored yet
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:53.650Z
- Modified: 2026-11-30T14:18:59.500Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from c09440f7dcb304002dfced8c0fea289eb25f2da0 before 83edde471129ab3f0bbff4b2470d3066e2c7e111; from c09440f7dcb304002dfced8c0fea289eb25f2da0 before 39f656dcdb08dc5463e90b67ee30d2f7b41a933b; from c09440f7dcb304002dfced8c0fea289eb25f2da0 before a371e502e5a07cb049499be1e43b865ed3ba4eb1; from c09440f7dcb304002dfced8c0fea289eb25f2da0 before 54ac400341e33bd8c79840595e0185eb17a422bc; from c09440f7dcb304002dfced8c0fea289eb25f2da0 before cf3da25ead14590771ea151dde9b7c4ae112bb48; from c09440f7dcb304002dfced8c0fea289eb25f2da0 before 8366ca908e5f2aa2e283fae5f0512a788cf1b4c8; from c09440f7dcb304002dfced8c0fea289eb25f2da0 before 504eaccdb56f267d7e087b653b1fb0e075f9b4c9; from c09440f7dcb304002dfced8c0fea289eb25f2da0 before 94d51c59f0a872c57cb8daa1964ec033d77a79fb; 4.6 (not affected: before 4.6; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/83edde471129ab3f0bbff4b2470d3066e2c7e111>
- <https://git.kernel.org/stable/c/39f656dcdb08dc5463e90b67ee30d2f7b41a933b>
- <https://git.kernel.org/stable/c/a371e502e5a07cb049499be1e43b865ed3ba4eb1>
- <https://git.kernel.org/stable/c/54ac400341e33bd8c79840595e0185eb17a422bc>
- <https://git.kernel.org/stable/c/cf3da25ead14590771ea151dde9b7c4ae112bb48>
- <https://git.kernel.org/stable/c/8366ca908e5f2aa2e283fae5f0512a788cf1b4c8>
- <https://git.kernel.org/stable/c/504eaccdb56f267d7e087b653b1fb0e075f9b4c9>
- <https://git.kernel.org/stable/c/94d51c59f0a872c57cb8daa1964ec033d77a79fb>

## Sources

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

---

Page: https://cve.day/CVE-2026-139344 · Whole record: https://cve.day/CVE-2026-139344.json · Rebuilt by cve.day 2026-11-30T14:32:56.885Z
