CVE-2023-5574 Xorg-x11-server: use-after-free bug in damagedestroy

High 7.0 Published Updated

A use-after-free in Xvfb during shutdown in Zaphod mode allows local attackers to escalate privileges or cause denial of service.

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-2023-5574?

CVE-2023-5574 is a high-severity use after free vulnerability in Redhat Enterprise Linux, published on 25 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A use-after-free flaw was found in xorg-x11-server-Xvfb. This issue occurs in Xvfb with a very specific and legacy configuration (a multi-screen setup with multiple protocol screens, also known as Zaphod mode). If the pointer is warped from a screen 1 to a screen 0, a use-after-free issue may be triggered during shutdown or reset of the Xvfb server, allowing for possible escalation of privileges or denial of service.

Weakness: CWE-416

Which versions are affected by CVE-2023-5574?

It affects 2 products.

Linux distribution packages (1)
xwayland openSUSE:TumbleweedAll versions23.2.2-2.1

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

How do I fix CVE-2023-5574?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2023-5574 being exploited?

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

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as AZL-31703, AZL-45255, BELL-CVE-2023-5574, DEBIAN-CVE-2023-5574, ECHO-afeb-e40e-c22f, GHSA-79x6-r5x5-fvqw and 9 more.

Is CVE-2023-5574 in your software?

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

Check your SBOMs for free