{"id":"UBUNTU-CVE-2026-121604","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-05T11:46:32.353762196Z","published":"2026-11-03T17:18:00Z","upstream":["CVE-2026-121604"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-121604"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-121604"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.20.1/xwayland/xwm.c#L661-L678"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4412992469540b1d578cb94a5cd4e6e5829812dc"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/851cdd0089004884bd85a95ad21f04009cb5a53a"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5374"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.20.2"},{"type":"REPORT","url":"https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/4092"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/wlroots-before-0.20.2-out-of-bounds-read-via-read-surface-class-in-xwm-c"}],"affected":[{"package":{"name":"wlroots","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/wlroots?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.0-2","0.10.0-1","0.10.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.0-2","binary_name":"libwlroots-examples"},{"binary_version":"0.10.0-2","binary_name":"libwlroots5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-121604.json"}},{"package":{"name":"wlroots","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/wlroots?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.12.0-2ubuntu1","0.14.1-5","0.15.1-1","0.15.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libwlroots-examples","binary_version":"0.15.1-2"},{"binary_name":"libwlroots10","binary_version":"0.15.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-121604.json"}},{"package":{"name":"wlroots","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/wlroots?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.16.2-3","0.17.1-2","0.17.1-2.1","0.17.1-2.1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libwlroots-examples","binary_version":"0.17.1-2.1build1"},{"binary_name":"libwlroots12t64","binary_version":"0.17.1-2.1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-121604.json"}},{"package":{"name":"wlroots","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/wlroots?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.19.2-1","0.19.3-1","0.20.1-1","0.20.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libwlroots-0.20","binary_version":"0.20.2-1"},{"binary_version":"0.20.2-1","binary_name":"libwlroots-0.20-examples"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-121604.json"}},{"package":{"name":"wlroots","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/wlroots?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.18.2-3","0.19.1-1build1","0.19.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.19.2-1","binary_name":"libwlroots-0.19"},{"binary_name":"libwlroots-0.19-examples","binary_version":"0.19.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-121604.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"},{"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"},{"type":"Ubuntu","score":"medium"}]}