{"id":"CVE-2026-121604","summary":"wlroots before 0.20.2 Out-of-Bounds Read via read_surface_class() in xwm.c","details":"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.","modified":"2026-11-14T07:06:13.591493731Z","published":"2026-11-03T16:26:55.569Z","database_specific":{"cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121604.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121604.json"},{"type":"ADVISORY","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.20.2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121604"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/wlroots-before-0.20.2-out-of-bounds-read-via-read-surface-class-in-xwm-c"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5374"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/4092"},{"type":"FIX","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e5829812dc"},{"type":"FIX","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009cb5a53a"},{"type":"PACKAGE","url":"https://gitlab.freedesktop.org/wlroots/wlroots"},{"type":"ARTICLE","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.20.1/xwayland/xwm.c#L661-L678"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.freedesktop.org/wlroots/wlroots","events":[{"introduced":"0"},{"fixed":"d783533489e1f75d6886c2ab5c5960090ef268f8"},{"fixed":"851cdd0089004884bd85a95ad21f04009cb5a53a"},{"fixed":"4412992469540b1d578cb94a5cd4e6e5829812dc"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"0.20.2"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"851cdd0089004884bd85a95ad21f04009cb5a53a"}]},{"range":[{"fixed":"4412992469540b1d578cb94a5cd4e6e5829812dc"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["0.20.1","0.20.0","0.20.0-rc5","0.20.0-rc4","0.20.0-rc3","0.20.0-rc2","0.20.0-rc1","0.19.0","0.19.0-rc3","0.19.0-rc2","0.19.0-rc1","0.18.0","0.17.0","0.16.0","0.15.0","0.14.0","0.13.0","0.12.0","0.11.0","0.10.0","0.9.1","0.9.0","0.8.1","0.7.0","0.6.0","0.5.0","0.4.1","0.4","0.3","0.2","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-121604.json","vanir_signatures":[{"signature_version":"v1","source":"https://gitlab.freedesktop.org/wlroots/wlroots@4412992469540b1d578cb94a5cd4e6e5829812dc","target":{"file":"xwayland/xwm.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["33591527742049177550308522088868292213","299829167429567366116850151840340605150","48329830653853686833554571968714802641","143491741022881487762931105390156671783"]},"id":"CVE-2026-121604-3a81f755","signature_type":"Line"},{"digest":{"function_hash":"188286763670694404415103131977815355784","length":765},"id":"CVE-2026-121604-439d966a","signature_type":"Function","signature_version":"v1","source":"https://gitlab.freedesktop.org/wlroots/wlroots@4412992469540b1d578cb94a5cd4e6e5829812dc","target":{"file":"xwayland/xwm.c","function":"read_surface_class"},"deprecated":false},{"id":"CVE-2026-121604-4757b513","signature_type":"Line","signature_version":"v1","source":"https://gitlab.freedesktop.org/wlroots/wlroots@851cdd0089004884bd85a95ad21f04009cb5a53a","target":{"file":"xwayland/xwm.c"},"deprecated":false,"digest":{"line_hashes":["33591527742049177550308522088868292213","299829167429567366116850151840340605150","48329830653853686833554571968714802641","143491741022881487762931105390156671783"],"threshold":0.9}},{"id":"CVE-2026-121604-d3b09acb","signature_type":"Function","signature_version":"v1","source":"https://gitlab.freedesktop.org/wlroots/wlroots@851cdd0089004884bd85a95ad21f04009cb5a53a","target":{"file":"xwayland/xwm.c","function":"read_surface_class"},"deprecated":false,"digest":{"length":765,"function_hash":"188286763670694404415103131977815355784"}}],"vanir_signatures_modified":"2026-11-14T07:06:13Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}