CVE-2024-35810 drm/vmwgfx: Fix the lifetime of the bo cursor memory

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's vmwgfx driver allows attackers to cause a system crash via improper memory lifetime management.

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-2024-35810?

CVE-2024-35810 is a high-severity use after free vulnerability in Linux kernel, published on 17 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

drm/vmwgfx: Fix the lifetime of the bo cursor memory

The cleanup can be dispatched while the atomic update is still active, which means that the memory acquired in the atomic update needs to not be invalidated by the cleanup. The buffer objects in vmw_plane_state instead of using the builtin map_and_cache were trying to handle the lifetime of the mapped memory themselves, leading to crashes.

Use the map_and_cache instead of trying to manage the lifetime of the buffer objects held by the vmw_plane_state.

Fixes kernel oops'es in IGT's kms_cursor_legacy forked-bo.

Which versions are affected by CVE-2024-35810?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-35810?

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-2024-35810 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-35810, DEBIAN-CVE-2024-35810, GHSA-682g-jf8v-94jw, UBUNTU-CVE-2024-35810.

Is CVE-2024-35810 in your software?

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

Check your SBOMs for free