Bug 2545246 (CVE-2026-93517) - CVE-2026-93517 xorg-x11-server: xorg-x11-server: arbitrary code execution via GLX RenderLarge heap-based buffer overflow
Summary: CVE-2026-93517 xorg-x11-server: xorg-x11-server: arbitrary code execution via...
Keywords:
Status: NEW
Alias: CVE-2026-93517
Deadline: 2026-10-07
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-02 15:52 UTC by OSIDB Bzimport
Modified: 2026-11-19 23:28 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:100477 0 None None None 2026-11-19 18:44:38 UTC
Red Hat Product Errata RHSA-2026:100492 0 None None None 2026-11-19 18:39:44 UTC
Red Hat Product Errata RHSA-2026:100499 0 None None None 2026-11-19 18:39:04 UTC
Red Hat Product Errata RHSA-2026:100648 0 None None None 2026-11-19 23:27:38 UTC
Red Hat Product Errata RHSA-2026:100651 0 None None None 2026-11-19 23:28:34 UTC
Red Hat Product Errata RHSA-2026:84574 0 None None None 2026-10-19 04:00:02 UTC
Red Hat Product Errata RHSA-2026:85191 0 None None None 2026-10-19 14:14:32 UTC
Red Hat Product Errata RHSA-2026:85193 0 None None None 2026-10-19 14:40:43 UTC
Red Hat Product Errata RHSA-2026:86907 0 None None None 2026-10-21 12:24:55 UTC
Red Hat Product Errata RHSA-2026:89747 0 None None None 2026-10-26 03:54:01 UTC
Red Hat Product Errata RHSA-2026:98476 0 None None None 2026-11-11 11:58:58 UTC
Red Hat Product Errata RHSA-2026:98487 0 None None None 2026-11-11 12:01:46 UTC
Red Hat Product Errata RHSA-2026:98538 0 None None None 2026-11-11 12:13:59 UTC
Red Hat Product Errata RHSA-2026:98546 0 None None None 2026-11-11 09:07:25 UTC
Red Hat Product Errata RHSA-2026:98547 0 None None None 2026-11-11 09:17:03 UTC
Red Hat Product Errata RHSA-2026:98548 0 None None None 2026-11-11 09:29:18 UTC
Red Hat Product Errata RHSA-2026:98549 0 None None None 2026-11-11 09:14:35 UTC
Red Hat Product Errata RHSA-2026:98581 0 None None None 2026-11-11 11:23:58 UTC
Red Hat Product Errata RHSA-2026:98658 0 None None None 2026-11-11 10:07:42 UTC
Red Hat Product Errata RHSA-2026:98659 0 None None None 2026-11-11 10:00:47 UTC
Red Hat Product Errata RHSA-2026:98660 0 None None None 2026-11-11 10:13:43 UTC
Red Hat Product Errata RHSA-2026:98951 0 None None None 2026-11-11 13:47:13 UTC
Red Hat Product Errata RHSA-2026:99515 0 None None None 2026-11-12 06:33:04 UTC
Red Hat Product Errata RHSA-2026:99623 0 None None None 2026-11-12 13:30:27 UTC

Description OSIDB Bzimport 2026-10-02 15:52:53 UTC
In the GLX RenderLarge request handling, the buffer is allocated to the
     size of cmdlen but the subsequent memcpy copies dataBytes into it.
     There is no validation that dataBytes is less than or equal to cmdlen,
     allowing an attacker to write past the end of the allocated buffer.

     An authenticated X client can trigger this by sending a crafted GLX
     RenderLarge request where dataBytes exceeds cmdlen, causing a
     heap buffer overflow.

     The heap buffer overflow can lead to arbitrary code execution or denial of
     service.

     Fixed in: xorg-server-21.1.25 and xwayland-24.1.14
     Fix: https://gitlab.freedesktop.org/xorg/xserver/-/commit/TBD
     Found by: Anonymous working with TrendAI Zero Day Initiative.
               (ZDI-CAN-31833)

*** Patch
[9. text/plain; 0010-glx-validate-dataBytes-against-cmdlen-in-RenderLarge.patch]
From e9330cb8dc6571b4e1e5a0189327b6f29b81cf09 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer>
Date: Wed, 26 Aug 2026 17:16:49 +1000
Subject: [PATCH xserver] glx: validate dataBytes against cmdlen in RenderLarge
 first request

__glXDisp_RenderLarge() allocates the large command buffer based on
cmdlen (from hdr->length, the total command size embedded in the
payload), but copies dataBytes (from req->dataBytes, the payload size
of the current sub-request) into it. The existing length check only
validates that the X11 request length is consistent with dataBytes,
not that dataBytes fits within the cmdlen-sized buffer.

A malicious client can set hdr->length to a small value (e.g. 12 bytes)
while sending a large dataBytes (up to ~256KB or more with
BIG-REQUESTS), causing the memcpy to overflow the cmdlen-sized buffer.

Add a check that dataBytes <= cmdlen before the buffer allocation and
copy on the first request.

This vulnerability was discovered by:
  Anonymous working with TrendAI Zero Day Initiative

ZDI-CAN-31833

CVE-2026-93517

Assisted-by: Claude:claude-opus-4-6
---
 glx/glxcmds.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/glx/glxcmds.c b/glx/glxcmds.c
index 58ef861f5d8f..39b187fd9f9f 100644
--- a/glx/glxcmds.c
+++ b/glx/glxcmds.c
@@ -2182,16 +2182,19 @@ __glXDisp_RenderLarge(__GLXclientState * cl, GLbyte * pc)
             }
         }
 
         /* the +4 is safe because we know entry.bytes is small */
         if (cmdlen != safe_pad(safe_add(entry.bytes + 4, extra))) {
             return BadLength;
         }
 
+        if (dataBytes > cmdlen)
+            return BadLength;
+
         /*
          ** Make enough space in the buffer, then copy the entire request.
          */
         if (glxc->largeCmdBufSize < cmdlen) {
 	    GLbyte *newbuf = glxc->largeCmdBuf;
 
 	    if (!(newbuf = realloc(newbuf, cmdlen)))
 		return BadAlloc;
--

Comment 1 Jon Orris 2026-10-19 04:00:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:84574 https://access.redhat.com/errata/RHSA-2026:84574

Comment 2 Jon Orris 2026-10-19 14:14:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:85191 https://access.redhat.com/errata/RHSA-2026:85191

Comment 3 Jon Orris 2026-10-19 14:40:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:85193 https://access.redhat.com/errata/RHSA-2026:85193

Comment 4 Jon Orris 2026-10-21 12:24:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:86907 https://access.redhat.com/errata/RHSA-2026:86907

Comment 5 Jon Orris 2026-10-26 03:54:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:89747 https://access.redhat.com/errata/RHSA-2026:89747

Comment 6 errata-xmlrpc 2026-11-11 09:07:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:98546 https://access.redhat.com/errata/RHSA-2026:98546

Comment 7 errata-xmlrpc 2026-11-11 09:14:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:98549 https://access.redhat.com/errata/RHSA-2026:98549

Comment 8 errata-xmlrpc 2026-11-11 09:17:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:98547 https://access.redhat.com/errata/RHSA-2026:98547

Comment 9 errata-xmlrpc 2026-11-11 09:29:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:98548 https://access.redhat.com/errata/RHSA-2026:98548

Comment 10 errata-xmlrpc 2026-11-11 10:00:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:98659 https://access.redhat.com/errata/RHSA-2026:98659

Comment 11 errata-xmlrpc 2026-11-11 10:07:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:98658 https://access.redhat.com/errata/RHSA-2026:98658

Comment 12 errata-xmlrpc 2026-11-11 10:13:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:98660 https://access.redhat.com/errata/RHSA-2026:98660

Comment 13 errata-xmlrpc 2026-11-11 11:23:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:98581 https://access.redhat.com/errata/RHSA-2026:98581

Comment 14 errata-xmlrpc 2026-11-11 11:58:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:98476 https://access.redhat.com/errata/RHSA-2026:98476

Comment 15 errata-xmlrpc 2026-11-11 12:01:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:98487 https://access.redhat.com/errata/RHSA-2026:98487

Comment 16 errata-xmlrpc 2026-11-11 12:13:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:98538 https://access.redhat.com/errata/RHSA-2026:98538

Comment 17 errata-xmlrpc 2026-11-11 13:47:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:98951 https://access.redhat.com/errata/RHSA-2026:98951

Comment 18 errata-xmlrpc 2026-11-12 06:33:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:99515 https://access.redhat.com/errata/RHSA-2026:99515

Comment 19 errata-xmlrpc 2026-11-12 13:30:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:99623 https://access.redhat.com/errata/RHSA-2026:99623

Comment 20 errata-xmlrpc 2026-11-19 18:39:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:100499 https://access.redhat.com/errata/RHSA-2026:100499

Comment 21 errata-xmlrpc 2026-11-19 18:39:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:100492 https://access.redhat.com/errata/RHSA-2026:100492

Comment 22 errata-xmlrpc 2026-11-19 18:44:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.8 Extended Update Support

Via RHSA-2026:100477 https://access.redhat.com/errata/RHSA-2026:100477

Comment 23 errata-xmlrpc 2026-11-19 23:27:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:100648 https://access.redhat.com/errata/RHSA-2026:100648

Comment 24 errata-xmlrpc 2026-11-19 23:28:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:100651 https://access.redhat.com/errata/RHSA-2026:100651


Note You need to log in before you can comment on or make changes to this bug.