UBUNTU-CVE-2021-31535

Source
https://ubuntu.com/security/CVE-2021-31535
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31535.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-31535
Related
Published
2021-05-18T00:00:00Z
Modified
2024-11-20T12:15:00Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / libx11

Package

Name
libx11
Purl
pkg:deb/ubuntu/libx11?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:1.6.2-1ubuntu2.1+esm2

Affected versions

2:1.*

2:1.6.1-1ubuntu1
2:1.6.1-1ubuntu2
2:1.6.2-1ubuntu1
2:1.6.2-1ubuntu2
2:1.6.2-1ubuntu2.1
2:1.6.2-1ubuntu2.1+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-6"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-6-dbg"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-6-dbgsym"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-6-udeb"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-6-udeb-dbgsym"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-data"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-dev"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-dev-dbgsym"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-doc"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-xcb-dev"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-xcb-dev-dbgsym"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-xcb1"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-xcb1-dbg"
        },
        {
            "binary_version": "2:1.6.2-1ubuntu2.1+esm2",
            "binary_name": "libx11-xcb1-dbgsym"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / libx11

Package

Name
libx11
Purl
pkg:deb/ubuntu/libx11?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:1.6.3-1ubuntu2.2+esm1

Affected versions

2:1.*

2:1.6.3-1ubuntu2
2:1.6.3-1ubuntu2.1
2:1.6.3-1ubuntu2.2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-6"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-6-dbg"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-6-dbgsym"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-6-udeb"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-6-udeb-dbgsym"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-data"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-dev"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-dev-dbgsym"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-doc"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-xcb-dev"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-xcb-dev-dbgsym"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-xcb1"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-xcb1-dbg"
        },
        {
            "binary_version": "2:1.6.3-1ubuntu2.2+esm1",
            "binary_name": "libx11-xcb1-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / libx11

Package

Name
libx11
Purl
pkg:deb/ubuntu/libx11?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:1.6.4-3ubuntu0.4

Affected versions

2:1.*

2:1.6.4-3
2:1.6.4-3ubuntu0.1
2:1.6.4-3ubuntu0.2
2:1.6.4-3ubuntu0.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-6"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-6-dbgsym"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-6-udeb"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-data"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-dev"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-doc"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-xcb-dev"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-xcb1"
        },
        {
            "binary_version": "2:1.6.4-3ubuntu0.4",
            "binary_name": "libx11-xcb1-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / libx11

Package

Name
libx11
Purl
pkg:deb/ubuntu/libx11?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2:1.6.9-2ubuntu1.2

Affected versions

2:1.*

2:1.6.8-1
2:1.6.9-2
2:1.6.9-2ubuntu1
2:1.6.9-2ubuntu1.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-6"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-6-dbgsym"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-6-udeb"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-data"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-dev"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-doc"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-xcb-dev"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-xcb1"
        },
        {
            "binary_version": "2:1.6.9-2ubuntu1.2",
            "binary_name": "libx11-xcb1-dbgsym"
        }
    ]
}