CVE-2025-26598 Xorg: xwayland: out-of-bounds write in createpointerbarrierclient()

High 7.8 Published Updated

An out-of-bounds write in Xorg/Xwayland allows attackers to execute arbitrary code or cause a denial of service via crafted input.

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-26598?

CVE-2025-26598 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

An out-of-bounds write flaw was found in X.Org and Xwayland. The function GetBarrierDevice() searches for the pointer device based on its device ID and returns the matching value, or supposedly NULL, if no match was found. However, the code will return the last element of the list if no matching device ID is found, which can lead to out-of-bounds memory access.

Weakness: CWE-787

Which versions are affected by CVE-2025-26598?

It affects 4 products.

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

How do I fix CVE-2025-26598?

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-26598 being exploited?

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

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as AZL-57301, AZL-57327, AZL-57419, BELL-CVE-2025-26598, DEBIAN-CVE-2025-26598, GHSA-c28h-3w95-v6xg and 1 more.

Is CVE-2025-26598 in your software?

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

Check your SBOMs for free