Cloudanix VulnDB

CVE-2025-26597

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Feb 25, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A programming mistake in the code that handles keyboard layouts can let a logged-in user take over the computer or make the screen stop working.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Calling XkbChangeTypesOfKey() with a zero group value resizes the key symbols table to zero length while leaving the key actions table at its prior size; a subsequent call with a non-zero group count then writes beyond the bounds of the undersized actions table, producing a classic buffer overflow.

Why it matters to the business

Local users can crash the X server or obtain code execution, potentially escalating privileges on multi-user systems and disrupting graphical sessions across the organization.

How an attack unfolds

An attacker with local access invokes XkbChangeTypesOfKey() twice in succession—first with groups=0 to shrink only the symbols table, then with groups>0 to trigger an out-of-bounds write into the stale actions table—allowing control of adjacent heap memory and arbitrary code execution.

How to fix it

Upgrade the X.Org / Xwayland packages to a build containing commit 2191ac2b82618e4acf73e5247794f51eb01eabd3 (or later) in the libavc component; rebuild and restart the display server after installation.

How to confirm the fix worked

Confirm the running X server binary or library contains the cited commit hash; re-execute the original OSS-Fuzz reproducer to verify the crash no longer occurs.

Typical attack path

  1. Obtain local shell access on a system running the vulnerable X server
  2. Load or craft an X client that repeatedly calls XkbChangeTypesOfKey() with the described group sequence
  3. Trigger the second call to overflow the actions buffer and gain control of execution flow
  4. Execute payload to elevate privileges or install persistence

How to detect it

Review X server logs and client process activity for repeated XkbChangeTypesOfKey calls; correlate with unexpected X server crashes or privilege-escalation events on multi-user systems.

What your security team should do

  • Prioritize patching X.Org and Xwayland packages within the next maintenance window
  • Inventory all systems using the affected X server stack and schedule restarts
  • Add the fixed commit identifier to internal package allow-lists or SBOM checks
  • Monitor vendor advisories for backported fixes in distribution releases

The record

A buffer overflow flaw was found in X.Org and Xwayland. If XkbChangeTypesOfKey() is called with a 0 group, it will resize the key symbols table to 0 but leave the key actions unchanged. If the same function is later called with a non-zero value of groups, this will cause a buffer overflow because the key actions are of the wrong size.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 tigervnc 0 1.13.1-15.el8_10
AlmaLinux:8 tigervnc-icons 0 1.13.1-15.el8_10
AlmaLinux:8 tigervnc-license 0 1.13.1-15.el8_10
AlmaLinux:8 tigervnc-selinux 0 1.13.1-15.el8_10
AlmaLinux:8 tigervnc-server 0 1.13.1-15.el8_10
AlmaLinux:8 tigervnc-server-minimal 0 1.13.1-15.el8_10
AlmaLinux:8 tigervnc-server-module 0 1.13.1-15.el8_10
AlmaLinux:9 tigervnc 0 1.14.1-1.el9_5.1
AlmaLinux:9 tigervnc-icons 0 1.14.1-1.el9_5.1
AlmaLinux:9 tigervnc-license 0 1.14.1-1.el9_5.1
AlmaLinux:9 tigervnc-selinux 0 1.14.1-1.el9_5.1
AlmaLinux:9 tigervnc-server 0 1.14.1-1.el9_5.1
AlmaLinux:9 tigervnc-server-minimal 0 1.14.1-1.el9_5.1
AlmaLinux:9 tigervnc-server-module 0 1.14.1-1.el9_5.1
AlmaLinux:9 xorg-x11-server-Xdmx 0 1.20.11-28.el9_6
AlmaLinux:9 xorg-x11-server-Xephyr 0 1.20.11-28.el9_6
AlmaLinux:9 xorg-x11-server-Xnest 0 1.20.11-28.el9_6
AlmaLinux:9 xorg-x11-server-Xorg 0 1.20.11-28.el9_6
AlmaLinux:9 xorg-x11-server-Xvfb 0 1.20.11-28.el9_6
AlmaLinux:9 xorg-x11-server-Xwayland 0 23.2.7-3.el9_6
AlmaLinux:9 xorg-x11-server-Xwayland-devel 0 23.2.7-3.el9_6
AlmaLinux:9 xorg-x11-server-common 0 1.20.11-28.el9_6
AlmaLinux:9 xorg-x11-server-devel 0 1.20.11-28.el9_6
AlmaLinux:9 xorg-x11-server-source 0 1.20.11-28.el9_6
Debian:11 xorg-server 0 No fix
Debian:11 xorg-server 0 2:1.20.11-1+deb11u15
Debian:12 xorg-server 0 No fix
Debian:12 xorg-server 0 2:21.1.7-3+deb12u9
Debian:12 xwayland 0 No fix
Debian:13 xorg-server 0 No fix
Debian:13 xwayland 0 No fix
Mageia:9 tigervnc 0 1.13.1-2.7.mga9
Mageia:9 x11-server 0 21.1.8-7.7.mga9
Mageia:9 x11-server-xwayland 0 22.1.9-1.7.mga9
SUSE:Enterprise Storage 7.1 libX11 0 1.6.5-150000.3.36.1
SUSE:Enterprise Storage 7.1 xorg-x11-server 0 1.20.3-150200.22.5.102.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS xorg-x11-server 0 1.20.3-150200.22.5.102.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS xorg-x11-server 0 1.20.3-150400.38.54.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS xorg-x11-server 0 1.20.3-150400.38.54.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS xorg-x11-server 0 21.1.4-150500.7.32.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS xorg-x11-server 0 21.1.4-150500.7.32.1
SUSE:Linux Enterprise Micro 5.2 libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Micro 5.3 libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Micro 5.4 libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Micro 5.5 libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 libX11 0 1.8.7-150600.3.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 xorg-x11-server 0 21.1.11-150600.5.6.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 xorg-x11-server 0 21.1.11-150600.5.6.1
SUSE:Linux Enterprise Server 12 SP5-LTSS libX11 0 1.6.2-12.36.1
SUSE:Linux Enterprise Server 12 SP5-LTSS xorg-x11-server 0 1.19.6-10.80.1
SUSE:Linux Enterprise Server 15 SP3-LTSS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Server 15 SP3-LTSS xorg-x11-server 0 1.20.3-150200.22.5.102.1
SUSE:Linux Enterprise Server 15 SP4-LTSS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Server 15 SP4-LTSS xorg-x11-server 0 1.20.3-150400.38.54.1
SUSE:Linux Enterprise Server 15 SP5-LTSS libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Server 15 SP5-LTSS xorg-x11-server 0 21.1.4-150500.7.32.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 libX11 0 1.6.2-12.36.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 xorg-x11-server 0 1.19.6-10.80.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 xorg-x11-server 0 1.20.3-150200.22.5.102.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 xorg-x11-server 0 1.20.3-150400.38.54.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP5 libX11 0 1.6.5-150000.3.36.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP5 xorg-x11-server 0 21.1.4-150500.7.32.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 xorg-x11-server 0 1.20.3-150200.22.5.102.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 xwayland 0 24.1.1-150600.5.9.1
SUSE:Manager Proxy 4.3 libX11 0 1.6.5-150000.3.36.1
SUSE:Manager Proxy 4.3 xorg-x11-server 0 1.20.3-150400.38.54.1
SUSE:Manager Server 4.3 libX11 0 1.6.5-150000.3.36.1
SUSE:Manager Server 4.3 xorg-x11-server 0 1.20.3-150400.38.54.1
openSUSE:Leap 15.6 libX11 0 1.8.7-150600.3.3.1
openSUSE:Leap 15.6 xorg-x11-server 0 21.1.11-150600.5.6.1
openSUSE:Leap 15.6 xwayland 0 24.1.1-150600.5.9.1
openSUSE:Tumbleweed libX11 0 1.8.11-2.1
openSUSE:Tumbleweed xorg-x11-server 0 21.1.15-2.1
openSUSE:Tumbleweed xwayland 0 24.1.5-2.1

Related vulnerabilities