CVE-2026-121604wlroots before 0.20.2 Out-of-Bounds Read via read_surface_class() in xwm.c
wlroots before 0.20.2 contains an out-of-bounds read vulnerability in read_surface_class() in xwayland/xwm.c that allows local X11 clients to leak compositor heap memory. Attackers can set a WM_CLASS property with a NUL-terminated instance but unterminated class, exposing over-read heap bytes as the window class or app_id over IPC.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | wlroots | Fix pending | UBUNTU-CVE-2026-121604 | |
| Ubuntu 26.04 | wlroots | Under investigation | UBUNTU-CVE-2026-121604 | |
| Ubuntu 24.04 | wlroots | Under investigation | UBUNTU-CVE-2026-121604 | |
| Ubuntu 22.04 | wlroots | Under investigation | UBUNTU-CVE-2026-121604 | |
| Ubuntu 20.04 | wlroots | Fix pending | UBUNTU-CVE-2026-121604 | |
| Debian 14 | wlroots | Fixed | 0.20.2-1 | DEBIAN-CVE-2026-121604 |
| Debian 13 | wlroots | Fix pending | DEBIAN-CVE-2026-121604 | |
| Debian 12 | wlroots | Fix pending | DEBIAN-CVE-2026-121604 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- wlroots: affected: before 0.20.2; fixed in
0.20.2
Vendor advisories:
- https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009… (patch)
- https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e58… (patch)
- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.20.2 (release-notes)
References
- https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/4092
- https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5374
- https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009cb5a53a
- https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e5829812dc
- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.20.2
- https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.20.1/xwayland/xwm.c#L661-L678
- https://www.vulncheck.com/advisories/wlroots-before-0.20.2-out-of-bounds-read-via-read-surface-class-in-xwm-c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.