FreeBSD
Missing MAC validation in wg(4) packet decryption
After dispatching a decrypt operation to OCF and receiving the result, the wg(4) driver failed to check whether the MAC verification step succeeded. The driver thus silently accepted packets with an invalid Poly1305 authentication tag. A remote attacker who can send UDP packets to a WireGuard endpoint, and who can guess the bounds of the receiver's replay window, can inject forged or modified transport data packets into the tunnel. A remote attacker who can intercept WireGuard packets bound for a FreeBSD host can modify the ciphertext and authenticated data without detection by the receiver.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 15.1-RELEASE, < p2
- >= 15.0-RELEASE, < p12
- >= 14.4-RELEASE, < p8
Fixed in p2, p12, p8
Mitigation
Upgrade FreeBSD to p2 or p12 or p8 or later.
References
- Vendor advisory security.freebsd.org/advisories/FreeBSD-SA-26:52.if_wg.a…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.