CVE-2022-2320

NameCVE-2022-2320
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3068-1, DSA-5199-1
Debian Bugs1014903

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
xorg-server (PTS)buster2:1.20.4-1+deb10u4vulnerable
buster (security)2:1.20.4-1+deb10u6fixed
bullseye2:1.20.11-1+deb11u2fixed
bullseye (security)2:1.20.11-1+deb11u3fixed
bookworm, sid2:21.1.4-3fixed
xwayland (PTS)bookworm, sid2:22.1.5-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
xorg-serversourcebuster2:1.20.4-1+deb10u5DLA-3068-1
xorg-serversourcebullseye2:1.20.11-1+deb11u2DSA-5199-1
xorg-serversource(unstable)2:21.1.4-11014903
xwaylandsource(unstable)2:22.1.3-1

Notes

Introduced by: https://github.com/freedesktop/xorg-xserver/commit/c06e27b2f6fd9f7b9f827623a48876a225264132 (xorg-server-1.5.99.1)
Fixed by: https://github.com/freedesktop/xorg-xserver/commit/dd8caf39e9e15d8f302e54045dd08d8ebf1025dc
Required for fixes: https://github.com/freedesktop/xorg-xserver/commit/f1070c01d616c5f21f939d5ebc533738779451ac
https://www.openwall.com/lists/oss-security/2022/07/12/1

Search for package or bug name: Reporting problems