Bug 2253291 (CVE-2023-6377)

Summary: CVE-2023-6377 xorg-x11-server: out-of-bounds memory reads/writes in XKB button actions
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xorg-server-21.1.10, xwayland-23.2.3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in xorg-server. Querying or changing XKB button actions such as moving from a touchpad to a mouse can result in out-of-bounds memory reads and writes. This may allow local privilege escalation or possible remote code execution in cases where X11 forwarding is involved.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2254291, 2254292    
Bug Blocks: 2253250    

Description Robb Gatica 2023-12-06 17:03:37 UTC
CVE-2023-6377: X.Org server: Out-of-bounds memory write in XKB button actions

Introduced in: xorg-server-1.6.0 (2009)
Fixed in: xorg-server-21.1.10 and xwayland-23.2.3
Found by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative

A device has XKB button actions for each button on the device. When a logical
device switch happens (e.g. moving from a touchpad to a mouse), the server
re-calculates the information available on the respective master device
(typically the Virtual Core Pointer). This re-calculation only allocated enough
memory for a single XKB action rather instead of enough for the newly active
physical device's number of button. As a result, querying or changing the XKB
button actions results in out-of-bounds memory reads and writes.

This may lead to local privilege escalation if the server is run as root or
remote code execution (e.g. x11 over ssh).

xorg-server-21.1.10 and xwayland-23.2.3 have been patched to fix this issue.

Comment 4 TEJ RATHI 2023-12-13 05:48:13 UTC
This CVE is public now:
https://lists.x.org/archives/xorg-announce/2023-December/003435.html

Comment 6 Sandipan Roy 2023-12-13 06:11:50 UTC
Created xorg-x11-server tracking bugs for this issue:

Affects: fedora-all [bug 2254291]


Created xorg-x11-server-Xwayland tracking bugs for this issue:

Affects: fedora-all [bug 2254292]

Comment 7 errata-xmlrpc 2023-12-20 13:22:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2023:7886 https://access.redhat.com/errata/RHSA-2023:7886

Comment 8 errata-xmlrpc 2024-01-02 08:25:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2024:0009 https://access.redhat.com/errata/RHSA-2024:0009

Comment 9 errata-xmlrpc 2024-01-02 08:42:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support
  Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.2 Telecommunications Update Service

Via RHSA-2024:0017 https://access.redhat.com/errata/RHSA-2024:0017

Comment 10 errata-xmlrpc 2024-01-02 08:42:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2024:0006 https://access.redhat.com/errata/RHSA-2024:0006

Comment 11 errata-xmlrpc 2024-01-02 08:53:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:0010 https://access.redhat.com/errata/RHSA-2024:0010

Comment 12 errata-xmlrpc 2024-01-02 08:54:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:0014 https://access.redhat.com/errata/RHSA-2024:0014

Comment 13 errata-xmlrpc 2024-01-02 08:54:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0015 https://access.redhat.com/errata/RHSA-2024:0015

Comment 14 errata-xmlrpc 2024-01-02 08:54:29 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 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service

Via RHSA-2024:0016 https://access.redhat.com/errata/RHSA-2024:0016

Comment 15 errata-xmlrpc 2024-01-02 08:54:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2024:0020 https://access.redhat.com/errata/RHSA-2024:0020

Comment 16 errata-xmlrpc 2024-01-02 08:55:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:0018 https://access.redhat.com/errata/RHSA-2024:0018

Comment 19 errata-xmlrpc 2024-04-30 09:43:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2170 https://access.redhat.com/errata/RHSA-2024:2170

Comment 20 errata-xmlrpc 2024-04-30 09:43:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2169 https://access.redhat.com/errata/RHSA-2024:2169

Comment 21 errata-xmlrpc 2024-05-22 09:32:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:2995 https://access.redhat.com/errata/RHSA-2024:2995

Comment 22 errata-xmlrpc 2024-05-22 09:32:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:2996 https://access.redhat.com/errata/RHSA-2024:2996