CVEfocus › CVE database › CVE-2022-46340

CVE-2022-46340

CVSS 8.8 HighEPSS 2.4% (higher than 85% of CVEs)Published 2022-12-14Updated 2025-04-22Assigner: redhat

A vulnerability was found in X.Org. This security flaw occurs becuase the swap handler for the XTestFakeInput request of the XTest extension may corrupt the stack if GenericEvents with lengths larger than 32 bytes are sent through a the XTestFakeInput request. This issue can lead to local privileges elevation on systems where the X server is running privileged and remote code execution for ssh X forwarding sessions. This issue does not affect systems where client and server use the same byte order.

CWE-787

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

110Fixed
7Fix pending
9Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04xorg-serverFixed2:21.1.3-2ubuntu2.5UBUNTU-CVE-2022-46340
Ubuntu 22.04xwaylandFixed2:22.1.1-1ubuntu0.4UBUNTU-CVE-2022-46340
Ubuntu 20.04xorg-serverFixed2:1.20.13-1ubuntu1~20.04.5UBUNTU-CVE-2022-46340
Ubuntu 18.04xorg-serverFixed2:1.19.6-1ubuntu4.13UBUNTU-CVE-2022-46340
Ubuntu 18.04xorg-server-hwe-18.04Fixed2:1.20.8-2ubuntu2.2~18.04.9UBUNTU-CVE-2022-46340
Ubuntu 16.04xorg-serverFix pending2:1.18.4-0ubuntu0.12+esm5 (Ubuntu Pro)UBUNTU-CVE-2022-46340
Ubuntu 16.04xorg-server-hwe-16.04Fix pending2:1.19.6-1ubuntu4.1~16.04.6+esm4 (Ubuntu Pro)UBUNTU-CVE-2022-46340
Ubuntu 14.04xorg-serverFix pending2:1.15.1-0ubuntu2.11+esm7 (Ubuntu Pro)UBUNTU-CVE-2022-46340
Ubuntu 14.04xorg-server-lts-utopicFix pending
Ubuntu 14.04xorg-server-lts-vividFix pending
Ubuntu 14.04xorg-server-lts-wilyFix pending
Ubuntu 14.04xorg-server-lts-xenialFix pending
Debian 14xorg-serverFixed2:21.1.5-1DEBIAN-CVE-2022-46340
Debian 14xwaylandFixed2:22.1.6-1DEBIAN-CVE-2022-46340
Debian 13xorg-serverFixed2:21.1.5-1DEBIAN-CVE-2022-46340
Debian 13xwaylandFixed2:22.1.6-1DEBIAN-CVE-2022-46340
Debian 12xorg-serverFixed2:21.1.5-1DEBIAN-CVE-2022-46340
Debian 12xwaylandFixed2:22.1.6-1DEBIAN-CVE-2022-46340
Red Hat Enterprise Linux 9tigervncFixed0:1.12.0-13.el9_2RHSA-2023:2257
Red Hat Enterprise Linux 9tigervnc-iconsFixed0:1.12.0-13.el9_2RHSA-2023:2257
Red Hat Enterprise Linux 9tigervnc-licenseFixed0:1.12.0-13.el9_2RHSA-2023:2257
Red Hat Enterprise Linux 9tigervnc-selinuxFixed0:1.12.0-13.el9_2RHSA-2023:2257
Red Hat Enterprise Linux 9tigervnc-serverFixed0:1.12.0-13.el9_2RHSA-2023:2257
Red Hat Enterprise Linux 9tigervnc-server-minimalFixed0:1.12.0-13.el9_2RHSA-2023:2257
Red Hat Enterprise Linux 9tigervnc-server-moduleFixed0:1.12.0-13.el9_2RHSA-2023:2257
Red Hat Enterprise Linux 9xorg-x11-serverFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-XdmxFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-XephyrFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-XnestFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-XorgFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-XvfbFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-XwaylandFixed0:21.1.3-7.el9RHSA-2023:2249
Red Hat Enterprise Linux 9xorg-x11-server-commonFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-develFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 9xorg-x11-server-sourceFixed0:1.20.11-17.el9RHSA-2023:2248
Red Hat Enterprise Linux 8tigervncFixed0:1.12.0-15.el8_8RHSA-2023:2830
Red Hat Enterprise Linux 8tigervnc-iconsFixed0:1.12.0-15.el8_8RHSA-2023:2830
Red Hat Enterprise Linux 8tigervnc-licenseFixed0:1.12.0-15.el8_8RHSA-2023:2830
Red Hat Enterprise Linux 8tigervnc-selinuxFixed0:1.12.0-15.el8_8RHSA-2023:2830
Red Hat Enterprise Linux 8tigervnc-serverFixed0:1.12.0-15.el8_8RHSA-2023:2830
Red Hat Enterprise Linux 8tigervnc-server-minimalFixed0:1.12.0-15.el8_8RHSA-2023:2830
Red Hat Enterprise Linux 8tigervnc-server-moduleFixed0:1.12.0-15.el8_8RHSA-2023:2830
Red Hat Enterprise Linux 8xorg-x11-serverFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-XdmxFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-XephyrFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-XnestFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-XorgFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-XvfbFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-XwaylandFixed0:21.1.3-10.el8RHSA-2023:2805
Red Hat Enterprise Linux 8xorg-x11-server-commonFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-develFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 8xorg-x11-server-sourceFixed0:1.20.11-15.el8RHSA-2023:2806
Red Hat Enterprise Linux 7tigervncFixed0:1.8.0-23.el7_9RHSA-2023:0045
Red Hat Enterprise Linux 7tigervnc-iconsFixed0:1.8.0-23.el7_9RHSA-2023:0045
Red Hat Enterprise Linux 7tigervnc-licenseFixed0:1.8.0-23.el7_9RHSA-2023:0045
Red Hat Enterprise Linux 7tigervnc-serverFixed0:1.8.0-23.el7_9RHSA-2023:0045
Red Hat Enterprise Linux 7tigervnc-server-appletFixed0:1.8.0-23.el7_9RHSA-2023:0045
Red Hat Enterprise Linux 7tigervnc-server-minimalFixed0:1.8.0-23.el7_9RHSA-2023:0045
Red Hat Enterprise Linux 7tigervnc-server-moduleFixed0:1.8.0-23.el7_9RHSA-2023:0045
Red Hat Enterprise Linux 7xorg-x11-serverFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-XdmxFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-XephyrFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-XnestFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-XorgFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-XvfbFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-XwaylandFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-commonFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-develFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 7xorg-x11-server-sourceFixed0:1.20.4-21.el7_9RHSA-2023:0046
Red Hat Enterprise Linux 6xorg-x11-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XdmxWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XephyrWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XnestWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XorgWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XvfbWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-sourceWill not fix
Out of support scope
AlmaLinux 9tigervncFixed1.12.0-13.el9_2ALSA-2023:2257
AlmaLinux 9tigervnc-iconsFixed1.12.0-13.el9_2ALSA-2023:2257
AlmaLinux 9tigervnc-licenseFixed1.12.0-13.el9_2ALSA-2023:2257
AlmaLinux 9tigervnc-selinuxFixed1.12.0-13.el9_2ALSA-2023:2257
AlmaLinux 9tigervnc-serverFixed1.12.0-13.el9_2ALSA-2023:2257
AlmaLinux 9tigervnc-server-minimalFixed1.12.0-13.el9_2ALSA-2023:2257
AlmaLinux 9tigervnc-server-moduleFixed1.12.0-13.el9_2ALSA-2023:2257
AlmaLinux 9xorg-x11-server-XdmxFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 9xorg-x11-server-XephyrFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 9xorg-x11-server-XnestFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 9xorg-x11-server-XorgFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 9xorg-x11-server-XvfbFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 9xorg-x11-server-XwaylandFixed21.1.3-7.el9ALSA-2023:2249
AlmaLinux 9xorg-x11-server-commonFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 9xorg-x11-server-develFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 9xorg-x11-server-sourceFixed1.20.11-17.el9ALSA-2023:2248
AlmaLinux 8tigervncFixed1.12.0-15.el8_8ALSA-2023:2830
AlmaLinux 8tigervnc-iconsFixed1.12.0-15.el8_8ALSA-2023:2830
AlmaLinux 8tigervnc-licenseFixed1.12.0-15.el8_8ALSA-2023:2830
AlmaLinux 8tigervnc-selinuxFixed1.12.0-15.el8_8ALSA-2023:2830
AlmaLinux 8tigervnc-serverFixed1.12.0-15.el8_8ALSA-2023:2830
AlmaLinux 8tigervnc-server-minimalFixed1.12.0-15.el8_8ALSA-2023:2830
AlmaLinux 8tigervnc-server-moduleFixed1.12.0-15.el8_8ALSA-2023:2830
AlmaLinux 8xorg-x11-server-XdmxFixed1.20.11-15.el8ALSA-2023:2806
AlmaLinux 8xorg-x11-server-XephyrFixed1.20.11-15.el8ALSA-2023:2806
AlmaLinux 8xorg-x11-server-XnestFixed1.20.11-15.el8ALSA-2023:2806
AlmaLinux 8xorg-x11-server-XorgFixed1.20.11-15.el8ALSA-2023:2806
AlmaLinux 8xorg-x11-server-XvfbFixed1.20.11-15.el8ALSA-2023:2806
AlmaLinux 8xorg-x11-server-XwaylandFixed21.1.3-10.el8ALSA-2023:2805
AlmaLinux 8xorg-x11-server-commonFixed1.20.11-15.el8ALSA-2023:2806
AlmaLinux 8xorg-x11-server-develFixed1.20.11-15.el8ALSA-2023:2806
AlmaLinux 8xorg-x11-server-sourceFixed1.20.11-15.el8ALSA-2023:2806
Alpine Linux 3.24xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.24xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340
Alpine Linux 3.23xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.23xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340
Alpine Linux 3.22xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.22xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340
Alpine Linux 3.21xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.21xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340
Alpine Linux 3.20xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.20xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340
Alpine Linux 3.19xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.19xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340
Alpine Linux 3.18xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.18xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340
Alpine Linux 3.17xorg-serverFixed21.1.5-r0ALPINE-CVE-2022-46340
Alpine Linux 3.17xwaylandFixed22.1.6-r0ALPINE-CVE-2022-46340

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.