CVE-2023-5367: Xorg-x11-server: out-of-bounds write in xichangedeviceproperty/rrchangeoutputproperty
A out-of-bounds write flaw was found in the xorg-x11-server. This issue occurs due to an incorrect calculation of a buffer offset when copying data stored in the heap in the XIChangeDeviceProperty function in Xi/xiproperty.c and in RRChangeOutputProperty function in randr/rrproperty.c, allowing for possible escalation of privileges or denial of service.
Other sources
An invalid offset calculation in the XIChangeDeviceProperty/RRChangeOutputProperty may result in an out-of-bounds memory write.
Reference: https://lists.x.org/archives/xorg-announce/2023-October/003430.html
— Red Hat
X.Org X Server could allow a local authenticated attacker to execute arbitrary code on the system, caused by an out-of-bounds write flaw in XIChangeDeviceProperty/RRChangeOutputProperty. By sending a specially crafted request, an attacker could exploit this vulnerability to execute arbitrary code on the system.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.20.4-1+deb10u12Fixed in 2:1.20.11-1+deb11u10Fixed in 2:21.1.7-3+deb12u2Fixed in 2:21.1.7-3+deb12u4Fixed in 2:21.1.10-1 - Upgrade
Upgrade
debian/xwaylandto a version that resolves this vulnerability.Fixed in 2:23.2.3-1 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.15.1-0ubuntu2.11+ - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.18.4-0ubuntu0.12+ - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.19.6-1ubuntu4.15+ - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 21.1.9 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:1.20.13-1ubuntu1~20.04.9 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:21.1.4-2ubuntu1.7~22.04.2 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:21.1.7-1ubuntu3.1 - Upgrade
Upgrade
ubuntu/xorg-serverto a version that resolves this vulnerability.Fixed in 2:21.1.7-3ubuntu2.1 - Upgrade
Upgrade
ubuntu/xwaylandto a version that resolves this vulnerability.Fixed in 23.2.2 - Upgrade
Upgrade
ubuntu/xwaylandto a version that resolves this vulnerability.Fixed in 2:22.1.1-1ubuntu0.7 - Upgrade
Upgrade
ubuntu/xwaylandto a version that resolves this vulnerability.Fixed in 2:22.1.8-1ubuntu1.1 - Upgrade
Upgrade
ubuntu/xwaylandto a version that resolves this vulnerability.Fixed in 2:23.2.0-1ubuntu0.1 - Upgrade
Upgrade
redhat/xorg-serverto a version that resolves this vulnerability.Fixed in 21.1.9 - Upgrade
Upgrade
redhat/xwaylandto a version that resolves this vulnerability.Fixed in 23.2.2
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2023-5367?
The severity of CVE-2023-5367 is high (7.8).
How does CVE-2023-5367 affect xorg-x11-server?
CVE-2023-5367 affects xorg-x11-server versions 2:1.15.1-0ubuntu2.11+ or later.
How does CVE-2023-5367 affect xwayland?
CVE-2023-5367 affects xwayland versions 2:23.2.2 or earlier.
What is the remedy for CVE-2023-5367 on Ubuntu?
The remedy for CVE-2023-5367 on Ubuntu is to update xorg-server to version 2:1.15.1-0ubuntu2.11+ or later.
What is the remedy for CVE-2023-5367 on Debian?
The remedy for CVE-2023-5367 on Debian is to update xorg-server to version 2:1.20.4-1+deb10u10, 2:1.20.11-1+deb11u8, or 2:21.1.7-3+deb12u2.