PT-2021-3124

CVE-2021-31535

·

Published

2021-05-09

·

Updated

2026-10-31

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions libX11 versions prior to 1.7.1 X.Org X versions through X11R7.7
Description The issue is related to insufficient input validation in the XLookupColor() function of the libX11 library. This can be exploited by an attacker to potentially execute arbitrary code, allowing them to take control of the running graphical session. The vulnerability arises when a client sends color-name requests with names longer than the maximum size allowed by the protocol, which are then interpreted by the server as additional X protocol requests.
Recommendations For libX11 versions prior to 1.7.1, update to version 1.7.1 or later to resolve the issue. For X.Org X versions through X11R7.7, consider disabling the XLookupColor() function as a temporary workaround until a patch is available. Restrict access to the vulnerable LookupCol.c module to minimize the risk of exploitation. Avoid using the XLookupColor request with untrusted input until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
ALSA-2021:4326
ALT-PU-2021-1835
ALT-PU-2021-1868
ALT-PU-2021-2344
CESA-2021_3296
CESA-2021_4326
CLEANSTART-2024-BC43946
CLSA-2026-1792607902
CLSA-2026-1792609205
DLA-2666-1
DSA-4920-1
MGASA-2021-0219
OESA-2021-1235
OPENSUSE-SU-2021:0807-1
OPENSUSE-SU-2021_0807-1
OPENSUSE-SU-2021:0857-1
OPENSUSE-SU-2021_0857-1
OPENSUSE-SU-2021:1897-1
OPENSUSE-SU-2021_1897-1
OPENSUSE-SU-2024:10918-1
RHSA-2021:3296
RHSA-2021_3296
RHSA-2021:3477
RHSA-2021:4326
RHSA-2021_4326
RLSA-2021:4326
SUSE-SU-2021:14748-1
SUSE-SU-2021_14748-1
SUSE-SU-2021:1765-1
SUSE-SU-2021_1765-1
SUSE-SU-2021:1766-1
SUSE-SU-2021_1766-1
SUSE-SU-2021:1892-1
SUSE-SU-2021_1892-1
SUSE-SU-2021:1897-1
SUSE-SU-2021_1897-1
USN-4966-1
USN-4966-2
Found an issue in the description? Have something to add? Feel free to write us 👾