CVE-2022-46340
Reported by redhat · Published December 14, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| xorg-x11-server-Xephyr | Amazon Linux | 1.20.14-12.amzn2023.0.2, 1.20.4-22.amzn2 |
| xorg-x11-server-devel | Amazon Linux | 1.20.14-12.amzn2023.0.2 |
| xorg-x11-server-Xvfb | Amazon Linux | 1.20.4-22.amzn2 |
| xorg-x11-server-Xdmx | Amazon Linux | 1.20.4-22.amzn2 |
| xorg-x11-server-source | Amazon Linux | 1.20.14-12.amzn2023.0.2 |
| xorg-x11-server-Xorg | Amazon Linux | 1.20.4-22.amzn2 |
| xorg-x11-server-Xnest | Amazon Linux | 1.20.14-12.amzn2023.0.2, 1.20.4-22.amzn2 |
| xorg-x11-server-common | Amazon Linux | 1.20.14-12.amzn2023.0.2 |
| xorg-x11-server-Xwayland | Amazon Linux | 1.20.4-22.amzn2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | xorg-x11-server | xorg-x11-server-1.20.4 |
| amazon:2 | xorg-x11-server-Xephyr | 0 |
| amazon:2023 | xorg-x11-server-Xephyr | 0 |
| amazon:2023 | xorg-x11-server-devel | 0 |
| amazon:2 | xorg-x11-server-Xvfb | 0 |
| amazon:2 | xorg-x11-server-Xdmx | 0 |
| amazon:2023 | xorg-x11-server-source | 0 |
| amazon:2 | xorg-x11-server-Xorg | 0 |
| amazon:2023 | xorg-x11-server-Xnest | 0 |
| amazon:2023 | xorg-x11-server-common | 0 |
| amazon:2 | xorg-x11-server-Xnest | 0 |
| amazon:2 | xorg-x11-server-Xwayland | 0 |
| n/a | xorg-x11-server | 1.20.4 |
| alpine | xorg-server | 0 |
| amazon:2 | xorg-x11-server-source | 0 |
| amazon:2023 | xorg-x11-server-Xorg | 0 |
| amazon:2023 | xorg-x11-server-Xvfb | 0 |
| amazon:2023 | xorg-x11-server-Xdmx | 0 |
| alpine | xwayland | 0 |
| amazon:2 | xorg-x11-server-common | 0 |
…and 1 more
Timeline
- Dec 13, 2022 CVE Published
- Dec 15, 2022 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Distribution Patch (12 in total, the first dated here)
- Mar 10, 2026 Security Advisory (14 in total, the first dated here)
- Jun 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-46340
vulnetix vdb fixes CVE-2022-46340
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-46340/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-c3a65f7c65 vendor-advisory
- FEDORA-2022-721a78b7e5 vendor-advisory
- DSA-5304 vendor-advisory
- FEDORA-2022-3d88188071 vendor-advisory
- FEDORA-2022-dd3eb7e0a8 vendor-advisory