Heap-based buffer overflow in X.org Server - CVE-2020-25712

 

Heap-based buffer overflow in X.org Server - CVE-2020-25712

Published: December 2, 2020


Vulnerability identifier: #VU48759
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H]
CVE-ID: CVE-2020-25712
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error within XkbSetDeviceInfo functionality. A local user can pass specially crafted data to the application, trigger heap-based buffer overflow and execute arbitrary code on the target system with elevated privileges.


Affected software

X.org Server
Arch Linux
Gentoo Linux
Red Hat Enterprise Linux for Power, big endian
CentOS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for ARM 64
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 x86_64
Ubuntu
openEuler
Fedora
xorg-x11-server (Red Hat package)
xorg-server (Alpine package)
xorg-server (Debian package)
xserver-xorg-core (Ubuntu package)
egl-wayland (Red Hat package)
libglvnd (Red Hat package)
libwacom (Red Hat package)
libX11 (Red Hat package)
libinput (Red Hat package)
xorg-x11-server-help
xorg-x11-server-debugsource
xorg-x11-server-devel
xorg-x11-server-Xephyr
xorg-x11-server-debuginfo
xorg-x11-server
libdrm (Red Hat package)
xorg-x11-drivers (Red Hat package)
mesa (Red Hat package)
xserver-xorg-core-hwe-16.04 (Ubuntu package)
xserver-xorg-core-hwe-18.04 (Ubuntu package)
Cloud Pak for Security (CP4S)
OpenShift Virtualization
Data Computing Appliance (DCA)

How to mitigate CVE-2020-25712

Install updates from vendor's website.

X.org Server - update to 1.20.10
xorg-x11-server (Red Hat package) - addressed in versions 1.20.4-15.el7_9, 1.20.10-1.el8
Cloud Pak for Security (CP4S) - update to 1.8.0.0
xorg-server (Alpine package) - update to 1.20.10-r0
xorg-server (Debian package) - update to 2:1.20.4-1+deb10u2
xserver-xorg-core (Ubuntu package) - addressed in versions 2:1.15.1-0ubuntu2.11+esm3, 2:1.18.4-0ubuntu0.11, 2:1.19.6-1ubuntu4.8, 2:1.20.8-2ubuntu2.6, 2:1.20.9-2ubuntu1.1
egl-wayland (Red Hat package) - update to 1.1.5-3.el8
libglvnd (Red Hat package) - update to 1.3.2-1.el8
libwacom (Red Hat package) - update to 1.6-2.el8
libX11 (Red Hat package) - update to 1.6.8-4.el8
libinput (Red Hat package) - update to 1.16.3-1.el8
xorg-x11-server-help - update to 1.20.8-4
xorg-x11-server-debugsource - update to 1.20.8-4
xorg-x11-server-devel - update to 1.20.8-4
xorg-x11-server-Xephyr - update to 1.20.8-4
xorg-x11-server-debuginfo - update to 1.20.8-4
xorg-x11-server - update to 1.20.8-4
xorg-x11-server - addressed in versions 1.20.10-1.fc32, 1.20.10-1.fc33
libdrm (Red Hat package) - update to 2.4.103-1.el8
xorg-x11-drivers (Red Hat package) - update to 7.7-30.el8
mesa (Red Hat package) - update to 20.3.3-2.el8
OpenShift Virtualization - addressed in versions 2.6.6, 4.8.0
Data Computing Appliance (DCA) - update to 4.3.0.0
xserver-xorg-core-hwe-16.04 (Ubuntu package) - update to 2:1.19.6-1ubuntu4.1~16.04.5
xserver-xorg-core-hwe-18.04 (Ubuntu package) - update to 2:1.20.8-2ubuntu2.2~18.04.4

External References

Related Security Bulletins