# CVE-2025-62231: X.Org X server integer overflow in XkbSetCompatMap

Source: https://junglewise.ai/threats/cve-2025-62231-x-org-x-server-integer-overflow-in-xkbsetcompatmap  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-30. Updated: 2026-06-29  
License: CC BY 4.0 with a link back

CVE-2025-62231 · Severity: high · CVSS 7.3 · Published 2025-10-30

A vulnerability was found in the X.Org X server, a fundamental component used to manage graphical displays and user input on Linux and Unix-like systems. An attacker with local access to a system could send specially crafted keyboard configuration data to trigger a memory error. This could allow the attacker to crash the display system or potentially gain unauthorized access to sensitive information or elevated privileges on the machine.

Technologies: [Red Hat Enterprise Linux 8](https://junglewise.ai/threats/technologies/enterprise-linux-8), [Red Hat Enterprise Linux 9](https://junglewise.ai/threats/technologies/enterprise-linux-9). Vendors: [Red Hat](https://junglewise.ai/threats/vendors/red-hat).

## Quick answers

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

**How severe is CVE-2025-62231?** High severity, with a CVSS score of 7.3, published 30 October 2025.

**Which products and versions are affected?** Red Hat Enterprise Linux 8 xorg-x11-server-Xwayland < 21.1.3-19.el8_10; Red Hat Enterprise Linux 9 xorg-x11-server < 1.20.11-32.el9_6.

**Is there a fix for CVE-2025-62231?** A patch was published on 2025-11-03: Red Hat released security updates (RHSA-2025:19432, RHSA-2025:19433) Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-62231 attacked?** It is attacked with local access, in an operating system.

**Am I affected by CVE-2025-62231?** Check whether you run Red Hat Enterprise Linux 8 or Red Hat Enterprise Linux 9 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

An integer overflow vulnerability exists in the XkbSetCompatMap() function within the X Keyboard (Xkb) extension of the X.Org X server. The flaw is caused by improper bounds checking when processing input data, leading to an unsigned short overflow during value calculation. A local attacker can exploit this by sending specially crafted requests to the X server, resulting in memory corruption or a denial-of-service (crash). Depending on the memory layout, this could potentially lead to local privilege escalation. Patches have been released by X.Org and major Linux distributions like Red Hat and Debian.

## Affected products

- X.Org X server versions before 21.1.14 and 1.20.11-32.el9_6
- X.Org Xwayland versions before 24.1.9
- Red Hat Red Hat Enterprise Linux 8 xorg-x11-server-Xwayland < 21.1.3-19.el8_10
- Red Hat Red Hat Enterprise Linux 9 xorg-x11-server < 1.20.11-32.el9_6

## Timeline

- 2025-10-28: disclosed: Public disclosure on oss-security mailing list
- 2025-10-30: advisory: NVD publication date
- 2025-11-03: patched: Red Hat released security updates (RHSA-2025:19432, RHSA-2025:19433)

## References

- [https://gitlab.freedesktop.org/xorg/xserver](https://gitlab.freedesktop.org/xorg/xserver)
- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/errata/RHSA-2025:19432](https://access.redhat.com/errata/RHSA-2025:19432)
- [https://access.redhat.com/errata/RHSA-2025:19433](https://access.redhat.com/errata/RHSA-2025:19433)
- [https://access.redhat.com/errata/RHSA-2025:19434](https://access.redhat.com/errata/RHSA-2025:19434)
- [https://access.redhat.com/errata/RHSA-2025:19435](https://access.redhat.com/errata/RHSA-2025:19435)
- [https://access.redhat.com/errata/RHSA-2025:19489](https://access.redhat.com/errata/RHSA-2025:19489)

## Related threats

- [Samba AD DC LDAP filter injection and ACL bypass in Compare requests](https://junglewise.ai/threats/cve-2026-58222-samba-ad-dc-ldap-filter-injection-and-acl-bypass-in-compare)
- [Samba KDC out-of-bounds read in kpasswd service](https://junglewise.ai/threats/cve-2026-58216-samba-kdc-out-of-bounds-read-in-kpasswd-service)
- [Samba internal DNS server denial of service via TKEY cache exhaustion](https://junglewise.ai/threats/cve-2026-58218-samba-internal-dns-server-denial-of-service-via-tkey-cache)
- [Red Hat PCP auth bypass in pmproxy /store endpoint](https://junglewise.ai/threats/cve-2026-16527-red-hat-pcp-auth-bypass-in-pmproxy-store-endpoint)
- [Red Hat PCP privilege escalation in linux_sockets PMDA](https://junglewise.ai/threats/cve-2026-16526-red-hat-pcp-privilege-escalation-in-linux-sockets-pmda)
