CVE-2024-27400 drm/amdgpu: once more fix the call oder in amdgpu_ttm_move() v2

High 7.8 Published Updated

A race condition in the amdgpu driver's memory move logic can lead to system instability or crashes due to incorrect notification ordering.

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

CVE-2024-27400 is a high-severity vulnerability in Fedoraproject Fedora, published on 13 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/amdgpu: once more fix the call oder in amdgpu_ttm_move() v2

This reverts drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heap. The basic problem here is that after the move the old location is simply not available any more.

Some fixes were suggested, but essentially we should call the move notification before actually moving things because only this way we have the correct order for DMA-buf and VM move notifications as well.

Also rework the statistic handling so that we don't update the eviction counter before the move.

v2: add missing NULL check

Which versions are affected by CVE-2024-27400?

It affects 2 products.

Products include Fedoraproject Fedora, Linux kernel.

How do I fix CVE-2024-27400?

Apply the vendor's patch.

Is CVE-2024-27400 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-73001, BELL-CVE-2024-27400, DEBIAN-CVE-2024-27400, GHSA-ww8p-33xg-gvhc, ROOT-OS-UBUNTU-2204-CVE-2024-27400, UBUNTU-CVE-2024-27400.

Is CVE-2024-27400 in your software?

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

Check your SBOMs for free