# CVE-2022-46340

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-12-14 · Modified: 2025-04-22
- Aliases: SUSE-SU-2023:0653-1, SUSE-SU-2023:0654-1, SUSE-SU-2023:0655-1, SUSE-SU-2023:0656-1, SUSE-SU-2023:0657-1, SUSE-SU-2023:0683-1, SUSE-SU-2023:0731-1, UBUNTU-CVE-2022-46340, DEBIAN-CVE-2022-46340, ALPINE-CVE-2022-46340
- Record: https://cvemate.com/vulnerability/CVE-2022-46340 · JSON: https://cvemate.com/vulnerability/CVE-2022-46340/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.695%, percentile 86.394%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 41)

- alpine xorg-server (Alpine Linux): \< 21.1.5-r0
- alpine xwayland (Alpine Linux): \< 22.1.6-r0
- debian xorg-server (Debian): \< 2:21.1.5-1
- debian xwayland (Debian): \< 2:22.1.6-1
- ubuntu xorg-server (Ubuntu): \< 2:1.15.1-0ubuntu2.11+esm7 \| \< 2:1.18.4-0ubuntu0.12+esm5 \| \< 2:1.19.6-1ubuntu4.13 \| \< 2:1.20.13-1ubuntu1~20.04.5 \| \< 2:21.1.3-2ubuntu2.5
- ubuntu xorg-server-hwe-16.04 (Ubuntu): \< 2:1.19.6-1ubuntu4.1~16.04.6+esm4
- ubuntu xorg-server-hwe-18.04 (Ubuntu): \< 2:1.20.8-2ubuntu2.2~18.04.9
- ubuntu xwayland (Ubuntu): \< 2:22.1.1-1ubuntu0.4
- debian debian\_linux: 11.0
- fedoraproject fedora: 36 \| 37
- opensuse xorg-x11-server&distro=openSUSE Leap 15.4 (openSUSE): \< 1.20.3-150200.22.5.69.1 \| \< 1.20.3-150400.38.19.1
- opensuse xwayland&distro=openSUSE Leap 15.4 (openSUSE): \< 21.1.4-150400.3.12.1
- suse xorg-x11-server&distro=SUSE Enterprise Storage 7 (SUSE Linux Enterprise): \< 1.20.3-150200.22.5.69.1
- suse xorg-x11-server&distro=SUSE Enterprise Storage 7.1 (SUSE Linux Enterprise): \< 1.20.3-150200.22.5.69.1
- suse xorg-x11-server&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS (SUSE Linux Enterprise): \< 1.20.3-150100.14.5.39.1
- suse xorg-x11-server&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS (SUSE Linux Enterprise): \< 1.20.3-150200.22.5.69.1
- suse xorg-x11-server&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS (SUSE Linux Enterprise): \< 1.20.3-150200.22.5.69.1
- suse xorg-x11-server&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS (SUSE Linux Enterprise): \< 1.20.3-150200.22.5.69.1
- suse xorg-x11-server&distro=SUSE Linux Enterprise Module for Basesystem 15 SP4 (SUSE Linux Enterprise): \< 1.20.3-150400.38.19.1
- suse xorg-x11-server&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4 (SUSE Linux Enterprise): \< 1.20.3-150400.38.19.1

## References (first 20 of 23)

- <https://access.redhat.com/security/cve/CVE-2022-46340>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2151755>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DXDF2O5PPLE3SVAJJYUOSAD5QZ4TWQ2G/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NELB7YDWRABYYBG4UPTHRBDTKJRV5M2/>
- <https://www.debian.org/security/2022/dsa-5304>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWTH3SNJ3GKYDSN7I3QDGWYEPSMWU6EP/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z67QC4C3I2FI2WRFIUPEHKC36J362MLA/>
- <https://security.gentoo.org/glsa/202305-30>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230653-1/>
- <https://bugzilla.suse.com/1205874>
- <https://www.suse.com/security/cve/CVE-2022-46340>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230654-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230655-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230656-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230657-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230683-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230731-1/>
- <https://ubuntu.com/security/CVE-2022-46340>
- <https://ubuntu.com/security/notices/USN-5778-1>
- <https://ubuntu.com/security/notices/USN-5778-2>

---

Data as of 2026-12-05T03:43:39.924Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
