# CVE-2026-93541: libXi out-of-bounds read in XQueryDeviceState

Source: https://junglewise.ai/threats/cve-2026-93541-an-out-of-bounds-read-in-libxi-s-xquerydevicestate-in-libxi  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-24. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-93541 · Severity: medium · CVSS 6.5 · Published 2026-09-24

libXi is an X11 library that handles input device communication for graphical applications. An out-of-bounds read vulnerability in the XQueryDeviceState() function could allow a local attacker to read sensitive memory or crash applications that use libXi. The vulnerability exists in versions before 1.8.4.

Technologies: [X.Org libXi](https://junglewise.ai/threats/technologies/libxi). Vendors: [X.Org](https://junglewise.ai/threats/vendors/x-org).

## Quick answers

**Is CVE-2026-93541 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-93541 being exploited in the wild.

**How severe is CVE-2026-93541?** Medium severity, with a CVSS score of 6.5, published 24 September 2026.

**Which products and versions are affected?** X.Org libXi before 1.8.4.

**Is there a fix for CVE-2026-93541?** A patch was published on 2026-09-23. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-93541 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-93541?** Check whether you run X.Org libXi at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The XQueryDeviceState() function in libXi fails to properly validate buffer boundaries when processing ValuatorClass data from the X server, allowing an out-of-bounds read. An attacker with access to a compromised or malicious X server can trigger this by sending a crafted XQueryDeviceState reply with insufficient data. The fix adds proper bounds checking before reading valuator data from the server response.

## Affected products

- X.Org libXi before 1.8.4

## Timeline

- 2026-09-24: disclosed
- 2026-09-23: patched

## References

- [https://gitlab.freedesktop.org/xorg/lib/libxi/-/merge_requests/23/diffs?commit_id=7b6fffd13fd3914e0b39f3a4f131913da7f066e7](https://gitlab.freedesktop.org/xorg/lib/libxi/-/merge_requests/23/diffs?commit_id=7b6fffd13fd3914e0b39f3a4f131913da7f066e7)

## Related threats

- [libXi heap overflow in DEVICE_ENABLE reply handling](https://junglewise.ai/threats/cve-2026-109090-a-malicious-x-server-could-cause-a-heap-overflow-by-injecting-a)
- [libXi heap buffer overflow in DEVICE_RESOLUTION handling](https://junglewise.ai/threats/cve-2026-109089-a-buffer-overflow-when-handling-device-resolution-in-libxi)
- [libXi out-of-bounds read in XListInputDevices() class parsing](https://junglewise.ai/threats/cve-2026-94281-an-out-of-bounds-read-in-libxi-s-xlistinputdevices-class-parsing)
- [libXi out-of-bounds read in XI2 XIQueryDevice reply parsing](https://junglewise.ai/threats/cve-2026-93544-an-out-of-bounds-read-in-libxi-s-xi2-xiquerydevice-reply-parsing)
- [libXi out-of-bounds read in XI2 class parser](https://junglewise.ai/threats/cve-2026-93543-an-out-of-bounds-read-in-libxi-s-xi2-class-parser-in-libxi-before)
