Out-of-bounds write in X.org Server - CVE-2021-4011
Published: December 17, 2021 / Updated: December 21, 2021
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a boundary error in the SwapCreateRegister() function in the Record extension. A local user can send a specially crafted RecordCreateContext and RecordRegisterClients requests, trigger an out-of-bounds write and execute arbitrary code with elevated privileges.
Affected software
Gentoo Linux
Amazon Linux AMI
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Server
CentOS
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Power, big endian
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
Anolis OS
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
Slackware Linux
Ubuntu
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Workstation Extension
SUSE Linux Enterprise Module for Development Tools
SUSE Linux Enterprise Module for Basesystem
openEuler
Fedora
xorg-server (Debian package)
xorg-x11-server (Red Hat package)
xserver-xorg-core-hwe-16.04 (Ubuntu package)
xserver-xorg-core (Ubuntu package)
xorg-x11-server-extra-debuginfo
xorg-x11-server-extra
xorg-x11-server
xorg-x11-server-debuginfo
xorg-x11-server-debugsource
xorg-x11-server-sdk
xorg-x11-server-wayland-debuginfo
xorg-x11-server-wayland
xserver-xorg-core-hwe-18.04 (Ubuntu package)
xorg-x11-server-devel
xorg-x11-server-Xephyr
xorg-x11-server-help
xorg-x11-server-Xdmx
xorg-x11-server-Xnest
xorg-x11-server-Xorg
xorg-x11-server-Xvfb
xorg-x11-server-common
xorg-x11-Xvnc
xwayland (Ubuntu package)
xorg-x11-server-Xwayland
xorg-x11-server-Xwayland (Red Hat package)
x11-base/xorg-server
x11-base/xwayland
How to mitigate CVE-2021-4011
xorg-server (Debian package) - addressed in versions 2:1.20.4-1+deb10u4, 2:1.20.11-1+deb11u1
xorg-x11-server (Red Hat package) - addressed in versions 1.20.4-17.el7_9, 1.20.11-5.el8
xserver-xorg-core-hwe-16.04 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
xserver-xorg-core (Ubuntu package) - addressed in versions 2:1.18.40ubuntu0.12+esm1, 2:1.19.6-1ubuntu4.10, 2:1.20.11-1ubuntu1.2, 2:1.20.13-1ubuntu1.1, 2:1.20.13-1ubuntu1~20.04.2
xorg-x11-server-extra-debuginfo - addressed in versions 1.19.6-4.28.1, 1.19.6-8.36.1, 1.19.6-10.29.1, 1.20.3-14.5.22.1, 1.20.3-22.5.42.1, 7.6_1.18.3-76.46.1
xorg-x11-server-extra - addressed in versions 1.19.6-4.28.1, 1.19.6-8.36.1, 1.19.6-10.29.1, 1.20.3-14.5.22.1, 1.20.3-22.5.42.1, 7.4-27.122.46.1, 7.6_1.18.3-76.46.1
xorg-x11-server - addressed in versions 1.19.6-4.28.1, 1.19.6-8.36.1, 1.19.6-10.29.1, 1.20.3-14.5.22.1, 1.20.3-22.5.42.1, 7.4-27.122.46.1, 7.6_1.18.3-76.46.1
xorg-x11-server-debuginfo - addressed in versions 1.19.6-4.28.1, 1.19.6-8.36.1, 1.19.6-10.29.1, 1.20.3-14.5.22.1, 1.20.3-22.5.42.1, 7.4-27.122.46.1, 7.6_1.18.3-76.46.1
xorg-x11-server-debugsource - addressed in versions 1.19.6-4.28.1, 1.19.6-8.36.1, 1.19.6-10.29.1, 1.20.3-14.5.22.1, 1.20.3-22.5.42.1, 7.4-27.122.46.1, 7.6_1.18.3-76.46.1
xorg-x11-server-sdk - addressed in versions 1.19.6-8.36.1, 1.19.6-10.29.1, 1.20.3-14.5.22.1, 1.20.3-22.5.42.1
xorg-x11-server-wayland-debuginfo - update to 1.20.3-22.5.42.1
xorg-x11-server-wayland - update to 1.20.3-22.5.42.1
xserver-xorg-core-hwe-18.04 (Ubuntu package) - update to 2:1.20.8-2ubuntu2.2~18.04.6
xorg-x11-server - addressed in versions 1.20.8-10, 1.20.8-12
xorg-x11-server-devel - addressed in versions 1.20.8-10, 1.20.8-12
xorg-x11-server-Xephyr - addressed in versions 1.20.8-10, 1.20.8-12
xorg-x11-server-help - addressed in versions 1.20.8-10, 1.20.8-12
xorg-x11-server-debugsource - addressed in versions 1.20.8-10, 1.20.8-12
xorg-x11-server-debuginfo - addressed in versions 1.20.8-10, 1.20.8-12
xorg-x11-server-Xdmx - update to 1.20.11-5
xorg-x11-server-Xephyr - update to 1.20.11-5
xorg-x11-server-Xnest - update to 1.20.11-5
xorg-x11-server-Xorg - update to 1.20.11-5
xorg-x11-server-Xvfb - update to 1.20.11-5
xorg-x11-server-common - update to 1.20.11-5
xorg-x11-server - addressed in versions 1.20.14-1.fc34, 1.20.14-1.fc35
xorg-x11-server - update to 1.20.14-12
xorg-x11-Xvnc - update to 7.4-27.122.46.1
xwayland (Ubuntu package) - addressed in versions 2:21.1.1-0ubuntu1.1, 2:21.1.2-0ubuntu1.1
xorg-x11-server-Xwayland - update to 21.1.3-2
xorg-x11-server-Xwayland (Red Hat package) - update to 21.1.3-2.el8
xorg-x11-server-Xwayland - addressed in versions 21.1.4-1.fc34, 21.1.4-1.fc35
x11-base/xorg-server - update to 21.1.8
x11-base/xwayland - update to 23.1.1
External References
Related Security Bulletins
- Multiple vulnerabilities in X.Org Server
- Slackware Linux update for xorg-server
- Debian update for xorg-server
- Red Hat Enterprise Linux 7 update for xorg-x11-server
- CentOS 7 update for xorg-x11-server
- Red Hat Enterprise Linux 8 update for xorg-x11-server and xorg-x11-server-Xwayland
- SUSE update for xorg-x11-server
- SUSE update for xorg-x11-server
- SUSE update for xorg-x11-server
- SUSE update for xorg-x11-server
- SUSE update for xorg-x11-server
- SUSE update for xorg-x11-server
- SUSE update for xorg-x11-server
- Ubuntu update for xorg-server
- Ubuntu update for xorg-server
- Gentoo update for X.Org X server, XWayland
- Ubuntu update for xorg-server-hwe-16.04
- openEuler update for xorg-x11-server
- openEuler 20.03 LTS SP3 update for xorg-x11-server
- Amazon Linux AMI update for xorg-x11-server
- Fedora 35 update for xorg-x11-server-Xwayland
- Fedora 34 update for xorg-x11-server-Xwayland
- Fedora 35 update for xorg-x11-server
- Fedora 34 update for xorg-x11-server
- Anolis OS update for xorg-x11-server-Xwayland and xorg-x11-server