{"affected":[{"defaultStatus":"unaffected","ecosystem":"https://gitlab.freedesktop.org/wlroots/wlroots","product":"wlroots","source":"CNA: VulnCheck","vendor":"wlroots","versions":[{"lessThan":"0.20.2","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-121604","cwes":["CWE-125"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":4.8,"severity":"medium","source":"CNA: VulnCheck","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","version":"4.0"},{"score":3.3,"severity":"low","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},{"score":4.8,"severity":"medium","source":"NVD: disclosure@vulncheck.com","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"score":3.3,"severity":"low","source":"NVD: disclosure@vulncheck.com","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}],"modifiedAt":1793726291737,"publishedAt":1793723215569,"references":[{"source":"CNA: VulnCheck","tags":["issue-tracking"],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/4092"},{"source":"CNA: VulnCheck","tags":["issue-tracking"],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5374"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009cb5a53a"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e5829812dc"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.20.2"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.20.1/xwayland/xwm.c#L661-L678"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/wlroots-before-0.20.2-out-of-bounds-read-via-read-surface-class-in-xwm-c"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.20.1/xwayland/xwm.c#L661-L678"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e5829812dc"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009cb5a53a"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5374"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.20.2"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/4092"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://www.vulncheck.com/advisories/wlroots-before-0.20.2-out-of-bounds-read-via-read-surface-class-in-xwm-c"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009cb5a53a"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e5829812dc"}],"revision":"342c24bbcdd3f7aca1213637f94dcd0a2365fd07349f7087188c8a442dcab874","sources":[{"modifiedAt":1793723215569,"name":"CNA: VulnCheck","retrievedAt":1793725927103,"url":"https://www.cve.org/CVERecord?id=CVE-2026-121604"},{"modifiedAt":1793726291737,"name":"NVD","retrievedAt":1793730114414,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121604"}],"ssvc":null,"status":"published","title":"wlroots before 0.20.2 Out-of-Bounds Read via read_surface_class() in xwm.c","updatedAt":1793730114414}