CVE-2023-0494: Use After Free
CVE-2023-0494/ZDI-CAN-19596: X.Org Server DeepCopyPointerClasses use-after-free
A dangling pointer in DeepCopyPointerClasses can be exploited by ProcXkbSetDeviceInfo() and ProcXkbGetDeviceInfo() to read/write into freed memory.
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/xorg-serverto a version that resolves this vulnerability.Fixed in 21.1.7 - Upgrade
Upgrade
alpine/xorg-serverto a version that resolves this vulnerability.Fixed in 21.1.7-r0 - Upgrade
Upgrade
alpine/xwaylandto a version that resolves this vulnerability.Fixed in 22.1.8-r0 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.15.1-0ubuntu2.11+esm7 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.18.4-0ubuntu0.12+esm5 - Upgrade
Upgrade
ubuntu/xorg-server-hwe-16.04to a version that resolves this vulnerability.Fixed in 2:1.19.6-1ubuntu4.1~16.04.6+esm4 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.19.6-1ubuntu4.14 - Upgrade
Upgrade
ubuntu/xorg-server-hwe-18.04to a version that resolves this vulnerability.Fixed in 2:1.20.8-2ubuntu2.2~18.04.10 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.20.13-1ubuntu1~20.04.6 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:21.1.3-2ubuntu2.7 - Upgrade
Upgrade
ubuntu/xwaylandto a version that resolves this vulnerability.Fixed in 2:22.1.1-1ubuntu0.5
Event History
Frequently Asked Questions
What is the severity of CVE-2023-0494?
The severity of CVE-2023-0494 is high with a CVSS score of 7.8.
Which software is affected by CVE-2023-0494?
The software affected by CVE-2023-0494 includes X.Org X Server, xorg-server, and various versions of Fedora and Redhat Enterprise Linux.
How can CVE-2023-0494 be exploited?
CVE-2023-0494 can be exploited by using the ProcXkbSetDeviceInfo() and ProcXkbGetDeviceInfo() functions to read and write into freed memory, leading to local privilege elevation.
How can I fix CVE-2023-0494?
To fix CVE-2023-0494, update to version 21.1.7 of xorg-server.
Where can I find more information about CVE-2023-0494?
More information about CVE-2023-0494 can be found in the X.Org announcement and the Redhat bugzilla links provided.