{"id":"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-10-22T15:54:19.177893257Z","published":"2023-03-27T00:00:00Z","related":["ALSA-2023:0622","ALSA-2023:0662","ALSA-2023:2248","ALSA-2023:2249","ALSA-2023:2805","ALSA-2023:2806","SUSE-SU-2023:0282-1","SUSE-SU-2023:0284-1","SUSE-SU-2023:0285-1","SUSE-SU-2023:0286-1","SUSE-SU-2023:0287-1","SUSE-SU-2023:0288-1","SUSE-SU-2023:0289-1","openSUSE-SU-2024:12664-1","openSUSE-SU-2024:12665-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0494.json","cna_assigner":"redhat","cwe_ids":["CWE-416"]},"references":[{"type":"WEB","url":"https://lists.x.org/archives/xorg-announce/2023-February/003320.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0494.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0494"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202305-30"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2165995"},{"type":"FIX","url":"https://gitlab.freedesktop.org/xorg/xserver/-/commit/0ba6d8c37071131a49790243cdac55392ecf71ec"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.freedesktop.org/xorg/xserver","events":[{"introduced":"af9111ac7fa399a5a33fbfa145060e1850f41e0e"},{"fixed":"0ba6d8c37071131a49790243cdac55392ecf71ec"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"xorg-server 21.1.7"},{"last_affected":"xorg-server 21.1.7"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"range":[{"fixed":"0ba6d8c37071131a49790243cdac55392ecf71ec"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["7.0","xorg-server 21.1.7"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-0494.json","vanir_signatures":[{"signature_type":"Line","signature_version":"v1","source":"https://gitlab.freedesktop.org/xorg/xserver@0ba6d8c37071131a49790243cdac55392ecf71ec","target":{"file":"Xi/exevents.c"},"deprecated":false,"digest":{"line_hashes":["74106098508242225049021527155819159703","95056552086437722391515703312333258183","263086816622054653013670691820743023688","187621220841141749469078690120853429229","48794798834028557475176690849393643529"],"threshold":0.9},"id":"CVE-2023-0494-3a331a16"},{"source":"https://gitlab.freedesktop.org/xorg/xserver@0ba6d8c37071131a49790243cdac55392ecf71ec","target":{"file":"Xi/exevents.c","function":"DeepCopyPointerClasses"},"deprecated":false,"digest":{"function_hash":"139982773311384739155271790805276520930","length":4327},"id":"CVE-2023-0494-7e05971b","signature_type":"Function","signature_version":"v1"}],"vanir_signatures_modified":"2026-10-22T15:54:19Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}