Vulnerability · Published Sep 1, 2022 · Assigned by redhat
CVE-2022-2320
High 7.8
In plain English
A high-severity out-of-bounds write in xorg-x11-server. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in the Xorg-x11-server. The specific flaw exists within the handling of ProcXkbSetDeviceInfo requests. The issue results from the lack of proper validation of user-supplied data, which can result in a memory access past the end of an allocated buffer. This flaw allows an attacker to escalate privileges and execute arbitrary code in the context of root.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | xorg-x11-server-Xdmx | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-Xdmx | 1.20.11-11.el9 | ALSA-2022:8221 |
| AlmaLinux:8 | xorg-x11-server-Xephyr | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-Xephyr | 1.20.11-11.el9 | ALSA-2022:8221 |
| AlmaLinux:8 | xorg-x11-server-Xnest | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-Xnest | 1.20.11-11.el9 | ALSA-2022:8221 |
| AlmaLinux:8 | xorg-x11-server-Xorg | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-Xorg | 1.20.11-11.el9 | ALSA-2022:8221 |
| AlmaLinux:8 | xorg-x11-server-Xvfb | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-Xvfb | 1.20.11-11.el9 | ALSA-2022:8221 |
| AlmaLinux:8 | xorg-x11-server-Xwayland | 21.1.3-6.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-Xwayland | 21.1.3-3.el9 | ALSA-2022:8222 |
| AlmaLinux:8 | xorg-x11-server-common | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-common | 1.20.11-11.el9 | ALSA-2022:8221 |
| AlmaLinux:8 | xorg-x11-server-devel | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-devel | 1.20.11-11.el9 | ALSA-2022:8221 |
| AlmaLinux:8 | xorg-x11-server-source | 1.20.11-9.el8 | ALSA-2022:7583 |
| AlmaLinux:9 | xorg-x11-server-source | 1.20.11-11.el9 | ALSA-2022:8221 |
| Alpine:v3.20 | xorg-server | 21.1.4-r0 | ALPINE-CVE-2022-2320 |
| Alpine:v3.21 | xorg-server | 21.1.4-r0 | ALPINE-CVE-2022-2320 |
| Alpine:v3.22 | xorg-server | 21.1.4-r0 | ALPINE-CVE-2022-2320 |
| Alpine:v3.23 | xorg-server | 21.1.4-r0 | ALPINE-CVE-2022-2320 |
| Alpine:v3.24 | xorg-server | 21.1.4-r0 | ALPINE-CVE-2022-2320 |
| Debian:12 | xorg-server | 2:21.1.4-1 | DEBIAN-CVE-2022-2320 |
| Debian:13 | xorg-server | 2:21.1.4-1 | DEBIAN-CVE-2022-2320 |
| Debian:14 | xorg-server | 2:21.1.4-1 | DEBIAN-CVE-2022-2320 |
| Debian:12 | xwayland | 2:22.1.3-1 | DEBIAN-CVE-2022-2320 |
| Debian:13 | xwayland | 2:22.1.3-1 | DEBIAN-CVE-2022-2320 |
| Debian:14 | xwayland | 2:22.1.3-1 | DEBIAN-CVE-2022-2320 |
| Rocky Linux:8 | xorg-x11-server | 0:1.20.11-9.el8 | RLSA-2022:7583 |
| Rocky Linux:9 | xorg-x11-server | 0:1.20.11-11.el9 | RLSA-2022:8221 |
| Rocky Linux:8 | xorg-x11-server-Xwayland | 0:21.1.3-6.el8 | RLSA-2022:7583 |
| Rocky Linux:9 | xorg-x11-server-Xwayland | 0:21.1.3-3.el9 | RLSA-2022:8222 |
| Rocky Linux:8 | xorg-x11-xtrans-devel | 0:1.4.0-4.el8 | RLSA-2022:7583 |
| Ubuntu:22.04:LTS | xorg-server | 2:21.1.3-2ubuntu2.1 | USN-5510-1 |
| Ubuntu:22.04:LTS | xorg-server | 2:21.1.3-2ubuntu2.1 | UBUNTU-CVE-2022-2320 |
| Ubuntu:22.04:LTS | xwayland | 2:22.1.1-1ubuntu0.1 | USN-5510-1 |
| Ubuntu:22.04:LTS | xwayland | 2:22.1.1-1ubuntu0.1 | UBUNTU-CVE-2022-2320 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | xorg-x11-server | xorg-x11-server 21.1 |
Weakness: CWE-787
References
- https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/938
- https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/939
- https://github.com/freedesktop/xorg-xserver/commit/dd8caf39e9e15d8f302e54045dd08d8ebf1025dc
- https://www.zerodayinitiative.com/advisories/ZDI-22-963/
- https://lists.freedesktop.org/archives/xorg-announce/2022-July/003192.html
- GLSA-202210-30 vendor-advisory
- https://security.netapp.com/advisory/ntap-20221104-0003/