Advisory

UBUNTU-CVE-2021-31535

Also known as: CVE-2021-31535

Summary

The record has no summary.

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-05-18 00:00 UTC
Modified
2026-04-22 12:54 UTC

Affected packages and fixes

libx11

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2:1.6.4-3ubuntu0.4 (ecosystem)

Fixed versions

2:1.6.4-3ubuntu0.4

Fix

  • Fixed version 2:1.6.4-3ubuntu0.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libx11

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2:1.6.9-2ubuntu1.2 (ecosystem)

Fixed versions

2:1.6.9-2ubuntu1.2

Fix

  • Fixed version 2:1.6.9-2ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences