Vulnerabilities · 2023 · X.org
CVE-2023-3138
X.org Libx11 vulnerability
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 products
Libx11, Enterprise Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether X.org Libx11 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c · Patch
- lists.x.org/archives/xorg-announce/2023-June/003406.html · Patch
- lists.x.org/archives/xorg-announce/2023-June/003407.html · Patch
- access.redhat.com/security/cve/CVE-2023-3138 · Third Party Advisory
- security.netapp.com/advisory/ntap-20231208-0008/
- nvd.nist.gov/vuln/detail/CVE-2023-3138
- cve.org/CVERecord?id=CVE-2023-3138
More vulnerabilities in X.org products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.