CVE-2023-3138

Name
CVE-2023-3138
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c
MISC https://lists.x.org/archives/xorg-announce/2023-June/003406.html
MISC https://access.redhat.com/security/cve/CVE-2023-3138
MISC https://lists.x.org/archives/xorg-announce/2023-June/003407.html
secalert@redhat.com https://security.netapp.com/advisory/ntap-20231208-0008/

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:x.org:libx11:*:*:*:*:*:*:*:* libx11 >= None < 1.8.6

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
libx11 3.15-main 1.7.3.1-r1 Natanael Copa <ncopa@alpinelinux.org> fixed