CVE-2025-68314 drm/msm: make sure last_fence is always updated

High 8.8 Published Updated

A use-after-free vulnerability in the Linux kernel's DRM MSM driver allows attackers to cause a system crash by triggering faults during context closure.

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

CVE-2025-68314 is a high-severity use after free vulnerability in Linux, published on 16 Dec 2025. 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/msm: make sure last_fence is always updated

Update last_fence in the vm-bind path instead of kernel managed path.

last_fence is used to wait for work to finish in vm_bind contexts but not used for kernel managed contexts.

This fixes a bug where last_fence is not waited on context close leading to faults as resources are freed while in use.

Patchwork: https://patchwork.freedesktop.org/patch/680080/

Which versions are affected by CVE-2025-68314?

How do I fix CVE-2025-68314?

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-2025-68314 being exploited?

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

Sources

Also known as BELL-CVE-2025-68314, DEBIAN-CVE-2025-68314, GHSA-3c4x-fc2p-3977, UBUNTU-CVE-2025-68314.

Is CVE-2025-68314 in your software?

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

Check your SBOMs for free