Skip to content
OpenAdvisories
Unscored CVE-2021-31535 EUVD-2021-18433GHSA-3vp2-rf63-rc8p

LookupCol.c in X.Org X through X11R7.7 and libX11 before 1.7.1 might allow remote attackers to execute arbitrary code. The libX11 XLookupCo…

Published May 27, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

LookupCol.c in X.Org X through X11R7.7 and libX11 before 1.7.1 might allow remote attackers to execute arbitrary code. The libX11 XLookupColor request (intended for server-side color lookup) contains a flaw allowing a client to send color-name requests with a name longer than the maximum size allowed by the protocol (and also longer than the maximum packet size for normal-sized packets). The user-controlled data exceeding the maximum size is then interpreted by the server as additional X protocol requests and executed, e.g., to disable X server authorization completely. For example, if the victim encounters malicious terminal control sequences for color codes, then the attacker may be able to take full control of the running graphical session.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libx11 2:1.7.1-1 —
Debian 13 libx11 2:1.7.1-1 —
Debian 12 libx11 2:1.7.1-1 —
Debian 10 libx11 2:1.6.7-1+deb10u2 DSA-4920-1
Debian 9 libx11 2:1.6.4-3+deb9u4 DLA-2666-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libx11 2:1.6.9-2ubuntu1.2 USN-4966-1
Ubuntu 18.04 LTS libx11 2:1.6.4-3ubuntu0.4 USN-4966-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS libx11 2:1.6.3-1ubuntu2.2+esm1 USN-4966-2
Ubuntu Pro 14.04 LTS libx11 2:1.6.2-1ubuntu2.1+esm2 USN-4966-2
ReleasePackageFixed inAdvisory
RHEL 8 libX11 +3 1.6.8-5.el8 RHSA-2021:4326
RHEL 7 libX11 +2 1.6.7-4.el7_9 RHSA-2021:3296
RHEL 7 redhat-virtualization-host +1 4.3.18-20210903.0.el7_9 RHSA-2021:3477

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libX11 +3 1.6.8-5.el8 ALSA-2021:4326

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libX11 1.6.8-5.el8 RLSA-2021:4326
ReleasePackageFixed inAdvisory
SLES 15 SP3 libX11 1.6.5-3.18.1 SUSE-SU-2021:1897-1, SUSE-SU-2021:1765-1
SLES 15 SP2 libX11 1.6.5-3.18.1 SUSE-SU-2021:1897-1, SUSE-SU-2021:1765-1
SLES 15 SP1 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SLES 15 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SLES 12 SP5 libX11 1.6.2-12.18.1 SUSE-SU-2021:1892-1, SUSE-SU-2021:1766-1
Show 22 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SLES 12 SP3 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SLES 12 SP2 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SLES 11 SP4 xorg-x11-libX11 7.4-5.11.72.27.1 SUSE-SU-2021:14748-1
SLES for SAP 15 SP1 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SLES for SAP 15 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SLES for SAP 12 SP5 libX11 1.6.2-12.18.1 SUSE-SU-2021:1892-1, SUSE-SU-2021:1766-1
SLES for SAP 12 SP4 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SLES for SAP 12 SP3 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SLE Micro 5.0 libX11 1.6.5-3.18.1 SUSE-SU-2021:1897-1, SUSE-SU-2021:1765-1
SLE HPC 15 SP1 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SLE HPC 15 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SUSE OpenStack Cloud Crowbar 9 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SUSE OpenStack Cloud Crowbar 8 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SUSE OpenStack Cloud 9 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SUSE OpenStack Cloud 8 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SUSE Manager Server 4.0 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SUSE Manager Retail Branch Server 4.0 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SUSE Manager Proxy 4.0 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
SUSE Linux Enterprise Point of Sale 11 SP3 xorg-x11-libX11 7.4-5.11.72.27.1 SUSE-SU-2021:14748-1
SUSE HPE Helion OpenStack 8 libX11 1.6.2-12.21.1 SUSE-SU-2021:1892-1
SUSE Enterprise Storage 6 libX11 1.6.5-3.21.1 SUSE-SU-2021:1897-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libX11 1.7.2-1.2 openSUSE-SU-2024:10918-1
openSUSE Leap 15.3 libX11 1.6.5-3.21.1 openSUSE-SU-2021:1897-1
openSUSE Leap 15.2 libX11 1.6.5-lp152.5.15.1 openSUSE-SU-2021:0857-1, openSUSE-SU-2021:0807-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libx11 1.7.1-r0 —
Alpine v3.23 libx11 1.7.1-r0 —
Alpine v3.22 libx11 1.7.1-r0 —
Alpine v3.21 libx11 1.7.1-r0 —
Alpine v3.20 libx11 1.7.1-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libx11 1.7.1-r0 —
Alpine v3.18 libx11 1.7.1-r0 —
Alpine v3.17 libx11 1.7.1-r0 —
Alpine v3.16 libx11 1.7.1-r0 —
Alpine v3.15 libx11 1.7.1-r0 —
Alpine v3.14 libx11 1.7.1-r0 —
Alpine v3.13 libx11 1.7.1-r0 —
Alpine v3.12 libx11 1.6.12-r1 —
Alpine v3.11 libx11 1.6.12-r1 —
Alpine v3.10 libx11 1.6.12-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 libX11 +2 1.6.7-3.amzn2.0.2 ALAS2-2021-1686

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libX11 +3 1.6.8-5.el8 ELSA-2021-4326
Oracle Linux 7 libX11 +2 1.6.7-4.el7_9 ELSA-2021-3296

Advisories 23

References