CVE-2026-121604

wlroots before 0.20.2 Out-of-Bounds Read via read_surface_class() in xwm.c

Published Nov 3, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

wlroots versions prior to 0.20.2 include an out‑of‑bounds read in the read_surface_class() routine of Xwayland/xwm.c. The flaw allows a local X11 client to craft a WM_CLASS property where the instance field is NUL‑terminated but the class field lacks termination, causing the compositor to over‑read its heap and expose internal memory contents through IPC as the window class or application ID. The result is a local information‑disclosure vulnerability that can leak arbitrary heap data to a malicious client.

Affected Systems

The issue affects the open‑source compositor library wlroots, specifically all releases earlier than 0.20.2. Systems that run wlroots as part of their display server stack and allow local X11 applications to connect are impacted. The exact versions are not listed, but any build based on older source code prior to the 0.20.2 release is considered vulnerable.

Risk and Exploitability

The CVSS score of 4.8 reflects a moderate severity local flaw. Leveraging the vulnerability requires the attacker to run a local X11 client and manipulate the WM_CLASS property, a scenario typical of a compromised or malicious application on the same user session. EPSS data is not available, and the flaw is not cataloged in the CISA KEV list, indicating a lower probability of widespread exploitation in the wild at present. Nonetheless, any local process with X11 capabilities can trigger the over‑read and exfiltrate data, emphasizing the need for patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade wlroots to version 0.20.2 or later to apply the patched read_surface_class() implementation. This eliminates the heap over‑read path.
  • Recompile dependent projects, such as Wayland compositors or window managers, against the updated wlroots library to ensure the fix is linked into the runtime environment.
  • If an immediate upgrade is not possible, restrict untrusted local X11 clients by disabling Xwayland for those processes, or implement policy that validates WM_CLASS properties before forwarding to the compositor.

Generated by OpenCVE AI on November 3, 2026 at 17:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wlroots
Wlroots wlroots
Vendors & Products Wlroots
Wlroots wlroots
Type Values Removed Values Added
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.
Title wlroots before 0.20.2 Out-of-Bounds Read via read_surface_class() in xwm.c
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 7, 2026, 3:14 AM
Reserved
Nov 3, 2026, 4:19 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 5:18 PM
Modified
Nov 12, 2026, 9:30 PM