CVE-2024-21885: xorg-server Heap-based Buffer Overflow
Vulnerability summary
CVE-2024-21885 is a high (CVSS 7.8) Heap-based Buffer Overflow vulnerability in xorg-server. EPSS estimates a 1.42% chance of exploitation in the next 30 days, higher than 72.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 28 · Related 12Timeline
- 28-02-2024PublishedVulnerability first disclosed.
- 06-11-2025Last modifiedVulnerability information updated.
Description
A flaw was found in X.Org server. In the XISendDeviceHierarchyEvent function, it is possible to exceed the allocated array length when certain new device IDs are added to the xXIHierarchyInfo struct. This can trigger a heap buffer overflow condition, which may lead to an application crash or remote code execution in SSH X11 forwarding environments.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.42%
Chance of exploitation in the next 30 days
Percentile
72%
Versus all other CVEs
30-day change
0.00 pp
From 1.42% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu4 products
- xorg-server< 2:1.15.1-0ubuntu2.11+esm9 | < 2:1.18.4-0ubuntu0.12+esm9 | < 2:1.19.6-1ubuntu4.15+esm4 | < 2:1.20.13-1ubuntu1~20.04.14 | < 2:21.1.4-2ubuntu1.7~22.04.7
- xorg-server-hwe-16.04All versions (No fix recorded)
- xorg-server-hwe-18.04All versions (No fix recorded)
- xwayland< 2:22.1.1-1ubuntu0.10 | < 2:23.2.4-1
Debian2 products
- xorg-server< 2:21.1.7-3+deb12u5 | < 2:21.1.11-1
- xwaylandAll versions (No fix recorded) | < 2:23.2.4-1
Chainguard1 product
- xorg-server< 21.1.11-r0
Wolfi1 product
- xorg-server< 21.1.11-r0
4 vendors · 8 products