Vulnerability · Published Jun 28, 2023 · Assigned by redhat

CVE-2023-3138

High 7.5

In plain English

A high-severity memory corruption in libX11. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)1.7%top 23.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A vulnerability was found in libX11. The security flaw occurs because the functions in src/InitExt.c in libX11 do not check that the values provided for the Request, Event, or Error IDs are within the bounds of the arrays that those functions write to, using those IDs as array indexes. They trust that they were called with values provided by an Xserver adhering to the bounds specified in the X11 protocol, as all X servers provided by X.Org do. As the protocol only specifies a single byte for these values, an out-of-bounds value provided by a malicious server (or a malicious proxy-in-the-middle) can only overwrite other portions of the Display structure and not write outside the bounds of the Display structure itself, possibly causing the client to crash with this memory corruption.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libX111.6.8-6.el8ALSA-2023:7029
AlmaLinux:9libX111.7.0-8.el9ALSA-2023:6497
AlmaLinux:8libX11-common1.6.8-6.el8ALSA-2023:7029
AlmaLinux:9libX11-common1.7.0-8.el9ALSA-2023:6497
AlmaLinux:8libX11-devel1.6.8-6.el8ALSA-2023:7029
AlmaLinux:9libX11-devel1.7.0-8.el9ALSA-2023:6497
AlmaLinux:8libX11-xcb1.6.8-6.el8ALSA-2023:7029
AlmaLinux:9libX11-xcb1.7.0-8.el9ALSA-2023:6497
Debian:12libx112:1.8.4-2+deb12u1DSA-5433-1
Debian:12libx112:1.8.4-2+deb12u1DEBIAN-CVE-2023-3138
Debian:13libx112:1.8.6-1DEBIAN-CVE-2023-3138
Debian:14libx112:1.8.6-1DEBIAN-CVE-2023-3138
Ubuntu:22.04:LTSlibx112:1.7.5-1ubuntu0.2USN-6168-1
Ubuntu:22.04:LTSlibx112:1.7.5-1ubuntu0.2UBUNTU-CVE-2023-3138

Affected products (as reported)

VendorProductVersions
n/a libX11 libX11 1.8.6

Weakness: CWE-119

References