
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."