CVE-2025-26595 Xorg: xwayland: buffer overflow in xkbvmodmasktext()

High 7.8 Published Updated

A buffer overflow in X.Org and Xwayland allows attackers to execute arbitrary code or cause a denial of service via crafted virtual modifier names.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-26595?

CVE-2025-26595 is a high-severity memory corruption vulnerability in Redhat Enterprise Linux, published on 25 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A buffer overflow flaw was found in X.Org and Xwayland. The code in XkbVModMaskText() allocates a fixed-sized buffer on the stack and copies the names of the virtual modifiers to that buffer. The code fails to check the bounds of the buffer and would copy the data regardless of the size.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2025-26595?

It affects 4 products.

Linux distribution packages (19)
libxkbfile SUSE:Enterprise Storage 7.1All versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise Server 12 SP5-LTSSAll versions1.0.8-12.3.1
libxkbfile SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5All versions1.0.8-12.3.1
libxkbfile SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.0.9-150000.3.3.1
libxkbfile SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions1.0.9-150000.3.3.1
libxkbfile SUSE:Manager Proxy 4.3All versions1.0.9-150000.3.3.1
libxkbfile SUSE:Manager Server 4.3All versions1.0.9-150000.3.3.1
libxkbfile openSUSE:Leap 15.6All versions1.0.9-150000.3.3.1
libxkbfile openSUSE:TumbleweedAll versions1.1.3-2.1

Products include Redhat Enterprise Linux, Tigervnc Tigervnc, X.org X Server, X.org Xwayland.

How do I fix CVE-2025-26595?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-26595 being exploited?

There is no known exploitation of CVE-2025-26595 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as AZL-57277, AZL-57378, AZL-57431, BELL-CVE-2025-26595, CLSA-2025-1742920518, DEBIAN-CVE-2025-26595 and 6 more.

Is CVE-2025-26595 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free