# CVE-2023-3138: libx11: A vulnerability was found in libX11

CVE-2023-3138 is fixed in 11 products on 1 platform, first by libx11-6 2:1.6.4-3ubuntu0.4+esm1, released June 14, 2023. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2023-3138
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0166
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 14, 2023

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libX11 RHEL 8 | 0:1.6.8-6.el8 | [RHSA-2023:7029](https://patchblox.com/security/data/fix/linux/rhsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11 RHEL 9 | 0:1.7.0-8.el9 | [RHSA-2023:6497](https://patchblox.com/security/data/fix/linux/rhsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11 almalinux 8 | 1.6.8-6.el8 | [ALSA-2023:7029](https://patchblox.com/security/data/fix/linux/alsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11 almalinux 9 | 1.7.0-8.el9 | [ALSA-2023:6497](https://patchblox.com/security/data/fix/linux/alsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11 amzn 2023 | 1.7.2-3.amzn2023.0.3 | [ALAS2023-2023-250](https://patchblox.com/security/data/fix/linux/alas2023-2023-250.md) | Jul 17, 2023 |
| Linux | libX11 ol 8 | 0:1.6.8-6.el8 | [ELSA-2023-7029](https://patchblox.com/security/data/fix/linux/elsa-2023-7029.md) | Nov 17, 2023 |
| Linux | libX11 ol 9 | 0:1.7.0-8.el9 | [ELSA-2023-6497](https://patchblox.com/security/data/fix/linux/elsa-2023-6497.md) | Nov 11, 2023 |
| Linux | libX11-common RHEL 8 | 0:1.6.8-6.el8 | [RHSA-2023:7029](https://patchblox.com/security/data/fix/linux/rhsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11-common RHEL 9 | 0:1.7.0-8.el9 | [RHSA-2023:6497](https://patchblox.com/security/data/fix/linux/rhsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11-common almalinux 8 | 1.6.8-6.el8 | [ALSA-2023:7029](https://patchblox.com/security/data/fix/linux/alsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11-common almalinux 9 | 1.7.0-8.el9 | [ALSA-2023:6497](https://patchblox.com/security/data/fix/linux/alsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11-common amzn 2023 | 1.7.2-3.amzn2023.0.3 | [ALAS2023-2023-250](https://patchblox.com/security/data/fix/linux/alas2023-2023-250.md) | Jul 17, 2023 |
| Linux | libX11-common ol 8 | 0:1.6.8-6.el8 | [ELSA-2023-7029](https://patchblox.com/security/data/fix/linux/elsa-2023-7029.md) | Nov 17, 2023 |
| Linux | libX11-common ol 9 | 0:1.7.0-8.el9 | [ELSA-2023-6497](https://patchblox.com/security/data/fix/linux/elsa-2023-6497.md) | Nov 11, 2023 |
| Linux | libX11-debuginfo amzn 2023 | 1.7.2-3.amzn2023.0.3 | [ALAS2023-2023-250](https://patchblox.com/security/data/fix/linux/alas2023-2023-250.md) | Jul 17, 2023 |
| Linux | libX11-debugsource amzn 2023 | 1.7.2-3.amzn2023.0.3 | [ALAS2023-2023-250](https://patchblox.com/security/data/fix/linux/alas2023-2023-250.md) | Jul 17, 2023 |
| Linux | libX11-devel RHEL 8 | 0:1.6.8-6.el8 | [RHSA-2023:7029](https://patchblox.com/security/data/fix/linux/rhsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11-devel RHEL 9 | 0:1.7.0-8.el9 | [RHSA-2023:6497](https://patchblox.com/security/data/fix/linux/rhsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11-devel almalinux 8 | 1.6.8-6.el8 | [ALSA-2023:7029](https://patchblox.com/security/data/fix/linux/alsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11-devel almalinux 9 | 1.7.0-8.el9 | [ALSA-2023:6497](https://patchblox.com/security/data/fix/linux/alsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11-devel amzn 2023 | 1.7.2-3.amzn2023.0.3 | [ALAS2023-2023-250](https://patchblox.com/security/data/fix/linux/alas2023-2023-250.md) | Jul 17, 2023 |
| Linux | libX11-devel ol 8 | 0:1.6.8-6.el8 | [ELSA-2023-7029](https://patchblox.com/security/data/fix/linux/elsa-2023-7029.md) | Nov 17, 2023 |
| Linux | libX11-devel ol 9 | 0:1.7.0-8.el9 | [ELSA-2023-6497](https://patchblox.com/security/data/fix/linux/elsa-2023-6497.md) | Nov 11, 2023 |
| Linux | libX11-xcb RHEL 8 | 0:1.6.8-6.el8 | [RHSA-2023:7029](https://patchblox.com/security/data/fix/linux/rhsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11-xcb RHEL 9 | 0:1.7.0-8.el9 | [RHSA-2023:6497](https://patchblox.com/security/data/fix/linux/rhsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11-xcb almalinux 8 | 1.6.8-6.el8 | [ALSA-2023:7029](https://patchblox.com/security/data/fix/linux/alsa-2023-7029.md) | Nov 14, 2023 |
| Linux | libX11-xcb almalinux 9 | 1.7.0-8.el9 | [ALSA-2023:6497](https://patchblox.com/security/data/fix/linux/alsa-2023-6497.md) | Nov 7, 2023 |
| Linux | libX11-xcb amzn 2023 | 1.7.2-3.amzn2023.0.3 | [ALAS2023-2023-250](https://patchblox.com/security/data/fix/linux/alas2023-2023-250.md) | Jul 17, 2023 |
| Linux | libX11-xcb ol 8 | 0:1.6.8-6.el8 | [ELSA-2023-7029](https://patchblox.com/security/data/fix/linux/elsa-2023-7029.md) | Nov 17, 2023 |
| Linux | libX11-xcb ol 9 | 0:1.7.0-8.el9 | [ELSA-2023-6497](https://patchblox.com/security/data/fix/linux/elsa-2023-6497.md) | Nov 11, 2023 |
| Linux | libX11-xcb-debuginfo amzn 2023 | 1.7.2-3.amzn2023.0.3 | [ALAS2023-2023-250](https://patchblox.com/security/data/fix/linux/alas2023-2023-250.md) | Jul 17, 2023 |
| Linux | libx11 Debian 11.6 (bullseye) | 2:1.7.2-1+deb11u1 | [DSA-5433-1](https://patchblox.com/security/data/fix/linux/dsa-5433-1.md) | Jun 21, 2023 |
| Linux | libx11 Debian 12.15 (bookworm) | 2:1.8.4-2+deb12u1 | [DSA-5433-1](https://patchblox.com/security/data/fix/linux/dsa-5433-1.md) | Jun 21, 2023 |
| Linux | libx11 Debian 13.5 (trixie) | 2:1.8.6-1 | [DEBIAN-CVE-2023-3138](https://patchblox.com/security/data/fix/linux/debian-cve-2023-3138.md) | Jun 28, 2023 |
| Linux | libx11 Debian 14 | 2:1.8.6-1 | [DEBIAN-CVE-2023-3138](https://patchblox.com/security/data/fix/linux/debian-cve-2023-3138.md) | Jun 28, 2023 |
| Linux | libx11-6 Ubuntu 18.04.6 LTS (bionic) | 2:1.6.4-3ubuntu0.4+esm1 | [libx11-6 2:1.6.4-3ubuntu0.4+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libx11-6-2-1.6.4-3ubuntu0.4-esm1.md) | Jun 14, 2023 |
| Linux | libx11-6 Ubuntu 20.04 LTS (focal) | 2:1.6.9-2ubuntu1.5 | [libx11-6 2:1.6.9-2ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libx11-6-2-1.6.9-2ubuntu1.5.md) | Jun 14, 2023 |
| Linux | libx11-6 Ubuntu 22.04.1 LTS (jammy) | 2:1.7.5-1ubuntu0.2 | [libx11-6 2:1.7.5-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libx11-6-2-1.7.5-1ubuntu0.2.md) | Jun 14, 2023 |
| Linux | libx11-data Ubuntu 18.04.6 LTS (bionic) | 2:1.6.4-3ubuntu0.4+esm1 | [libx11-data 2:1.6.4-3ubuntu0.4+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libx11-data-2-1.6.4-3ubuntu0.4-esm1.md) | Jun 14, 2023 |
| Linux | libx11-data Ubuntu 20.04 LTS (focal) | 2:1.6.9-2ubuntu1.5 | [libx11-data 2:1.6.9-2ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libx11-data-2-1.6.9-2ubuntu1.5.md) | Jun 14, 2023 |
| Linux | libx11-data Ubuntu 22.04.1 LTS (jammy) | 2:1.7.5-1ubuntu0.2 | [libx11-data 2:1.7.5-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libx11-data-2-1.7.5-1ubuntu0.2.md) | Jun 14, 2023 |
| Linux | libx11-xcb1 Ubuntu 18.04.6 LTS (bionic) | 2:1.6.4-3ubuntu0.4+esm1 | [libx11-xcb1 2:1.6.4-3ubuntu0.4+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libx11-xcb1-2-1.6.4-3ubuntu0.4-esm1.md) | Jun 14, 2023 |
| Linux | libx11-xcb1 Ubuntu 20.04 LTS (focal) | 2:1.6.9-2ubuntu1.5 | [libx11-xcb1 2:1.6.9-2ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libx11-xcb1-2-1.6.9-2ubuntu1.5.md) | Jun 14, 2023 |
| Linux | libx11-xcb1 Ubuntu 22.04.1 LTS (jammy) | 2:1.7.5-1ubuntu0.2 | [libx11-xcb1 2:1.7.5-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libx11-xcb1-2-1.7.5-1ubuntu0.2.md) | Jun 14, 2023 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
