CVE-2022-46340: High severity x.org xserver vulnerability

Published Dec 8, 2022
·
Updated

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.

Other sources

CVE-2022-46340/ZDI-CAN-19265: X.Org Server XTestSwapFakeInput stack overflow

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 does not affect systems where client and server use the same byte order.

Red Hat

Affected Software

15 affected componentsFixes available
debian/xorg-server<=2:1.20.4-1+deb10u4
2:1.20.4-1+deb10u122:1.20.11-1+deb11u62:1.20.11-1+deb11u102:21.1.7-3+deb12u22:21.1.7-3+deb12u42:21.1.10-1
debian/xwayland
2:22.1.9-12:23.2.3-1
X.Org X Server=1.20.4
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Fedoraproject Fedora=36
Fedoraproject Fedora=37
Debian Debian Linux=11.0
All of the following
X.Org X Server=1.20.4
Any of the following
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Event History

Dec 8, 2022
Data Sourced
via Red Hat·04:44 AM
DescriptionSeverityAffected Software
Dec 14, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2022-46340?

CVE-2022-46340 is a vulnerability in X.Org that occurs due to a stack corruption issue in the XTestFakeInput request of the XTest extension.

2

What is the severity of CVE-2022-46340?

The severity of CVE-2022-46340 is high with a CVSS score of 8.8.

3

Which software versions are affected by CVE-2022-46340?

The affected software versions include xorg-server versions 2:1.20.4-1+deb10u9, 2:1.20.11-1+deb11u6, 2:21.1.7-3, and 2:21.1.8-1.

4

How can I fix CVE-2022-46340?

To fix CVE-2022-46340, update xorg-server to versions 2:1.20.4-1+deb10u9, 2:1.20.11-1+deb11u6, 2:21.1.7-3, or 2:21.1.8-1.

5

Is Redhat Enterprise Linux vulnerable to CVE-2022-46340?

No, Redhat Enterprise Linux versions 6.0, 7.0, 8.0, and 9.0 are not vulnerable to CVE-2022-46340.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203