Skip to content

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

HighCVSS 7.5 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
debian/libx11(Debian:12) < 2:1.8.4-2+deb12u1 2:1.8.4-2+deb12u1
debian/libx11(Debian:12) = 2:1.8.4-2 No fix listed
debian/libx11(Debian:13) < 2:1.8.6-1 2:1.8.6-1
debian/libx11(Debian:14) < 2:1.8.6-1 2:1.8.6-1
ubuntu/libx11(Ubuntu:22.04) < 2:1.7.5-1ubuntu0.2 2:1.7.5-1ubuntu0.2
alpine/libx11(Alpine:v3.15) < 1.7.3.1-r1 1.7.3.1-r1
alpine/libx11(Alpine:v3.16) < 1.8-r1 1.8-r1
alpine/libx11(Alpine:v3.17) < 1.8.4-r1 1.8.4-r1
alpine/libx11(Alpine:v3.18) < 1.8.4-r4 1.8.4-r4
x.org libX11 < 1.8.6 1.8.6
redhat enterprise linux = 8.0 No fix listed
redhat enterprise linux = 9.0 No fix listed
ubuntu/libx11(Ubuntu:Pro:14.04) < 2:1.6.2-1ubuntu2.1+esm3 2:1.6.2-1ubuntu2.1+esm3
ubuntu/libx11(Ubuntu:Pro:14.04) = 2:1.6.1-1ubuntu1 No fix listed
ubuntu/libx11(Ubuntu:Pro:14.04) = 2:1.6.1-1ubuntu2 No fix listed
ubuntu/libx11(Ubuntu:Pro:14.04) = 2:1.6.2-1ubuntu1 No fix listed
ubuntu/libx11(Ubuntu:Pro:14.04) = 2:1.6.2-1ubuntu2 No fix listed
ubuntu/libx11(Ubuntu:Pro:14.04) = 2:1.6.2-1ubuntu2.1 No fix listed
ubuntu/libx11(Ubuntu:Pro:14.04) = 2:1.6.2-1ubuntu2.1+esm1 No fix listed
ubuntu/libx11(Ubuntu:Pro:14.04) = 2:1.6.2-1ubuntu2.1+esm2 No fix listed
ubuntu/libx11(Ubuntu:Pro:16.04) < 2:1.6.3-1ubuntu2.2+esm2 2:1.6.3-1ubuntu2.2+esm2
ubuntu/libx11(Ubuntu:Pro:16.04) = 2:1.6.3-1ubuntu2 No fix listed
ubuntu/libx11(Ubuntu:Pro:16.04) = 2:1.6.3-1ubuntu2.1 No fix listed
ubuntu/libx11(Ubuntu:Pro:16.04) = 2:1.6.3-1ubuntu2.2 No fix listed
ubuntu/libx11(Ubuntu:Pro:16.04) = 2:1.6.3-1ubuntu2.2+esm1 No fix listed
Show 16 more
ProductAffected versionsFixed in
ubuntu/libx11(Ubuntu:Pro:18.04) < 2:1.6.4-3ubuntu0.4+esm1 2:1.6.4-3ubuntu0.4+esm1
ubuntu/libx11(Ubuntu:Pro:18.04) = 2:1.6.4-3 No fix listed
ubuntu/libx11(Ubuntu:Pro:18.04) = 2:1.6.4-3ubuntu0.1 No fix listed
ubuntu/libx11(Ubuntu:Pro:18.04) = 2:1.6.4-3ubuntu0.2 No fix listed
ubuntu/libx11(Ubuntu:Pro:18.04) = 2:1.6.4-3ubuntu0.3 No fix listed
ubuntu/libx11(Ubuntu:Pro:18.04) = 2:1.6.4-3ubuntu0.4 No fix listed
ubuntu/libx11(Ubuntu:20.04) < 2:1.6.9-2ubuntu1.5 2:1.6.9-2ubuntu1.5
ubuntu/libx11(Ubuntu:20.04) = 2:1.6.8-1 No fix listed
ubuntu/libx11(Ubuntu:20.04) = 2:1.6.9-2 No fix listed
ubuntu/libx11(Ubuntu:20.04) = 2:1.6.9-2ubuntu1 No fix listed
ubuntu/libx11(Ubuntu:20.04) = 2:1.6.9-2ubuntu1.1 No fix listed
ubuntu/libx11(Ubuntu:20.04) = 2:1.6.9-2ubuntu1.2 No fix listed
ubuntu/libx11(Ubuntu:22.04) = 2:1.7.2-1 No fix listed
ubuntu/libx11(Ubuntu:22.04) = 2:1.7.2-2 No fix listed
ubuntu/libx11(Ubuntu:22.04) = 2:1.7.2-2build1 No fix listed
ubuntu/libx11(Ubuntu:22.04) = 2:1.7.5-1 No fix listed

References