Vulnerability GHSA-6m9p-4h64-m6vh
Summary
Moby allows unprivileged local users to inject frames into encrypted Swarm overlay networks
Details
The firewall rules which mark VXLAN datagrams for encryption indiscriminately match both authentic VXLAN datagrams sent from the kernel and forged datagrams sent by user processes. Any packet sent from the host network namespace of a Linux Swarm node is encrypted with the overlay-network IPsec parameters which meets the following criteria:
- UDP datagram
- Destination port is the Swarm data-path port
- Datagram starts with a VXLAN header for the VNI of an encrypted overlay network which any running container on the node is connected to
Impact
An unprivileged user on a Linux Swarm node can trivially inject forged Ethernet frames into an encrypted overlay network on another Linux Swarm node.
Patches
The issue is fixed in Docker Engine v29.8.2. Users should upgrade to v29.8.2 or later.
Workarounds
Block userspace processes from sending UDP packets to the Swarm data-path port.
iptables -I OUTPUT -p udp --dport "$(docker info --format '{{.Swarm.Cluster.DataPathPort}}')" -m owner --socket-exists -j DROP
Related Vulnerabilities
Other vulnerabilities affecting the same packages