Swarm's encrypted overlay can fall back to plaintext: how to check your nodes and patch Docker 29.9.3

Swarm's encrypted overlay can fall back to plaintext: how to check your nodes and patch Docker 29.9.3

A firewalld reload can silently remove the iptables rules that keep Swarm's encrypted overlay networks encrypted (CVE-2026-115538). Who is affected, the commands to check a node, the fix in Docker Engine 29.9.3 and the workarounds until you can upgrade.

if.codesNov 30, 2026 · 7 min readAI-assisted

If you run Docker Swarm with --opt encrypted overlay networks on hosts that also run firewalld, a routine firewall-cmd --reload can leave those networks sending traffic in cleartext, with nothing in the logs. The moby project published this on 10 November 2026 as GHSA-6jhp-7446-hf7f (CVE-2026-115538), rated High with a CVSS v4 score of 7.0. It is fixed in Docker Engine 29.9.3.

This post walks through what breaks, how to tell in a few minutes whether a node is exposed, and what to do before and after the upgrade. Everything about the bug comes from the advisory. The check commands are ours: the advisory lists conditions, not commands, so treat them as a starting point and confirm on your own hosts.

What actually breaks

An encrypted overlay network wraps its VXLAN traffic (UDP port 4789 by default) in IPsec ESP. According to the advisory, that protection depends on two iptables rules that dockerd installs when the first local endpoint of the network is set up:

  • a rule in the mangle OUTPUT chain that marks outgoing VXLAN datagrams carrying the network's ID (VNI). Datagrams that are not marked leave the host in cleartext;
  • a rule at the top of the filter INPUT chain that drops incoming VXLAN datagrams for that VNI unless they arrived over IPsec.

When firewalld is running, dockerd listens for firewalld's reload and start signals and re-creates its other rules (port publishing, bridge networks) afterwards. The overlay driver was never part of that handling, so these two encryption rules were the ones left out. The advisory lists three triggers:

  • firewall-cmd --reload or firewall-cmd --complete-reload, including when a configuration-management tool runs it for you;
  • stopping firewalld with CleanupOnExit=yes, which is the default;
  • starting firewalld: a restart, a package upgrade, or firewalld coming up after dockerd.

Two things make this worse than an ordinary misconfiguration. First, dockerd does not log the loss. Second, the state persists until the network's last local endpoint is removed and a new one is added, or until dockerd restarts. The services keep working, which is exactly why nobody notices.

The impact, per the advisory: VXLAN traffic of an "encrypted" network is readable by anyone on the path between nodes, and a node accepts cleartext VXLAN tagged with that network's VNI, so someone who can send UDP to port 4789 can inject frames into the overlay.

Are you affected? Three conditions

A node is affected only when all of these hold:

  1. It is a Swarm member with at least one task or container attached to an encrypted overlay network.
  2. It runs Docker Engine older than 29.9.3.
  3. firewalld is running and is set up so that it deletes other applications' iptables rules. That means either FirewallBackend=iptables (any firewalld version), or FirewallBackend=nftables (which the advisory calls the default) combined with an older firewalld or with any direct configuration.

Read "is running" generously. Stopping firewalld is itself one of the triggers, so a node where firewalld ran at some point since dockerd last started, and is stopped now, can be in the broken state already.

For the nftables backend, "older" means firewalld without an upstream fix that shipped in firewalld 2.0.0 and was backported to firewalld-1.2.5-1.el9 and firewalld-0.9.11-9.el8. The advisory names Debian 12 (firewalld 1.3.3) and Ubuntu 22.04 (1.1.1) as affected. "Direct configuration" means rules added with --direct --add-rule, --add-chain, --add-passthrough or a direct.xml file. The advisory adds that the FlushAllOnReload setting makes no difference.

firewalld not installed at all (plain ufw, nftables or raw iptables)? Then this advisory's trigger does not apply to you. Upgrade anyway on your normal schedule.

Check a node in five minutes

Run these on every Swarm node. First the engine version and Swarm state:

docker version --format '{{.Server.Version}}'
docker info --format '{{.Swarm.LocalNodeState}}'

Anything below 29.9.3 on a node that prints active needs the next steps. List the overlay networks with their options:

docker network ls -q --filter driver=overlay | xargs -r docker network inspect --format '{{.Name}}: {{json .Options}}'

The xargs -r makes the command print nothing, instead of an error, on a node with no overlay networks. A network created with --opt encrypted shows an encrypted key in its options. If none of your networks has it, you never had overlay encryption and this bug changes nothing for you (whether you should have it is a separate question).

Now firewalld: is it running, which version, which backend, and is there any direct configuration?

systemctl is-active firewalld
firewall-cmd --version
grep -E 'FirewallBackend|CleanupOnExit' /etc/firewalld/firewalld.conf
sudo firewall-cmd --direct --get-all-rules
sudo firewall-cmd --direct --get-all-chains
sudo firewall-cmd --direct --get-all-passthroughs

The grep shows commented lines too. A setting that is commented out or missing means firewalld uses its built-in default for that version; man firewalld.conf on the host tells you what that is.

On RHEL-family hosts firewall-cmd --version is not enough, because the fix was backported without changing the upstream version number. Ask the package manager and compare with the fixed builds named in the advisory (firewalld-1.2.5-1.el9, firewalld-0.9.11-9.el8):

rpm -q firewalld

Compare the output with condition 3 above. A node is outside the advisory's affected set when firewalld uses the nftables backend, is at 2.0.0 or newer (or at one of those backported builds or later), and all three --direct commands print nothing.

An inactive firewalld does not clear the node by itself. If firewalld was stopped after dockerd started, the stop may already have removed the rules (CleanupOnExit=yes is the default), and they stay gone. Run the leak check in the next section, and restart dockerd if the rules are missing.

Is a node leaking right now?

The advisory gives no detection command, so this is our own check, based on its description of the two rules. On a node that currently runs a task on an encrypted network, look for the VXLAN rules:

sudo iptables -t mangle -S OUTPUT | grep 4789
sudo iptables -S INPUT | grep 4789

On a healthy node we expect at least one line from each command per encrypted network. Two empty results on a node that has an encrypted network with a running task suggest the rules are gone. Run the same pair on a freshly restarted node first, so you know what "present" looks like on your distribution.

You can also watch the wire. Replace the interface and address with the node's own:

sudo tcpdump -ni eth0 -c 20 'src host 10.0.0.11 and udp dst port 4789'

Outgoing traffic of an encrypted overlay should leave as ESP, not as UDP to port 4789. Packets here while only encrypted networks are busy mean cleartext is leaving the host. Two cautions: unencrypted overlay networks (including Swarm's default ingress) legitimately produce such packets, and you should filter on outgoing traffic only, because Linux shows incoming IPsec packets a second time after decryption.

Need the backend underneath done properly?I build and harden Go and Python backends. The estimate is free.

Fix: upgrade to 29.9.3

A visual metaphor for a patched and stabilized system.
A visual metaphor for a patched and stabilized system.

The advisory lists Docker Engine 29.9.3 as the patched version (and v2.0.0-beta.29 for the github.com/moby/moby/v2 Go module). On a Debian or Ubuntu host that uses Docker's apt repository, one node at a time:

docker node update --availability drain node-1
sudo apt-get update
sudo apt-get install --only-upgrade docker-ce docker-ce-cli
docker version --format '{{.Server.Version}}'
docker node update --availability active node-1

Run the two docker node update commands on a manager and the rest on the node being upgraded. Installing the package restarts dockerd, which per the advisory is one of the two ways the lost rules come back. Do not take that on trust: repeat the two iptables checks from the previous section after every restart, especially if you run with live-restore enabled, where containers keep running across a daemon restart. If the version check runs before the daemon is back up, wait a few seconds and repeat it. If you install Docker from your distribution's own packages, check that the fixed version has reached its repository before you count the node as done.

One Swarm detail: setting a node back to active does not move tasks back onto it. If you want the load spread again after the last node is done, force a rolling update of the services that matter:

docker service update --force my-service

If you cannot upgrade today

The advisory offers three workarounds:

  • Use FirewallBackend=nftables with firewalld 2.0.0 or newer (or the RHEL backports above) and remove all firewalld direct configuration.
  • Restart dockerd after every firewalld reload, stop or start. This also restarts the node's Swarm tasks, so drain first on anything that matters.
  • Close UDP port 4789 at your Internet boundary. This blocks injection from outside but, as the advisory says, does nothing for confidentiality between nodes.

For the second one, stop running a bare reload on Swarm nodes and use the pair instead:

sudo firewall-cmd --reload && sudo systemctl restart docker

Check your Ansible roles, cloud-init snippets and package hooks too: any of them may reload firewalld without you typing it.

A routine to keep after patching

  • Record the engine version of every node after each upgrade: docker node ls --format '{{.Hostname}} {{.EngineVersion}}' on a manager shows them in one go.
  • After any firewall change on a node, repeat the two iptables checks above. It takes ten seconds and tells you whether the rules survived.
  • Do not treat overlay encryption as your only layer. Keep port 4789 closed to the Internet, and use TLS inside the overlay for anything sensitive.

The short version: if you use firewalld and encrypted overlays together, upgrade to 29.9.3, and until then assume that every firewalld reload switched the encryption off.

Sources

if.codesI build RAG, AI integrations and agent pipelines on Go and Python backends — and write about it here.
// keep reading

More posts on AI and backends.

// free quote

Read something you need? I’ll quote it for free.

RAG, AI integrations, agents or the backend underneath — tell me what you have and what should change. I read every request myself.

Free · no commitment

Tell me what you have. I’ll tell you what it takes.

1Describe the projectA few sentences is enough — about two minutes.
2I review itI read it myself and may ask a follow-up question.
3You get a free quoteScope, approach and estimate — yours to keep, no strings.
What kind of project is it?
Free and without obligation. Your details are used only to reply — see the privacy policy.