{"id":"ALPINE-CVE-2022-46340","details":"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.","modified":"2026-11-03T07:30:45.365256873Z","published":"2022-12-14T21:15:13.110Z","upstream":["CVE-2022-46340"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-46340"}],"affected":[{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xorg-server","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/xorg-server?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.1.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}},{"package":{"name":"xwayland","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/xwayland?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1.6-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-46340.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}