CVE-2022-46340
published high CVSS 3.1 · 8.8xorg-x11-server: XTestSwapFakeInput stack overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | xorg-x11-serverxorg-x11-server-1.20.4 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-1982 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-102 | Fixed | Not stated | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-7 | xorg-x11-serversrc | Advisory build | 1.20.4-21.el7_9 | RHSA-2023:0046 |
| SUSE / openSUSE | SLE-12-SP2 | xorg-x11-serverx86_64 | Advisory build | 7.6_1.18.3-76.57.1 | SUSE-SU-2022:4485-1 |
| AlmaLinux | 8 | tigervnc | Advisory build | 1.12.0-15.el8_8 | ALSA-2023:2830 |
| Red Hat Enterprise Linux | RHEL-8 | xorg-x11-serversrc | Advisory build | 1.20.11-15.el8 | RHSA-2023:2806 |
| Red Hat Enterprise Linux | RHEL-9 | xorg-x11-serversrc | Advisory build | 1.20.11-17.el9 | RHSA-2023:2248 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP2 | xorg-x11-serverx86_64 | Advisory build | 7.6_1.18.3-76.63.1 | SUSE-SU-2023:0653-1 |
| SUSE / openSUSE | SLE-12-SP3 | xorg-x11-serverx86_64 | Advisory build | 7.6_1.18.3-76.57.1 | SUSE-SU-2022:4485-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-serveraarch64 | Advisory build | 1.19.6-4.39.1 | SUSE-SU-2022:4484-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-serveraarch64 | Advisory build | 1.19.6-4.45.1 | SUSE-SU-2023:0655-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-serverppc64le | Advisory build | 1.19.6-4.39.1 | SUSE-SU-2022:4484-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-serverppc64le | Advisory build | 1.19.6-4.45.1 | SUSE-SU-2023:0655-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-servers390x | Advisory build | 1.19.6-4.39.1 | SUSE-SU-2022:4484-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-servers390x | Advisory build | 1.19.6-4.45.1 | SUSE-SU-2023:0655-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-serverx86_64 | Advisory build | 1.19.6-4.39.1 | SUSE-SU-2022:4484-1 |
| SUSE / openSUSE | SLE-12-SP4 | xorg-x11-serverx86_64 | Advisory build | 1.19.6-4.45.1 | SUSE-SU-2023:0655-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-serveraarch64 | Advisory build | 1.19.6-10.40.1 | SUSE-SU-2022:4483-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-serveraarch64 | Advisory build | 1.19.6-10.46.1 | SUSE-SU-2023:0656-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-serverppc64le | Advisory build | 1.19.6-10.40.1 | SUSE-SU-2022:4483-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-serverppc64le | Advisory build | 1.19.6-10.46.1 | SUSE-SU-2023:0656-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-servers390x | Advisory build | 1.19.6-10.40.1 | SUSE-SU-2022:4483-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-servers390x | Advisory build | 1.19.6-10.46.1 | SUSE-SU-2023:0656-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-serverx86_64 | Advisory build | 1.19.6-10.40.1 | SUSE-SU-2022:4483-1 |
| SUSE / openSUSE | SLE-12-SP5 | xorg-x11-serverx86_64 | Advisory build | 1.19.6-10.46.1 | SUSE-SU-2023:0656-1 |
| SUSE / openSUSE | SLE-15 | xorg-x11-serveraarch64 | Advisory build | 1.19.6-150000.8.47.1 | SUSE-SU-2022:4482-1 |
| SUSE / openSUSE | SLE-15 | xorg-x11-serverppc64le | Advisory build | 1.19.6-150000.8.47.1 | SUSE-SU-2022:4482-1 |
| SUSE / openSUSE | SLE-15 | xorg-x11-servers390x | Advisory build | 1.19.6-150000.8.47.1 | SUSE-SU-2022:4482-1 |
| SUSE / openSUSE | SLE-15 | xorg-x11-serverx86_64 | Advisory build | 1.19.6-150000.8.47.1 | SUSE-SU-2022:4482-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150100.14.5.33.1 | SUSE-SU-2022:4481-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150100.14.5.39.1 | SUSE-SU-2023:0657-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150100.14.5.33.1 | SUSE-SU-2022:4481-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150100.14.5.39.1 | SUSE-SU-2023:0657-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-servers390x | Advisory build | 1.20.3-150100.14.5.33.1 | SUSE-SU-2022:4481-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-servers390x | Advisory build | 1.20.3-150100.14.5.39.1 | SUSE-SU-2023:0657-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150100.14.5.33.1 | SUSE-SU-2022:4481-1 |
| SUSE / openSUSE | SLE-15-SP1 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150100.14.5.39.1 | SUSE-SU-2023:0657-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-servers390x | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-servers390x | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP2 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-servers390x | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-servers390x | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | SLE-15-SP3 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150200.22.5.69.1 | SUSE-SU-2023:0683-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-servers390x | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-servers390x | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | SLE-15-SP4 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xorg-x11-servers390x | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150200.22.5.63.1 | SUSE-SU-2022:4480-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-serveraarch64 | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-serverppc64le | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-servers390x | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-servers390x | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150400.38.13.1 | SUSE-SU-2022:4479-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | xorg-x11-serverx86_64 | Advisory build | 1.20.3-150400.38.19.1 | SUSE-SU-2023:0731-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xorg-x11-serveraarch64 | Advisory build | 21.1.4-6.1 | OPENSUSE-SU-2024:12569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xorg-x11-serverppc64le | Advisory build | 21.1.4-6.1 | OPENSUSE-SU-2024:12569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xorg-x11-servers390x | Advisory build | 21.1.4-6.1 | OPENSUSE-SU-2024:12569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | xorg-x11-serverx86_64 | Advisory build | 21.1.4-6.1 | OPENSUSE-SU-2024:12569-1 |
| AlmaLinux | 8 | tigervnc-icons | Advisory build | 1.12.0-15.el8_8 | ALSA-2023:2830 |
| AlmaLinux | 8 | tigervnc-license | Advisory build | 1.12.0-15.el8_8 | ALSA-2023:2830 |
| AlmaLinux | 8 | tigervnc-selinux | Advisory build | 1.12.0-15.el8_8 | ALSA-2023:2830 |
| AlmaLinux | 8 | tigervnc-server | Advisory build | 1.12.0-15.el8_8 | ALSA-2023:2830 |
| AlmaLinux | 8 | tigervnc-server-minimal | Advisory build | 1.12.0-15.el8_8 | ALSA-2023:2830 |
| AlmaLinux | 8 | tigervnc-server-module | Advisory build | 1.12.0-15.el8_8 | ALSA-2023:2830 |
| AlmaLinux | 8 | xorg-x11-server-Xdmx | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 8 | xorg-x11-server-Xephyr | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 8 | xorg-x11-server-Xnest | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 8 | xorg-x11-server-Xorg | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 8 | xorg-x11-server-Xvfb | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 8 | xorg-x11-server-Xwayland | Advisory build | 21.1.3-10.el8 | ALSA-2023:2805 |
| AlmaLinux | 8 | xorg-x11-server-common | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 8 | xorg-x11-server-devel | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 8 | xorg-x11-server-source | Advisory build | 1.20.11-15.el8 | ALSA-2023:2806 |
| AlmaLinux | 9 | tigervnc | Advisory build | 1.12.0-13.el9_2 | ALSA-2023:2257 |
| AlmaLinux | 9 | tigervnc-icons | Advisory build | 1.12.0-13.el9_2 | ALSA-2023:2257 |
| AlmaLinux | 9 | tigervnc-license | Advisory build | 1.12.0-13.el9_2 | ALSA-2023:2257 |
| AlmaLinux | 9 | tigervnc-selinux | Advisory build | 1.12.0-13.el9_2 | ALSA-2023:2257 |
| AlmaLinux | 9 | tigervnc-server | Advisory build | 1.12.0-13.el9_2 | ALSA-2023:2257 |
| AlmaLinux | 9 | tigervnc-server-minimal | Advisory build | 1.12.0-13.el9_2 | ALSA-2023:2257 |
| AlmaLinux | 9 | tigervnc-server-module | Advisory build | 1.12.0-13.el9_2 | ALSA-2023:2257 |
| AlmaLinux | 9 | xorg-x11-server-Xdmx | Advisory build | 1.20.11-17.el9 | ALSA-2023:2248 |
| AlmaLinux | 9 | xorg-x11-server-Xephyr | Advisory build | 1.20.11-17.el9 | ALSA-2023:2248 |
| AlmaLinux | 9 | xorg-x11-server-Xnest | Advisory build | 1.20.11-17.el9 | ALSA-2023:2248 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | xorg-x11-server | xorg-x11-server-1.20.4 (affected) | redhat · cna |
Weaknesses
2- stack overflow
- CWE-787 CWE-787 Out-of-bounds Write
References
8- https://access.redhat.com/security/cve/CVE-2022-46340
- https://bugzilla.redhat.com/show_bug.cgi?id=2151755
- FEDORA-2022-721a78b7e5 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NELB7YDWRABYYBG4UPTHRBDTKJRV5M2/
- FEDORA-2022-c3a65f7c65 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DXDF2O5PPLE3SVAJJYUOSAD5QZ4TWQ2G/
- FEDORA-2022-3d88188071 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWTH3SNJ3GKYDSN7I3QDGWYEPSMWU6EP/
- FEDORA-2022-dd3eb7e0a8 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z67QC4C3I2FI2WRFIUPEHKC36J362MLA/
- https://security.gentoo.org/glsa/202305-30
- DSA-5304 https://www.debian.org/security/2022/dsa-5304
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ea619e5a39a8f51c0469da17430496b1f00731237b6418d50e7f8659c1ddf247
- Ingested
- 23 Sep 2026, 08:03:36 UTC
- Source record
- Official CVE record