CVE-2024-21885
TigerVNC vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2024-21885) was discovered in the X.Org server, specifically in the XISendDeviceHierarchyEvent function. The vulnerability was disclosed on February 28, 2024, affecting the X.Org server implementation. The flaw occurs when certain new device IDs are added to the xXIHierarchyInfo struct, where it becomes possible to exceed the allocated array length (NVD).

Technical details

The vulnerability is a heap buffer overflow condition that occurs in the XISendDeviceHierarchyEvent function. When a device with a given ID is removed and a new device with the same ID is added, the info structs might be written to the array of struct xXIHierarchyInfo twice, exceeding the size limit. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Red Hat).

Impact

The successful exploitation of this vulnerability could lead to multiple severe consequences including application crashes, remote code execution in SSH X11 forwarding environments, disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). For some distributions where Xorg runs with elevated privileges, this could also lead to local privilege escalation (NetApp).

Exploitability

The vulnerability has been confirmed to be exploitable in specific environments. Testing has shown that the exploit works on VirtualBox with VBoxVGA graphic controller but doesn't work if the OS is installed on VMware and default VirtualBox configurations. The vulnerability is particularly concerning in SSH X11 forwarding environments where it could lead to remote code execution (Bugzilla).

Mitigation and workarounds

The vulnerability has been patched in multiple versions including xorg-server-21.1.11 and xwayland-23.2.4. Various Linux distributions have released security updates to address this vulnerability, including Red Hat Enterprise Linux versions 7, 8, and 9 through multiple security advisories (Red Hat).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

xwayland

Affected

bullseye

xorg-server: 2:1.20.11-1+deb11u11

Fixed

sid

xwayland: 2:23.2.4-1

Fixed

trixie

xwayland: 2:23.2.4-1

Fixed

SourceThis report was generated using AI

Related TigerVNC vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-50264HIGH7.8
  • NixOS logoNixOS
  • xorg-x11-server-Xvfb
NoYesJun 05, 2026
CVE-2026-50261HIGH7.8
  • NixOS logoNixOS
  • xorg-x11-server-debugsource
NoYesJun 05, 2026
CVE-2026-50260HIGH7.8
  • NixOS logoNixOS
  • x11-base/xorg-server
NoYesJun 05, 2026
CVE-2026-50263MEDIUM5.5
  • NixOS logoNixOS
  • xorg-server
NoYesJun 05, 2026
CVE-2026-50262MEDIUM5.5
  • NixOS logoNixOS
  • xorg-x11-server-doc
NoYesJun 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management