cve.bz

CVE-2023-3138 Out-of-bounds Write

7.5 highEPSS 1.7%Fix available

High (7.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-787 Out-of-bounds Write
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-3138 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-3138?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-3138?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-3138 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
x.org:libx11before 1.8.6
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libx112:1.6.7-1+deb10u3DLA-3472-1
Debian11libx112:1.7.2-1+deb11u1DSA-5433-1
Debian12libx112:1.8.4-2+deb12u1DEBIAN-CVE-2023-3138 DSA-5433-1
Debian13, 14libx112:1.8.6-1DEBIAN-CVE-2023-3138
Ubuntu20.04:LTSlibx112:1.6.9-2ubuntu1.5UBUNTU-CVE-2023-3138 USN-6168-1
Ubuntu22.04:LTSlibx112:1.7.5-1ubuntu0.2UBUNTU-CVE-2023-3138 USN-6168-1
UbuntuPro:14.04:LTSlibx112:1.6.2-1ubuntu2.1+esm3UBUNTU-CVE-2023-3138 USN-6168-2
UbuntuPro:16.04:LTSlibx112:1.6.3-1ubuntu2.2+esm2UBUNTU-CVE-2023-3138 USN-6168-2
UbuntuPro:18.04:LTSlibx112:1.6.4-3ubuntu0.4+esm1UBUNTU-CVE-2023-3138 USN-6168-2
Red Hatenterprise_linux:8::appstreamlibX11, libX11-xcb, libX11-devel and 4 more0:1.6.8-6.el8RHSA-2023:7029
Red Hatenterprise_linux:9::appstreamlibX11, libX11-xcb, libX11-devel and 4 more0:1.7.0-8.el9RHSA-2023:6497
Red Hatrhel_eus:8.8::appstreamlibX11, libX11-xcb, libX11-devel and 4 more0:1.6.8-6.el8_8RHSA-2024:1417
Red Hatrhel_eus:9.2::appstreamlibX11, libX11-xcb, libX11-devel and 4 more0:1.7.0-8.el9_2RHSA-2024:1088
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 17 morelibX111.6.5-150000.3.30.1SUSE-SU-2023:2614-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-ESPOS, Linux Enterprise Server 12 SP4-LTSS and 6 morelibX111.6.2-12.30.1SUSE-SU-2023:2531-1
openSUSELeap 15.4, Leap 15.5, Leap Micro 5.3libX111.6.5-150000.3.30.1SUSE-SU-2023:2614-1
AlmaLinux8libX11, libX11-xcb, libX11-devel and 1 more1.6.8-6.el8ALSA-2023:7029
AlmaLinux9libX11, libX11-xcb, libX11-devel and 1 more1.7.0-8.el9ALSA-2023:6497
Alpinev3.15libx111.7.3.1-r1ALPINE-CVE-2023-3138
Alpinev3.16libx111.8-r1ALPINE-CVE-2023-3138
Alpinev3.17libx111.8.4-r1ALPINE-CVE-2023-3138
Alpinev3.18libx111.8.4-r4ALPINE-CVE-2023-3138
Azure Linux2libX111.6.12-6AZL-27274

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The identified security vulnerability in the libX11 library, categorized with a moderate impact, stems from a lack of bounds checking in certain functions within the library's InitExt.c file. Specifically, these functions do not verify that the values provided for Request, Event, or Error IDs fall within the bounds specified by the X11 protocol. Consequently, if a malicious X server or intermediary manipulates these values, it can trigger memory corruption within the client's Display structure. While this can lead to crashes or instability within the client application, the impact is constrained within the client's memory space and does not directly compromise sensitive data or system resources beyond it. The vulnerability requires specific conditions, such as interaction with a malicious server or intermediary, which limits its practical exploitability.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libX11-0:1.6.8-6.el8Fixed 2023-11-14RHSA-2023:7029
Red Hat Enterprise Linux 8.8 Extended Update SupportlibX11-0:1.6.8-6.el8_8Fixed 2024-03-19RHSA-2024:1417
Red Hat Enterprise Linux 9libX11-0:1.7.0-8.el9Fixed 2023-11-07RHSA-2023:6497
Red Hat Enterprise Linux 9.2 Extended Update SupportlibX11-0:1.7.0-8.el9_2Fixed 2024-03-05RHSA-2024:1088
Red Hat Enterprise Linux 6libX11Out of support scope
Red Hat Enterprise Linux 7libX11Out of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-3138.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON