Debian Linux
CVE-2023-6816
CRITICAL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | Despite the critical CVSS 9.8 score indicating network-exploitable, no-authentication-required remote code execution, the real-world risk appears moderate based on multiple signals. The EPSS score of 3.26% (87th percentile) suggests above-average but not extreme exploitation likelihood. The vulnerability is not listed in CISA KEV, indicating no known active exploitation. The network attack vector (AV:N) with low complexity (AC:L) and no required privileges (PR:N) or user interaction (UI:N) makes it theoretically dangerous, but the specific conditions required (malicious button mappings in X11 protocol) and the availability of patches since early 2024 reduce practical risk for patched systems. |
| Exploit ScenarioDerived | An attacker could craft malicious X11 protocol messages that map logical buttons to values exceeding the allocated buffer size, triggering a heap overflow when DeviceFocusEvent or XIQueryPointer processes these mappings. This could allow remote code execution on the X.Org Server with the privileges of the X server process, typically root or a dedicated system user. No public proof-of-concept exists, but the network-accessible nature and low attack complexity make exploitation feasible for skilled attackers with X11 protocol knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 19, 2026
A heap overflow vulnerability exists in X.Org Server and Xwayland where improper memory allocation for logical button mappings allows remote attackers to execute arbitrary code with high privileges. The flaw affects multiple Linux distributions including RHEL 7, Fedora 39, and Debian 10, with a critical CVSS score of 9.8 and an EPSS score of 3.26% (87th percentile), indicating moderate real-world exploitation likelihood. Multiple security advisories have been issued by Red Hat with patches available, though no evidence of active exploitation (not in KEV) or public proof-of-concept exists.
RemediationAI
Apply the vendor-provided security updates immediately, with Red Hat patches available via advisories RHSA-2024:0320, RHSA-2024:0557, RHSA-2024:0558, RHSA-2024:0597, RHSA-2024:0607, RHSA-2024:0614, RHSA-2024:0617, RHSA-2024:0621, RHSA-2024:0626, RHSA-2024:0629, RHSA-2024:2169, RHSA-2024:2170, RHSA-2024:2995, RHSA-2024:2996, and RHSA-2025:12751 (see https://access.redhat.com/errata/ for details). For systems that cannot be immediately patched, consider restricting network access to X11 services (typically port 6000) at the firewall level and disabling remote X11 connections where not required, though these are only partial mitigations for a memory corruption vulnerability.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability affects X.Org X Server (all versions) and Xwayland (all versions) as identified by CPE entries cpe:2.3:a:x.org:x_server and cpe:2.3:a:x.org:xwayland. The flaw is classified as CWE-787 (Out-of-bounds Write), occurring in the DeviceFocusEvent and XIQueryPointer reply mechanisms which contain bit representations for each logical button currently pressed. While the X11 protocol allows buttons to be mapped to values up to 255, the X.Org Server only allocates memory based on the actual number of buttons on the device, creating a heap buffer overflow condition when higher button values are used.
Know when Debian Linux gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A flaw was found in X.Org server. Both DeviceFocusEvent and the XIQueryPointer reply contain a bit for each logical button currently down. Buttons can be arbitrarily mapped to any value up to 255, but the X.Org Server was only allocating space for the device's particular number of buttons, leading to a heap overflow if a bigger value was used.
Executive ViewAI
Organizations using A flaw face critical risk from CVE-2023-6816, a out-of-bounds write vulnerability rated CVSS 9.8. Exploitation could allow attackers to corrupt memory, crash the application, or potentially execute arbitrary code. Organizations should apply vendor updates immediately when available and implement compensating controls in the interim.
Apply vendor patch. If immediate patching is not feasible: (1) Enable ASLR and DEP where available; (2) Implement network segmentation; (3) Monitor for exploitation indicators.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Affected Products (CPE)CVE.org
More in Debian Linux
View allApache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which
Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) o
The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.
When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT
When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate
A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Rated critical severity (
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB