Microsoft Published a Linux Kernel CVE. Is Your WSL2 Fleet Actually at Risk?

When Microsoft publishes a Linux kernel vulnerability, everyone assumes WSL2 is exposed. The real risk is the kernel nobody's tracking, the one your distro package manager was never designed to update.

Microsoft Published a Linux Kernel CVE. Is Your WSL2 Fleet Actually at Risk?

Microsoft issuing a CVE for the Linux kernel feels like a category error, like your plumber filing a warranty claim on your neighbour’s roof. So when CVE-2026-62840, an elevation-of-privilege flaw in the Linux kernel, landed in the MSRC update guide today, the reasonable assumption spread fast: Redmond only bothers when its own ecosystem is in the blast radius, so WSL2, Azure Linux VMs and Defender for Endpoint on Linux must all be exposed on day one.

That assumption is half right. The half that’s wrong is the half that’ll bite you.

Does “Microsoft published it” mean WSL2 ships the vulnerable kernel?

Not automatically, but here’s the detail that makes WSL2 genuinely different from every other Linux box you own. A WSL2 distro does not run Ubuntu’s kernel, or SUSE’s, or Red Hat’s. Every distro on a given Windows host shares one Microsoft-built kernel, the one with -microsoft-standard-WSL2 stapled to the version string. Install Ubuntu, Debian and Kali side by side and they’re all booting the same image.

The consequence: apt full-upgrade inside the distro will never touch the kernel. Your well-instrumented Linux patch pipeline doesn’t just miss it, it was never pointed at it. The WSL2 kernel updates out of band, through Windows, via wsl --update. This is exactly why Microsoft carries the CVE, it’s their kernel to patch, and exactly why thousands of engineering laptops run a kernel nobody is tracking.

What does the advisory actually tell you, and what doesn’t it?

Three fields on the MSRC page do the real work, and you should read them off the live advisory rather than trust a secondhand number, mine included:

  • The fixed build / affected versions. MSRC’s Linux kernel entries typically express exposure as a fixed version or package build rather than a tidy “x through y” range. Your box is vulnerable if its running kernel sits below the fix listed for your platform. Read that value; don’t assume it.
  • The CVSS vector. For triage this matters more than the base score. The thing to confirm is the attack vector: this class of EoP is local (AV:L), an attacker needs code execution on the host before the kernel bug gives them anything. It is not something that’s reachable across the network.
  • The Exploitability Assessment and “Exploited” fields. MSRC assigns these explicitly. Check what they say today, because they change.

One caveat: MSRC’s Linux entries are frequently thin on mechanism. Unlike a kernel.org commit, the advisory may not name the subsystem or the exact bug class. If it does, that’s your attack-vector detail; if it doesn’t, don’t let anyone, vendor or pundit, backfill a use-after-free they can’t substantiate. On exploitation: as of this writing I’ve found nothing indicating in-the-wild use or public exploit code, but read that as my inference from absence, not a quote. The authoritative statement is MSRC’s own exploitability field. Go look at it.

What about Azure VMs and Defender for Linux?

Azure Marketplace Linux VMs run the vendor kernel. Ubuntu, RHEL and SUSE images are exposed on the same terms as any Linux host anywhere: it depends whether your running kernel sits below the fix. Nothing Azure-specific makes them safer or more dangerous. Automatic guest patching, if enabled, pulls packages but won’t reboot into a new kernel on its own.

Defender for Endpoint on Linux is the one people misfile here. It’s a userland agent, not the thing being escalated, just a thing running on a host that might be. Keep it current, but don’t mistake agent hygiene for kernel hygiene.

How do I see where I actually stand, today?

On Windows endpoints, enumerate WSL and its kernel. Report only, no judgement calls baked in, because the authoritative threshold lives on the advisory:

audit.ps1PowerShell
# Dry-run enumeration. Compare 'Kernel' against the fixed build on the CVE-2026-62840 advisory.
wsl --version                      # shows the WSL2 kernel build Microsoft ships
wsl --list --verbose
​
foreach ($d in (wsl --list --quiet | Where-Object { $_.Trim() })) {
    $k = (wsl -d $d.Trim() -- uname -r) 2>$null
    [pscustomobject]@{ Host = $env:COMPUTERNAME; Distro = $d.Trim(); Kernel = $k }
}
# Expect every distro to report the SAME kernel, that's the shared WSL2 image.

For fleet scale, push that as an Intune proactive remediation or collect wsl --version into Defender advanced hunting via a scheduled task, WSL kernels don’t surface cleanly in the TVM software inventory, so you have to go and fetch them.

On Azure VMs and Linux servers, a report-only one-liner that also tells you which patch path you’re on:

run.shbash, zsh
r=$(uname -r); echo "kernel: $r"
case "$r" in
  *microsoft-standard-WSL2*) echo "WSL2 kernel -> patch on the Windows host with 'wsl --update', NOT apt/dnf" ;;
  *) echo "host distro kernel -> package manager update + reboot" ;;
esac

So, drop everything, or not?

It’s a local EoP, so your real triage axis is who already has unprivileged access to the box. My call: this week for any multi-tenant Linux host, CI runner, or Azure VM that executes untrusted or semi-trusted code, that’s where a local escalation completes the chain. Next cycle for single-user WSL2 dev laptops, where the attacker needs a foothold you’d already be in trouble over. If MSRC’s exploitability field flips to exploited, move both to immediate.

Patch path: wsl --update then wsl --shutdown to actually load the new kernel on Windows; a dnf/apt kernel update plus a reboot on real hosts (livepatch rarely covers EoP fixes). Can’t reboot yet? Restrict who can open a shell.

The headline says check today. The honest version: check the one kernel your pipeline has been quietly ignoring for two years.