Buffer overflow in X.org X Server

CVE-2022-46340

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.

Vulnerability class: Buffer Overflow

EPSS: 0.025 (83.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-46340?
CVE-2022-46340 is a high-severity vulnerability in X.org X Server, classified under Out-of-bounds Write. CVSS score: 8.8/10. Published 2022-12-14.
How severe is CVE-2022-46340?
High severity. CVSS v3 base score is 8.8 out of 10.