CVE-2022-46340: Debian Linux

High severity, CVSS 8.8. EPSS: 2.6% chance of exploitation in the next 30 days.

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.

Affected products

  • Debian Debian Linux: version 11.0 only
  • Fedoraproject Fedora: version 36 only; version 37 only
  • X.org X Server: version 1.20.4 only

Published 2022-12-14. Last modified 2026-06-17.