#Docker#Security#WSL#DevOps#Developer Tooling

Docker Desktop 4.98+ and the WSL 2 AF_VSOCK Bypass: Why Updating Docker Alone Is Not Enough

webhani·

Most vulnerability fixes follow one rule: update the product. The Docker Desktop fix for CVE-2026-112917 does not. According to the vulnerability databases and Docker Desktop release notes we checked, the issue is fixed only when two components are both new enough: Docker Desktop 4.98.0 or later, and WSL 3.0.3 or later. A machine on Docker Desktop 4.98.0 with an older WSL is reported to remain affected.

That is easy to miss, because the two components update through different channels and are often owned by different people.

A note on sources: the details below come from the Docker Desktop release notes as mirrored by an aggregator, plus CVE tracker pages. We could not read the 4.98 notes directly, and the aggregator attributes the fix to the 4.99.0 entry. Confirm the exact version boundaries against Docker's own release notes and security announcements before you write them into a policy.

What the vulnerability is

CVE-2026-112917 is described as a container on the WSL 2 backend being able to bypass the AF_VSOCK restriction. It is classified as "Improper Protection of Alternate Path", not as a memory-safety bug.

AF_VSOCK is a socket family for communication between a virtual machine and its host. On Windows with the WSL 2 backend, Docker Desktop runs containers inside a lightweight VM, and vsock is one of the channels connecting that VM to the host side. Docker restricts what containers can do with it. A bypass means a container could reach a channel it was intended not to reach, which weakens the isolation between a container and the developer's host environment.

We are describing the mechanism at the level the public sources support. We do not have exploit details, and for a defensive post we do not need them.

Who is exposed: developers on Windows using the WSL 2 backend. If your team runs Docker Desktop on macOS or on Linux hosts, this specific issue is not your concern, though the other fixes in the same releases may be.

Other fixes in the same releases

The same release notes list several other items worth knowing about:

  • A fix for CVE-2026-98432, a use-after-free in the Linux kernel's IPv4 TCP handling. The sources describe this as a separate fix from the vsock issue.
  • Docker Desktop 4.99.0 changed the Windows installer launcher so that update failures report a specific reason instead of a bare exit code. That helps if you manage rollout through scripts and have been debugging opaque failures.
  • Earlier in the 4.96.x line, a security fix removed trust for certificates issued by a compromised intermediate CA.

If your developers have been postponing Docker Desktop updates, the cumulative list is a stronger argument than any single CVE.

Auditing the pair on Windows

You need both versions. On a developer machine, from PowerShell:

# WSL version information
wsl --version
 
# Docker Desktop version
docker version --format '{{.Client.Version}}'
Get-Item "C:\Program Files\Docker\Docker\Docker Desktop.exe" |
  Select-Object -ExpandProperty VersionInfo |
  Select-Object ProductVersion

The docker version client value is the Docker Engine client version, not the Docker Desktop version, so use the executable's product version (or the Desktop "About" dialog) for the Desktop number. Compare against 4.98.0 and 3.0.3.

For a fleet, a small script that emits one line per machine is enough to find stragglers:

$wsl = (wsl --version | Select-String 'WSL version').ToString().Split(':')[1].Trim()
$dd  = (Get-Item "C:\Program Files\Docker\Docker\Docker Desktop.exe").VersionInfo.ProductVersion
 
[pscustomobject]@{
  Host          = $env:COMPUTERNAME
  WslVersion    = $wsl
  DockerDesktop = $dd
  WslOk         = ([version]$wsl -ge [version]'3.0.3')
  DockerOk      = ([version]$dd  -ge [version]'4.98.0')
} | ConvertTo-Json -Compress

The wsl --version output format can differ between releases and locales, so treat the parsing above as a starting point and test it on a few machines. Feed the output to whatever inventory you already have: an MDM, a log pipeline, or a spreadsheet for a small team.

Where WSL updates come from

The WSL component is the part teams forget. Depending on how it was installed, it updates through the Microsoft Store, through wsl --update, or through Windows Update, and managed environments may restrict some of those paths. In an organization that locks down the Store, developers can sit on an old WSL indefinitely while Docker Desktop updates normally through its own channel.

If that describes your environment, decide who owns WSL versions. Our usual recommendation is the same team that owns the Docker Desktop rollout, with a documented path for wsl --update or an internal package. Otherwise, you end up with a dashboard that says "Docker Desktop is current" and a vulnerable pair underneath.

CI runners and self-hosted Windows hosts

Self-hosted Windows runners that use Docker Desktop with the WSL 2 backend have the same exposure, and they usually run untrusted code, since pull requests and dependencies execute there. They are a higher priority than developer laptops. Better yet, ask whether a Windows runner needs Docker Desktop at all. Running Docker Engine directly in a Linux VM or using Linux runners for container workloads removes the Desktop and vsock layer from the equation.

Practical plan

  1. Inventory Windows machines that use Docker Desktop with the WSL 2 backend.
  2. Check both versions against the 4.98.0 / 3.0.3 boundaries, after confirming those numbers in Docker's own notes.
  3. Update Docker Desktop first, then WSL, then restart the Docker Desktop backend and re-check.
  4. Prioritize self-hosted CI runners.
  5. Add the pair to your baseline checks so the next dual-component fix does not slip through.

The lesson that generalizes: when a fix spans two components with separate update channels, the audit has to check both, because one of them will always be the one nobody thinks about.