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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0494.json",
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-416"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "21.1.7"
},
{
"last_affected": "7.0"
}
],
"cpe": [
"cpe:2.3:a:x.org:x_server:*:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux_for_power_big_endian:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux_for_scientific_computing:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux_server_workstation:7.0:*:*:*:*:*:*:*"
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}"2026-06-15T19:03:06Z"
[
{
"digest": {
"line_hashes": [
"74106098508242225049021527155819159703",
"95056552086437722391515703312333258183",
"263086816622054653013670691820743023688",
"187621220841141749469078690120853429229",
"48794798834028557475176690849393643529"
],
"threshold": 0.9
},
"signature_version": "v1",
"id": "CVE-2023-0494-3a331a16",
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "Xi/exevents.c"
},
"source": "https://gitlab.freedesktop.org/xorg/xserver@0ba6d8c37071131a49790243cdac55392ecf71ec"
},
{
"digest": {
"function_hash": "139982773311384739155271790805276520930",
"length": 4327.0
},
"signature_version": "v1",
"id": "CVE-2023-0494-7e05971b",
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "Xi/exevents.c",
"function": "DeepCopyPointerClasses"
},
"source": "https://gitlab.freedesktop.org/xorg/xserver@0ba6d8c37071131a49790243cdac55392ecf71ec"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-0494.json"