CVE-2023-39198 Kernel: qxl: race condition leading to use-after-free in qxl_mode_dumb_create()

High 7.5 Published Updated

A race condition in the Linux kernel QXL driver allows attackers to trigger a use-after-free, potentially causing denial of service or privilege escalation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-39198?

CVE-2023-39198 is a high-severity use after free vulnerability in Fedoraproject Fedora, published on 9 Nov 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A race condition was found in the QXL driver in the Linux kernel. The qxl_mode_dumb_create() function dereferences the qobj returned by the qxl_gem_object_create_with_handle(), but the handle is the only one holding a reference to it. This flaw allows an attacker to guess the returned handle value and trigger a use-after-free issue, potentially leading to a denial of service or privilege escalation.

Weakness: CWE-416

Which versions are affected by CVE-2023-39198?

It affects 3 products.

Products include Fedoraproject Fedora, Linux kernel, Redhat Enterprise Linux.

How do I fix CVE-2023-39198?

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

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-31957, BELL-CVE-2023-39198, DEBIAN-CVE-2023-39198, GHSA-qhp7-446p-xq88, UBUNTU-CVE-2023-39198.

Is CVE-2023-39198 in your software?

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

Check your SBOMs for free