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
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.027 (85.6th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 86th percentile — 85.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.025 · newest: 0.027 · change: +0.002
Affected products
- X.org X Server — versions 1.20.4
- Debian Linux — versions 11.0
- Fedoraproject Fedora — versions 36, 37
- Red Hat Enterprise Linux — versions 6.0, 7.0, 8.0
- Xorg-X11-Server — versions xorg-x11-server-1.20.4
Weakness classification (CWE)
References
- access.redhat.com/security/cve/CVE-2022-46340 (Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Mailing List, Third Party Advisory)
- www.debian.org/security/2022/dsa-5304 (vendor-advisory, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Mailing List, Third Party Advisory)
- security.gentoo.org/glsa/202305-30
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.