7.7

CVE-2026-99059

wireguard: noise: reject response consumption after intermediate initiation

In the Linux kernel, the following vulnerability has been resolved:

wireguard: noise: reject response consumption after intermediate initiation

Two threads begin processing the identical response message, received
twice. The first thread, A, runs. While it's running, the second one,
B, gets partway through, and during that slow calculation, or even while
blocking on down_write(), A completes and then also a handshake
initiation that's already been queued up runs in thread C, which itself
takes that same down_write(). The handshake initiation creation
succeeds, and sets the state back to waiting-for-response, and calls
up_write(), at which point thread B resumes, because either its finished
its calculations or was finally allowed to acquire down_write(). Thread
B then copies the state back to the peer, and begins a new session,
using that state, which is the same session as the one made in thread A.

Thread A			Thread B			Thread C

down_read()
 sA = handshake->state
 memcpy(cA, handshake->crypto)
up_read()
if (sA != 1)
 goto fail
slow_crypto(cA)
				down_read()
				 sB = handshake->state
				 memcpy(cB, handshake->crypto)
				up_read()
				if (sB != 1)
				 goto fail
				slow_crypto(cB)
down_write()
 if (sA != handshake->state)
  goto fail
 memcpy(handshake->crypto, cA)
 handshake->state = 2
up_write()
down_write()
 if (handshake->state != 2)
  goto fail
 derive_session(handshake->crypto)
up_write()
								down_write()
								 slow_crypto(handshake->crypto)
								 handshake->state = 1
								up_write()
				down_write()
				 if (sB != handshake->state)
				   goto fail
				 memcpy(handshake->crypto, cB)
				 handshake->state = 2
				up_write()
				down_write()
				 if (handshake->state != 2)
				  goto fail
				 derive_session(handshake->crypto)
				up_write()

This seems basically impossible to hit in a meaningful way in practice,
but ensure that it absolutely cannot happen by comparing the ephemeral
private key that's on the stack with the latest one that the peer's
handshake state has.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < dbd1e21f4301bd2157cd771255f1ca6ba1c8a1f9
Status affected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < f4012ec25a4abb6a23dc40043f61e2d9a7deca6d
Status affected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < 6b5b14cb5421e84191e3f6b5a7566783a402ff7f
Status affected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < fb5ce4c7790c3eeec820302d08d70ecf46af4295
Status affected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < c76a80db593096edf2b3b3972f58b6342a8c6c04
Status affected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < 4d64a3d6e96aa78619c9c29ffde309794974588a
Status affected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < 3bec3d32c2a3afd164fc87f95457df2cf9049c20
Status affected
Version e7096c131e5161fa3b8e52a650d7719d2857adfd
Version < d0305f8d90029556260c6824b61c493c424eba9e
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 5.6
Status affected
Version 0
Version < 5.6
Status unaffected
Version <= 5.10.*
Version 5.10.273
Status unaffected
Version <= 5.15.*
Version 5.15.224
Status unaffected
Version <= 6.1.*
Version 6.1.191
Status unaffected
Version <= 6.6.*
Version 6.6.160
Status unaffected
Version <= 6.12.*
Version 6.12.113
Status unaffected
Version <= 6.18.*
Version 6.18.57
Status unaffected
Version <= 7.2.*
Version 7.2.11
Status unaffected
Version <= *
Version 7.3
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.44% 0.384
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
416baaa9-dc9f-4396-8d5f-8c081fb06d67 7.7 2.2 5.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/fb5ce4c7790c3eeec820302d08d70ecf46af4295
https://git.kernel.org/stable/c/c76a80db593096edf2b3b3972f58b6342a8c6c04
https://git.kernel.org/stable/c/4d64a3d6e96aa78619c9c29ffde309794974588a
https://git.kernel.org/stable/c/3bec3d32c2a3afd164fc87f95457df2cf9049c20
https://git.kernel.org/stable/c/d0305f8d90029556260c6824b61c493c424eba9e
https://git.kernel.org/stable/c/6b5b14cb5421e84191e3f6b5a7566783a402ff7f
https://git.kernel.org/stable/c/dbd1e21f4301bd2157cd771255f1ca6ba1c8a1f9
https://git.kernel.org/stable/c/f4012ec25a4abb6a23dc40043f61e2d9a7deca6d