wlroots before 0.20.2 Out-of-Bounds Read via read_surface_class() in xwm.c
- State
- Published
- Severity
- 4.8 Medium
- Published
- Nov 3, 2026
- Updated
- Nov 7, 2026
- Reserved
- Nov 3, 2026
Description
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.
| Product | Versions |
|---|---|
| wlroots wlroots | before 0.20.2 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | VulnCheck | |
| 3.1 | 3.3 Low | VulnCheck |
Weaknesses
- CWE-125 Out-of-bounds Read
References
- https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/4092Issue Tracker
- https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5374Issue Tracker
- https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009cb5a53aPatch
- https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e5829812dcPatch
- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.20.2Release Notes
- https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.20.1/xwayland/xwm.c#L661-L678Technical Details
- VulnCheck Advisory: wlroots before 0.20.2 Out-of-Bounds Read via read_surface_class() in xwm.cThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.