Advisory Details

July 12th, 2022

X.Org Server ProcXkbSetGeometry Out-Of-Bounds Access Local Privilege Escalation Vulnerability

ZDI-22-964
ZDI-CAN-16062

CVE ID CVE-2022-2319
CVSS SCORE 7.8, AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS X.Org
AFFECTED PRODUCTS Server
VULNERABILITY DETAILS

This vulnerability allows local attackers to escalate privileges on affected installations of X.Org Server. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

The specific flaw exists within the handling of ProcXkbSetGeometry requests. The issue results from the lack of proper validation of user-supplied data, which can result in a memory access past the end of an allocated buffer. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of root.

ADDITIONAL DETAILS X.Org has issued an update to correct this vulnerability. More details can be found at:
https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/938/diffs?commit_id=6907b6ea2b4ce949cb07271f5b678d5966d9df42
DISCLOSURE TIMELINE
  • 2021-12-30 - Vulnerability reported to vendor
  • 2022-07-12 - Coordinated public release of advisory
CREDIT Jan-Niklas Sohn
BACK TO ADVISORIES