CVE-2023-3138
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | libx11 | Fixed | 2:1.7.5-1ubuntu0.2 | UBUNTU-CVE-2023-3138 |
| Ubuntu 20.04 | libx11 | Fixed | 2:1.6.9-2ubuntu1.5 | UBUNTU-CVE-2023-3138 |
| Ubuntu 18.04 | libx11 | Fix pending | 2:1.6.4-3ubuntu0.4+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-3138 |
| Ubuntu 16.04 | libx11 | Fix pending | 2:1.6.3-1ubuntu2.2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-3138 |
| Ubuntu 14.04 | libx11 | Fix pending | 2:1.6.2-1ubuntu2.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-3138 |
| Debian 14 | libx11 | Fixed | 2:1.8.6-1 | DEBIAN-CVE-2023-3138 |
| Debian 13 | libx11 | Fixed | 2:1.8.6-1 | DEBIAN-CVE-2023-3138 |
| Debian 12 | libx11 | Fixed | 2:1.8.4-2+deb12u1 | DEBIAN-CVE-2023-3138 |
| Red Hat Enterprise Linux 9 | libX11 | Fixed | 0:1.7.0-8.el9 | RHSA-2023:6497 |
| Red Hat Enterprise Linux 9 | libX11-common | Fixed | 0:1.7.0-8.el9 | RHSA-2023:6497 |
| Red Hat Enterprise Linux 9 | libX11-devel | Fixed | 0:1.7.0-8.el9 | RHSA-2023:6497 |
| Red Hat Enterprise Linux 9 | libX11-xcb | Fixed | 0:1.7.0-8.el9 | RHSA-2023:6497 |
| Red Hat Enterprise Linux 8 | libX11 | Fixed | 0:1.6.8-6.el8 | RHSA-2023:7029 |
| Red Hat Enterprise Linux 8 | libX11-common | Fixed | 0:1.6.8-6.el8 | RHSA-2023:7029 |
| Red Hat Enterprise Linux 8 | libX11-devel | Fixed | 0:1.6.8-6.el8 | RHSA-2023:7029 |
| Red Hat Enterprise Linux 8 | libX11-xcb | Fixed | 0:1.6.8-6.el8 | RHSA-2023:7029 |
| Red Hat Enterprise Linux 7 | libX11 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libX11-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libX11-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libX11 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libX11-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libX11-devel | Will not fix Out of support scope | ||
| AlmaLinux 9 | libX11 | Fixed | 1.7.0-8.el9 | ALSA-2023:6497 |
| AlmaLinux 9 | libX11-common | Fixed | 1.7.0-8.el9 | ALSA-2023:6497 |
| AlmaLinux 9 | libX11-devel | Fixed | 1.7.0-8.el9 | ALSA-2023:6497 |
| AlmaLinux 9 | libX11-xcb | Fixed | 1.7.0-8.el9 | ALSA-2023:6497 |
| AlmaLinux 8 | libX11 | Fixed | 1.6.8-6.el8 | ALSA-2023:7029 |
| AlmaLinux 8 | libX11-common | Fixed | 1.6.8-6.el8 | ALSA-2023:7029 |
| AlmaLinux 8 | libX11-devel | Fixed | 1.6.8-6.el8 | ALSA-2023:7029 |
| AlmaLinux 8 | libX11-xcb | Fixed | 1.6.8-6.el8 | ALSA-2023:7029 |
| Alpine Linux 3.18 | libx11 | Fixed | 1.8.4-r4 | ALPINE-CVE-2023-3138 |
| Alpine Linux 3.17 | libx11 | Fixed | 1.8.4-r1 | ALPINE-CVE-2023-3138 |
| Alpine Linux 3.16 | libx11 | Fixed | 1.8-r1 | ALPINE-CVE-2023-3138 |
| Alpine Linux 3.15 | libx11 | Fixed | 1.7.3.1-r1 | ALPINE-CVE-2023-3138 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libX11: affected: libX11 1.8.6
References
- https://access.redhat.com/security/cve/CVE-2023-3138
- https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c
- https://lists.x.org/archives/xorg-announce/2023-June/003406.html
- https://lists.x.org/archives/xorg-announce/2023-June/003407.html
- https://security.netapp.com/advisory/ntap-20231208-0008/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.