Microsoft has confirmed that its Azure Linux distribution includes a recently disclosed Linux kernel bug (CVE-2025-38361) in the AMD GPU display driver, which can be exploited locally to crash the system. But the advisory's careful wording hints that the vulnerable code may lurk in other Microsoft products that use the Linux kernel, such as Windows Subsystem for Linux (WSL) and certain Azure VM kernels, leaving many users uncertain about their exposure.
The vulnerability at a glance
Tracked as CVE-2025-38361, the flaw lives in the AMD DRM display driver (drm/amd/display) inside the Linux kernel. A hardware sequencing pointer—commonly called dcehwseq or hws—lacks a proper null check in some code paths, even though it can be NULL under certain initialization or failure sequences. If an attacker or a malfunctioning program triggers one of those paths, the kernel dereferences a NULL pointer and crashes. The result is a local denial-of-service (DoS): someone with access to the GPU device node /dev/dri can hang or reboot the machine.
The upstream fix, already merged into mainline and stable kernel trees, inserts the missing null check so the pointer is validated before use. Downstream distros—Ubuntu, Debian, Amazon Linux, and others—have published updated kernel packages that include the backport.
Microsoft’s Security Response Center (MSRC) advisory states plainly: “Azure Linux includes this open‑source library and is therefore potentially affected.” That single sentence makes Azure Linux the only Microsoft product explicitly listed as affected. The advisory also notes Microsoft’s commitment to update the CVE if additional impact is discovered later, a process bolstered by machine‑readable CSAF/VEX attestations published since October 2025.
What this means for you
Home users and WSL2 enthusiasts
If you use Windows Subsystem for Linux 2 on Windows 10 or 11, the situation demands a quick check. Microsoft ships a default Linux kernel image with WSL2, and the upstream source tree does contain the vulnerable AMDGPU code. While Microsoft hasn’t issued a separate attestation for that kernel binary, it’s prudent to assume the flaw could be present unless you confirm otherwise.
- Check your kernel version: Run
uname -rinside your WSL distribution. Compare it against the WSL2 kernel releases published on the microsoft/WSL2-Linux-Kernel GitHub repository. If you’re using the default kernel and Windows Update is current, you’re likely already protected, but verification is key. - Custom kernels: If you load a custom kernel via
.wslconfig, ensure it includes the upstream fix. Rebuild or obtain an updated kernel image. - Practical risk: Most home users won’t be directly exposed unless they share their PC, run untrusted code inside WSL, or forward GPU devices into containers. Still, crashes can disrupt development work or cause data loss.
Power users and developers
Developers who run GPU‑accelerated workloads inside WSL2—for instance, machine learning tasks that use AMD GPUs via DRI/DRM—need to be especially cautious. The amdgpu kernel module is often loaded in such scenarios, and an unpatched kernel could be triggered by ordinary application behavior.
- Verify module presence:
lsmod | grep amdgpuwill show whether the module is active. If it is, and your kernel version hasn’t been patched, plan an immediate update. - Docker Desktop users with the WSL2 backend inherit the same kernel, so the same verification steps apply.
IT professionals and cloud administrators
For anyone managing Azure VM fleets, AKS clusters, or on‑premises Linux systems with Microsoft‑provided images, the advisory demands action beyond Azure Linux.
- Azure Linux customers: Apply the patched kernel images referenced in Microsoft’s CSAF/VEX feeds without delay. Those machine‑readable feeds make triage automatable.
- Other Azure VMs and Marketplace images: Even if you’re not running Azure Linux, your guest OS might include the vulnerable driver. Check with your distro vendor (Ubuntu, RHEL, SUSE, etc.) and cross‑reference kernel package changelogs. GPU‑enabled VM SKUs—especially those with passthrough or mediated devices—are most likely to load amdgpu.
- AKS nodes: Update node images to the latest patched versions offered by your chosen Linux distribution.
- Mitigations when patching is delayed: Restrict access to
/dev/drivia group memberships and SELinux/AppArmor policies. Avoid untrusted mounting of device nodes into containers. Limit GPU passthrough for multi‑tenant or CI/CD workloads until patches are applied.
How we got here
The bug is a classic defensive‑coding oversight. In the complex AMD display driver stack, a code path that used the hardware sequencing pointer didn’t check for NULL first. Upstream developers caught it, wrote a small fix, and the patch was merged in the normal kernel development cycle. Because the driver code lives in drivers/gpu/drm/amd, any Linux kernel build with CONFIGDRMAMDGPU enabled—whether compiled by Microsoft, a distro, or an end user—could carry the flaw until updated.
Microsoft’s response came via the MSRC advisory, which deliberately scopes the problem to Azure Linux. That advisory aligns with Microsoft’s phased rollout of CSAF/VEX attestations, which aims to give customers machine‑readable, product‑level vulnerability impact statements. Azure Linux is the first Microsoft product family covered under that initiative. The advisory does not claim that other Microsoft products are free of the bug; it simply confirms what has been inventoried so far.
What to do now
1. Patch Azure Linux immediately
If you run Azure Linux images in any capacity, follow Microsoft’s remediation guidance without delay. Ingest the CSAF/VEX feeds to automate your vulnerability management pipeline and confirm which kernel packages contain the fix.
2. Audit every Microsoft‑supplied Linux kernel artifact you run
Don’t assume safety based on the advisory’s limited scope. Run the following checks on each host or VM:
# Identify kernel version
uname -rCheck if the AMDGPU driver is loaded
lsmod | grep amdgpuLook for GPU device nodes
ls /dev/dri /sys/class/drmInspect kernel config (if /proc/config.gz exists)
zgrep CONFIGDRM_AMDGPU /proc/config.gz
Compare your kernel version and configuration against your distribution’s security tracker. For Microsoft‑specific artifacts (WSL2 kernel, linux‑azure kernels), monitor Microsoft’s GitHub repositories and advisory feeds.
3. Update WSL2 kernels
- Default kernel: Windows Update typically delivers the latest WSL2 kernel. Run
wsl --shutdownand thenwsl --updateto force a check. - Custom kernel: Update the image referenced in
%UserProfile%\.wslconfigto one built from a patched source tree.
4. Harden systems that cannot be patched immediately
If a kernel update isn’t feasible right now:
- Restrict
/dev/driaccess to a trusted group. - Enforce strict container isolation—do not expose host device nodes to untrusted workloads.
- Monitor kernel logs for
amdgpu‑related oopses or stack traces. These may indicate exploitation attempts or simple instability that a patch would fix.
Outlook
Microsoft’s transparency with CSAF/VEX for Azure Linux is a welcome step, but it also highlights a gap: many other Microsoft‑shipped Linux artifacts remain without explicit attestations. As Microsoft continues to integrate Linux into Azure and Windows—through WSL, Azure Kubernetes Service, and custom VM images—incidents like this will become more common. The operational takeaway is clear: a single product‑scoped advisory is not a blanket guarantee. For the foreseeable future, mixing Microsoft‑provided Linux binaries with upstream kernel vulnerabilities demands per‑artifact verification. Start that habit now, and you’ll be better prepared for the next kernel CVE, whether it hits Azure Linux, WSL, or the next Microsoft‑backed Linux offering.