StackPatch is liveSee product

Back to CVE digest
CVE-2022-46340 · cross-distro fix matrix

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

Affects 8 Linux releases across 15 (distro × package) combinations.

Fix per ecosystem

Each block below is a distro release where CVE-2022-46340 has a known fix. Run the listed command on that distro to remediate.

Debian bullseye

Source: Debian Security Tracker

  • xorg-server→ fixed in2:1.20.11-1+deb11u4urgency: not yet assigned
    sudo apt-get install --only-upgrade -y xorg-server

Debian bookworm

Source: Debian Security Tracker

  • xorg-server→ fixed in2:21.1.5-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y xorg-server
  • xwayland→ fixed in2:22.1.6-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y xwayland

Debian trixie

Source: Debian Security Tracker

  • xorg-server→ fixed in2:21.1.5-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y xorg-server
  • xwayland→ fixed in2:22.1.6-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y xwayland

Alpine v3.20

Source: Alpine secdb

  • xorg-server→ fixed in21.1.5-r0
    apk update && apk add --upgrade xorg-server
  • xwayland→ fixed in22.1.6-r0
    apk update && apk add --upgrade xwayland

Alpine v3.21

Source: Alpine secdb

  • xorg-server→ fixed in21.1.5-r0
    apk update && apk add --upgrade xorg-server
  • xwayland→ fixed in22.1.6-r0
    apk update && apk add --upgrade xwayland

Alpine edge

Source: Alpine secdb

  • xorg-server→ fixed in21.1.5-r0
    apk update && apk add --upgrade xorg-server
  • xwayland→ fixed in22.1.6-r0
    apk update && apk add --upgrade xwayland

Alpine v3.18

Source: Alpine secdb

  • xorg-server→ fixed in21.1.5-r0
    apk update && apk add --upgrade xorg-server
  • xwayland→ fixed in22.1.6-r0
    apk update && apk add --upgrade xwayland

Alpine v3.19

Source: Alpine secdb

  • xorg-server→ fixed in21.1.5-r0
    apk update && apk add --upgrade xorg-server
  • xwayland→ fixed in22.1.6-r0
    apk update && apk add --upgrade xwayland
Are YOU affected by CVE-2022-46340?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2022-46340dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. $99 lifetime, 50 founder seats, 30-day refund.

See StackPatch ($99 lifetime)