Advisory Details

February 9th, 2024

X.Org Server DisableDevice Heap-based Buffer Overflow Local Privilege Escalation Vulnerability

ZDI-24-119
ZDI-CAN-22840

CVE ID CVE-2024-21886
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 DisableDevice function. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based 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://access.redhat.com/security/cve/cve-2024-21886
DISCLOSURE TIMELINE
  • 2023-12-20 - Vulnerability reported to vendor
  • 2024-02-09 - Coordinated public release of advisory
  • 2024-07-01 - Advisory Updated
CREDIT Jan-Niklas Sohn
BACK TO ADVISORIES