CVE-2022-49737
Linux Debian vulnerability analysis and mitigation

Overview

In X.Org X server versions 20.11 through 21.1.16, a race condition vulnerability (CVE-2022-49737) was identified when a client application uses easystroke for mouse gestures. The main thread modifies various data structures used by the input thread without acquiring a lock. Specifically, the AttachDevice function in dix/devices.c does not acquire an input lock, leading to potential system crashes (NVD, Ubuntu).

Technical details

The vulnerability stems from a race condition where the main thread modifies data structures without proper synchronization with the input thread. The issue occurs in the following sequence: 1) The main thread performs cleanup at mipointer.c:360, setting the slave device's miPointerPtr to null, 2) The input thread uses MIPOINTER in mipointer.c and gets the slave's null miPointerPtr, 3) The main thread updates dev->master at devices.c:2609, 4) MIPOINTER would return the master's miPointerPtr, but the input thread already has the null pointer, leading to a segmentation fault. The vulnerability has been assigned a CVSS v3.1 Base Score of 7.7 (HIGH) with vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H (NVD, Debian Bug).

Impact

When exploited, this vulnerability can cause the X server to crash, particularly during mouse gesture operations with easystroke. The crashes manifest as black screens and returns to the login screen, disrupting user sessions and potentially leading to data loss. The issue is particularly noticeable when the system is under heavy load, such as during intensive browsing sessions (Debian Bug).

Mitigation and workarounds

A fix has been implemented in the X.Org Server's master branch through commit dc7cb45, which adds proper input locking in the AttachDevice function. The fix involves holding the input lock during device attachment operations to prevent the race condition (Freedesktop Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61729HIGH7.5
  • DockerDocker
  • go
NoYesDec 02, 2025
CVE-2025-66293HIGH7.1
  • OpenJDK JDKOpenJDK JDK
  • java-17-openjdk-headless-slowdebug
NoNoDec 03, 2025
CVE-2025-39665MEDIUM6.9
  • Linux DebianLinux Debian
  • nagvis
NoNoDec 03, 2025
CVE-2025-61727MEDIUM6.5
  • DockerDocker
  • golang-1.24
NoYesDec 03, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management