{"id":"UBUNTU-CVE-2023-0494","details":"A vulnerability was found in X.Org. This issue occurs due to a dangling pointer in DeepCopyPointerClasses that can be exploited by ProcXkbSetDeviceInfo() and ProcXkbGetDeviceInfo() to read and write into freed memory. This can lead to local privilege elevation on systems where the X server runs privileged and remote code execution for ssh X forwarding sessions.","modified":"2026-04-22T16:31:14.502236Z","published":"2023-02-07T01:00:00Z","related":["USN-5778-2","USN-5846-1"],"upstream":["CVE-2023-0494"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-0494"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5846-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5778-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-0494"}],"affected":[{"package":{"name":"xorg-server","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/xorg-server@2:1.15.1-0ubuntu2.11+esm7?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.15.1-0ubuntu2.11+esm7"}]}],"versions":["2:1.14.3-3ubuntu2","2:1.14.3-3ubuntu3","2:1.14.3-3ubuntu4","2:1.14.3-5ubuntu1","2:1.14.4-1ubuntu1","2:1.14.4-1ubuntu2","2:1.14.4.901-0ubuntu2","2:1.14.5-1ubuntu2","2:1.14.5-1ubuntu4","2:1.15.0-1ubuntu1","2:1.15.0-1ubuntu2","2:1.15.0-1ubuntu3","2:1.15.0-1ubuntu4","2:1.15.0-1ubuntu6","2:1.15.0-1ubuntu7","2:1.15.1-0ubuntu1","2:1.15.1-0ubuntu2","2:1.15.1-0ubuntu2.1","2:1.15.1-0ubuntu2.4","2:1.15.1-0ubuntu2.5","2:1.15.1-0ubuntu2.6","2:1.15.1-0ubuntu2.7","2:1.15.1-0ubuntu2.9","2:1.15.1-0ubuntu2.10","2:1.15.1-0ubuntu2.11","2:1.15.1-0ubuntu2.11+esm2","2:1.15.1-0ubuntu2.11+esm3","2:1.15.1-0ubuntu2.11+esm4","2:1.15.1-0ubuntu2.11+esm5","2:1.15.1-0ubuntu2.11+esm6"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"xdmx","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xdmx-tools","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xnest","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xorg-server-source","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xserver-common","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xserver-xephyr","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xserver-xorg-core","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xserver-xorg-xmir","binary_version":"2:1.15.1-0ubuntu2.11+esm7"},{"binary_name":"xvfb","binary_version":"2:1.15.1-0ubuntu2.11+esm7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}},{"package":{"name":"xorg-server","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/xorg-server@2:1.18.4-0ubuntu0.12+esm5?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.18.4-0ubuntu0.12+esm5"}]}],"versions":["2:1.17.2-1ubuntu9","2:1.17.2-1ubuntu10","2:1.17.3-2ubuntu1","2:1.17.3-2ubuntu2","2:1.17.3-2ubuntu3","2:1.17.3-2ubuntu4","2:1.18.1-1ubuntu3","2:1.18.1-1ubuntu4","2:1.18.3-1ubuntu1","2:1.18.3-1ubuntu2","2:1.18.3-1ubuntu2.2","2:1.18.3-1ubuntu2.3","2:1.18.4-0ubuntu0.1","2:1.18.4-0ubuntu0.2","2:1.18.4-0ubuntu0.3","2:1.18.4-0ubuntu0.4","2:1.18.4-0ubuntu0.6","2:1.18.4-0ubuntu0.7","2:1.18.4-0ubuntu0.8","2:1.18.4-0ubuntu0.9","2:1.18.4-0ubuntu0.10","2:1.18.4-0ubuntu0.11","2:1.18.4-0ubuntu0.12","2:1.18.4-0ubuntu0.12+esm1","2:1.18.4-0ubuntu0.12+esm2","2:1.18.4-0ubuntu0.12+esm4"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"2:1.18.4-0ubuntu0.12+esm5","binary_name":"xdmx"},{"binary_name":"xdmx-tools","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xmir","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xnest","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xorg-server-source","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xserver-common","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xserver-xephyr","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xserver-xorg-core","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xserver-xorg-legacy","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xserver-xorg-xmir","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xvfb","binary_version":"2:1.18.4-0ubuntu0.12+esm5"},{"binary_name":"xwayland","binary_version":"2:1.18.4-0ubuntu0.12+esm5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}},{"package":{"name":"xorg-server-hwe-16.04","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/xorg-server-hwe-16.04@2:1.19.6-1ubuntu4.1~16.04.6+esm4?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"}]}],"versions":["2:1.18.4-1ubuntu6.1~16.04.1","2:1.18.4-1ubuntu6.1~16.04.2","2:1.19.3-1ubuntu1~16.04.2","2:1.19.3-1ubuntu1~16.04.3","2:1.19.3-1ubuntu1~16.04.4","2:1.19.5-0ubuntu2~16.04.1","2:1.19.6-1ubuntu4~16.04.1","2:1.19.6-1ubuntu4.1~16.04.1","2:1.19.6-1ubuntu4.1~16.04.2","2:1.19.6-1ubuntu4.1~16.04.3","2:1.19.6-1ubuntu4.1~16.04.4","2:1.19.6-1ubuntu4.1~16.04.5","2:1.19.6-1ubuntu4.1~16.04.6","2:1.19.6-1ubuntu4.1~16.04.6+esm1","2:1.19.6-1ubuntu4.1~16.04.6+esm3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"xmir-hwe-16.04","binary_version":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"},{"binary_name":"xorg-server-source-hwe-16.04","binary_version":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"},{"binary_name":"xserver-xephyr-hwe-16.04","binary_version":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"},{"binary_name":"xserver-xorg-core-hwe-16.04","binary_version":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"},{"binary_name":"xserver-xorg-dev-hwe-16.04","binary_version":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"},{"binary_name":"xserver-xorg-legacy-hwe-16.04","binary_version":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"},{"binary_name":"xwayland-hwe-16.04","binary_version":"2:1.19.6-1ubuntu4.1~16.04.6+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}},{"package":{"name":"xorg-server","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/xorg-server@2:1.19.6-1ubuntu4.14?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.19.6-1ubuntu4.14"}]}],"versions":["2:1.19.5-0ubuntu2","2:1.19.6-1ubuntu1","2:1.19.6-1ubuntu2","2:1.19.6-1ubuntu3","2:1.19.6-1ubuntu4","2:1.19.6-1ubuntu4.1","2:1.19.6-1ubuntu4.2","2:1.19.6-1ubuntu4.3","2:1.19.6-1ubuntu4.4","2:1.19.6-1ubuntu4.5","2:1.19.6-1ubuntu4.6","2:1.19.6-1ubuntu4.7","2:1.19.6-1ubuntu4.8","2:1.19.6-1ubuntu4.9","2:1.19.6-1ubuntu4.10","2:1.19.6-1ubuntu4.11","2:1.19.6-1ubuntu4.12","2:1.19.6-1ubuntu4.13"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"xdmx","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xdmx-tools","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xmir","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xnest","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_version":"2:1.19.6-1ubuntu4.14","binary_name":"xorg-server-source"},{"binary_name":"xserver-common","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xserver-xephyr","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xserver-xorg-core","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xserver-xorg-legacy","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xserver-xorg-xmir","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xvfb","binary_version":"2:1.19.6-1ubuntu4.14"},{"binary_name":"xwayland","binary_version":"2:1.19.6-1ubuntu4.14"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}},{"package":{"name":"xorg-server-hwe-18.04","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/xorg-server-hwe-18.04@2:1.20.8-2ubuntu2.2~18.04.10?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.20.8-2ubuntu2.2~18.04.10"}]}],"versions":["2:1.20.1-3ubuntu2.1~18.04.1","2:1.20.4-1ubuntu3~18.04.1","2:1.20.5+git20191008-0ubuntu1~18.04.1","2:1.20.8-2ubuntu2.1~18.04.1","2:1.20.8-2ubuntu2.2~18.04.1","2:1.20.8-2ubuntu2.2~18.04.2","2:1.20.8-2ubuntu2.2~18.04.3","2:1.20.8-2ubuntu2.2~18.04.4","2:1.20.8-2ubuntu2.2~18.04.5","2:1.20.8-2ubuntu2.2~18.04.6","2:1.20.8-2ubuntu2.2~18.04.7","2:1.20.8-2ubuntu2.2~18.04.8","2:1.20.8-2ubuntu2.2~18.04.9"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"xorg-server-source-hwe-18.04","binary_version":"2:1.20.8-2ubuntu2.2~18.04.10"},{"binary_name":"xserver-xephyr-hwe-18.04","binary_version":"2:1.20.8-2ubuntu2.2~18.04.10"},{"binary_name":"xserver-xorg-core-hwe-18.04","binary_version":"2:1.20.8-2ubuntu2.2~18.04.10"},{"binary_name":"xserver-xorg-dev-hwe-18.04","binary_version":"2:1.20.8-2ubuntu2.2~18.04.10"},{"binary_name":"xserver-xorg-legacy-hwe-18.04","binary_version":"2:1.20.8-2ubuntu2.2~18.04.10"},{"binary_name":"xwayland-hwe-18.04","binary_version":"2:1.20.8-2ubuntu2.2~18.04.10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}},{"package":{"name":"xorg-server","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/xorg-server@2:1.20.13-1ubuntu1~20.04.6?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.20.13-1ubuntu1~20.04.6"}]}],"versions":["2:1.20.5+git20191008-0ubuntu1","2:1.20.6-1ubuntu1","2:1.20.7-2ubuntu1","2:1.20.7-2ubuntu2","2:1.20.8-2ubuntu2","2:1.20.8-2ubuntu2.1","2:1.20.8-2ubuntu2.2","2:1.20.8-2ubuntu2.3","2:1.20.8-2ubuntu2.4","2:1.20.8-2ubuntu2.6","2:1.20.9-2ubuntu1.1~20.04.1","2:1.20.9-2ubuntu1.2~20.04.1","2:1.20.9-2ubuntu1.2~20.04.2","2:1.20.11-1ubuntu1~20.04.2","2:1.20.13-1ubuntu1~20.04.2","2:1.20.13-1ubuntu1~20.04.3","2:1.20.13-1ubuntu1~20.04.4","2:1.20.13-1ubuntu1~20.04.5"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2:1.20.13-1ubuntu1~20.04.6","binary_name":"xdmx"},{"binary_name":"xdmx-tools","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xnest","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xorg-server-source","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xserver-common","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xserver-xephyr","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xserver-xorg-core","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xserver-xorg-legacy","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xvfb","binary_version":"2:1.20.13-1ubuntu1~20.04.6"},{"binary_name":"xwayland","binary_version":"2:1.20.13-1ubuntu1~20.04.6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}},{"package":{"name":"xorg-server","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/xorg-server@2:21.1.3-2ubuntu2.7?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:21.1.3-2ubuntu2.7"}]}],"versions":["2:1.20.13-1ubuntu1","2:1.20.13-1ubuntu2","2:1.20.14-1ubuntu1","2:21.1.3-2ubuntu2","2:21.1.3-2ubuntu2.1","2:21.1.3-2ubuntu2.2","2:21.1.3-2ubuntu2.3","2:21.1.3-2ubuntu2.4","2:21.1.3-2ubuntu2.5","2:21.1.3-2ubuntu2.6"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"xnest","binary_version":"2:21.1.3-2ubuntu2.7"},{"binary_version":"2:21.1.3-2ubuntu2.7","binary_name":"xorg-server-source"},{"binary_name":"xserver-common","binary_version":"2:21.1.3-2ubuntu2.7"},{"binary_name":"xserver-xephyr","binary_version":"2:21.1.3-2ubuntu2.7"},{"binary_name":"xserver-xorg-core","binary_version":"2:21.1.3-2ubuntu2.7"},{"binary_name":"xserver-xorg-legacy","binary_version":"2:21.1.3-2ubuntu2.7"},{"binary_name":"xvfb","binary_version":"2:21.1.3-2ubuntu2.7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}},{"package":{"name":"xwayland","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/xwayland@2:22.1.1-1ubuntu0.5?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:22.1.1-1ubuntu0.5"}]}],"versions":["2:21.1.2-0ubuntu1","2:21.1.3-1","2:21.1.3-1ubuntu1","2:21.1.4-1","2:22.1.0-1","2:22.1.1-1","2:22.1.1-1ubuntu0.1","2:22.1.1-1ubuntu0.2","2:22.1.1-1ubuntu0.3","2:22.1.1-1ubuntu0.4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"xwayland","binary_version":"2:22.1.1-1ubuntu0.5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0494.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}