{"id":"CVE-2026-139344","aliases":["CVE-2026-139344"],"related":[],"kind":"vulnerability","state":"published","title":"macsec: prevent AES-GCM nonce reuse after packet number wrap","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmacsec: prevent AES-GCM nonce reuse after packet number wrap\n\nAfter allocating the last valid packet number, MACsec wraps next_pn to\nzero and deactivates the transmit SA. This happens for both 32- and\n64-bit types of packet numbers (at values 0xffffffff and\n0xffffffffffffffff, respectively).\n\nTX packets that were still getting processed during deactivation keep\nbeing processed and then receive packet numbers. The first gets 0 and\nis correctly dropped, but next_pn is incremented to 1, which makes the\nnext packet take number 1. It then does not get dropped and may induce\na reuse of the AES-GCM nonce corresponding to value 1.\n\nThis race affects TX packets that have already passed the SA activity\ncheck: packets that observe the inactive SA are correctly dropped.\nReactivating the SA after PN wrap without a packet number can also\ncause nonce reuse. Keep next_pn at 0 after wrap, even if the SA is\nreactivated, so further packet number allocations return 0 and the\ncorresponding packets are dropped.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmacsec: prevent AES-GCM nonce reuse after packet number wrap\n\nAfter allocating the last valid packet number, MACsec wraps next_pn to\nzero and deactivates the transmit SA. This happens for both 32- and\n64-bit types of packet numbers (at values 0xffffffff and\n0xffffffffffffffff, respectively).\n\nTX packets that were still getting processed during deactivation keep\nbeing processed and then receive packet numbers. The first gets 0 and\nis correctly dropped, but next_pn is incremented to 1, which makes the\nnext packet take number 1. It then does not get dropped and may induce\na reuse of the AES-GCM nonce corresponding to value 1.\n\nThis race affects TX packets that have already passed the SA activity\ncheck: packets that observe the inactive SA are correctly dropped.\nReactivating the SA after PN wrap without a packet number can also\ncause nonce reuse. Keep next_pn at 0 after wrap, even if the SA is\nreactivated, so further packet number allocations return 0 and the\ncorresponding packets are dropped.","source":"cvelist"}],"published":"2026-11-30T13:33:53.650Z","modified":"2026-11-30T14:18:59.500Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"83edde471129ab3f0bbff4b2470d3066e2c7e111","status":"affected"},{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"39f656dcdb08dc5463e90b67ee30d2f7b41a933b","status":"affected"},{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"a371e502e5a07cb049499be1e43b865ed3ba4eb1","status":"affected"},{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"54ac400341e33bd8c79840595e0185eb17a422bc","status":"affected"},{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"cf3da25ead14590771ea151dde9b7c4ae112bb48","status":"affected"},{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"8366ca908e5f2aa2e283fae5f0512a788cf1b4c8","status":"affected"},{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"504eaccdb56f267d7e087b653b1fb0e075f9b4c9","status":"affected"},{"type":"git","introduced":"c09440f7dcb304002dfced8c0fea289eb25f2da0","fixed":"94d51c59f0a872c57cb8daa1964ec033d77a79fb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/83edde471129ab3f0bbff4b2470d3066e2c7e111","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39f656dcdb08dc5463e90b67ee30d2f7b41a933b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a371e502e5a07cb049499be1e43b865ed3ba4eb1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54ac400341e33bd8c79840595e0185eb17a422bc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf3da25ead14590771ea151dde9b7c4ae112bb48","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8366ca908e5f2aa2e283fae5f0512a788cf1b4c8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/504eaccdb56f267d7e087b653b1fb0e075f9b4c9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94d51c59f0a872c57cb8daa1964ec033d77a79fb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139344","url":"https://www.cve.org/CVERecord?id=CVE-2026-139344","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:53.650Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139344","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139344","licence":"Public domain","modified":"2026-11-30T14:18:59.500Z"}],"updatedAt":"2026-11-30T14:32:56.885Z","epss":{"score":0.0022,"percentile":0.13274,"date":"2026-12-01T12:00:22.000Z"}}