CVE-2026-31566CWE-416

CVE-2026-31566

High · published April 24, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
2.1
In the wild
Unconfirmed
What it is

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

drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib

amdgpu_amdkfd_submit_ib() submits a GPU job and gets a fence

from amdgpu_ib_schedule(). This fence is used to wait for job

completion.

Currently, the code drops the fence reference using dma_fence_put()

before calling dma_fence_wait().

If dma_fence_put() releases the last reference, the fence may be

freed before dma_fence_wait() is called. This can lead to a

use-after-free.

Fix this by waiting on the fence first and releasing the reference

only after dma_fence_wait() completes.

Fixes the below:

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:697 amdgpu_amdkfd_submit_ib() warn: passing freed memory 'f' (line 696)

(cherry picked from commit 8b9e5259adc385b61a6590a13b82ae0ac2bd3482)

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00126 · 2.1th percentile
Weakness
CWE-416 · Use After Free
Published
2026-04-24T19:16Z
Affected products (13)
ProductVersionsFixed in
linux/linux_kernel≥ 6.0.1, < 6.1.1686.1.168
linux/linux_kernel≥ 6.2, < 6.6.1316.6.131
linux/linux_kernel≥ 6.7, < 6.12.806.12.80
linux/linux_kernel≥ 6.13, < 6.18.216.18.21
linux/linux_kernel≥ 6.19, < 6.19.116.19.11
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (6)
EPSS history
Timeline
  • 24 APR 14:35Z
    drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib
    cvelistv5