Heap-based Buffer Overflow Affecting xorg/xwayland package, versions [,23.2.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-XORGXWAYLAND-11431288
  • published4 Aug 2025
  • disclosed16 Jan 2024
  • creditJan-Niklas Sohn

Introduced: 16 Jan 2024

CVE-2024-21885  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade xorg/xwayland to version 23.2.4 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the XISendDeviceHierarchyEvent function. An attacker can cause an application crash or execute arbitrary code by adding certain new device IDs to the xXIHierarchyInfo struct, which leads to exceeding the allocated array length and triggering a heap buffer overflow condition.

CVSS Base Scores

version 3.1