The functions in src/InitExt.c in libX11 prior to 1.8.6 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. Instead they trusted that they were called with values provided by an Xserver that was 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. Testing has found it is possible to at least cause the client to crash with this memory corruption. This is fixed in: https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/TBD which is included in the libX11 1.8.6 release issued today. X.Org thanks Gregory James Duck for reporting this issue to our security team.
Created libX11 tracking bugs for this issue: Affects: fedora-all [bug 2215372]
(In reply to Marian Rehak from comment #0) > This is fixed in: > https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/TBD > which is included in the libX11 1.8.6 release issued today. Probably that link/commit should be https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/304a654a0d57bf0f00d8998185f0360332cfa36c
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2023:6497 https://access.redhat.com/errata/RHSA-2023:6497
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2023:7029 https://access.redhat.com/errata/RHSA-2023:7029
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.2 Extended Update Support Via RHSA-2024:1088 https://access.redhat.com/errata/RHSA-2024:1088
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.8 Extended Update Support Via RHSA-2024:1417 https://access.redhat.com/errata/RHSA-2024:1417