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.
[
{
"digest": {
"line_hashes": [
"74106098508242225049021527155819159703",
"95056552086437722391515703312333258183",
"263086816622054653013670691820743023688",
"187621220841141749469078690120853429229",
"48794798834028557475176690849393643529"
],
"threshold": 0.9
},
"target": {
"file": "Xi/exevents.c"
},
"deprecated": false,
"id": "CVE-2023-0494-3a331a16",
"signature_version": "v1",
"source": "https://gitlab.freedesktop.org/xorg/xserver@0ba6d8c37071131a49790243cdac55392ecf71ec",
"signature_type": "Line"
},
{
"digest": {
"length": 4327.0,
"function_hash": "139982773311384739155271790805276520930"
},
"target": {
"file": "Xi/exevents.c",
"function": "DeepCopyPointerClasses"
},
"deprecated": false,
"id": "CVE-2023-0494-7e05971b",
"signature_version": "v1",
"source": "https://gitlab.freedesktop.org/xorg/xserver@0ba6d8c37071131a49790243cdac55392ecf71ec",
"signature_type": "Function"
}
]