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

Published Nov 30, 2026
·
Updated

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 nextpn 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 nextpn 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 nextpn at 0 after wrap, even if the SA is reactivated, so further packet number allocations return 0 and the corresponding packets are dropped.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Keep next_pn at 0 after packet-number wrap, even if the transmit SA is reactivated, so packet-number allocations do not reuse nonce value 1.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using Linux kernel MACsec transmission security associations are exposed when a transmit SA reaches packet-number wrap. The race concerns TX packets that had already passed the SA activity check when the SA is deactivated.

2

What condition is required for nonce reuse to occur?

The transmit SA must allocate its last valid 32-bit or 64-bit packet number, then in-flight TX processing must continue through deactivation. After the first post-wrap packet is dropped at packet number 0, the vulnerable behavior can allow a subsequent packet to receive packet number 1 and reuse its AES-GCM nonce.

3

Can reactivating a transmit SA create the problem?

Yes. Reactivating an SA after packet-number wrap without a packet number can also permit nonce reuse under the vulnerable behavior.

4

How does the fix prevent exploitation after packet-number wrap?

The fix keeps next_pn at 0 after wrap, including if the SA is reactivated. Any further packet-number allocations therefore return 0 and the associated packets are dropped.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203