CVE-2026-31566 json
drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib
published 2026-04-24 6 mo ago modified 2026-10-19 20 d ago also EUVD-2026-25459
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 2%
- public exploits
- 0
- none known
Summary
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)
Patch / fix
- Linux Linux 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0
- linux Debian 12 6.1.170-1
- linux Debian 13 6.12.85-1
- linux Debian 14 6.19.11-1
debian advisories DEBIAN-CVE-2026-31566
- linux Ubuntu 24.04 LTS 6.8.0-136.136
- linux-aws Ubuntu 24.04 LTS 6.8.0-1061.64
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1064.72
- linux-gke Ubuntu 24.04 LTS 6.8.0-1059.67
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1061.62
- linux-azure Ubuntu 24.04 LTS 6.8.0-1063.71
- linux-gkeop Ubuntu 24.04 LTS 6.8.0-1046.50
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1061.65
ubuntu advisories UBUNTU-CVE-2026-31566
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 8 4.18.0-553.168.1.el8_10
- perf RHEL 8 4.18.0-553.168.1.el8_10
- bpftool RHEL 8 4.18.0-553.168.1.el8_10
- kernel-core RHEL 8 4.18.0-553.168.1.el8_10
- kernel-tools RHEL 8 4.18.0-553.168.1.el8_10
- python3-perf RHEL 8 4.18.0-553.168.1.el8_10
- kernel-modules RHEL 8 4.18.0-553.168.1.el8_10
- kernel-zfcpdump RHEL 8 4.18.0-553.168.1.el8_10
red hat advisories RHSA-2026:71329RHSA-2026:71330RHSA-2026:67471RHSA-2026:67150
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-51.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-51.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-51.1
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-51.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-51.1
- kernel-default SLES 16.0, SLE High Availability Extension 16.0, Linux Micro 6.2 +1 more 6.12.0-160000.37.1
- kernel-rt Linux Micro 6.2 6.12.0-160000.37.1
- kernel-64kb SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 6.12.0-160000.37.1
suse advisories SUSE-SU-2026:23244-1SUSE-SU-2026:23241-1SUSE-SU-2026:23194-1SUSE-SU-2026:23193-1SUSE-SU-2026:23237-1SUSE-SU-2026:23068-1
- kernel-rt openSUSE Leap 16.0 6.12.0-160000.37.1
- dtb-aarch64 openSUSE Leap 16.0 6.12.0-160000.37.1
- kernel-64kb openSUSE Leap 16.0 6.12.0-160000.37.1
- kernel-syms openSUSE Leap 16.0 6.12.0-160000.37.1
- kernel-azure openSUSE Leap 16.0 6.12.0-160000.37.1
- kernel-obs-qa openSUSE Leap 16.0 6.12.0-160000.37.1
- kernel-source openSUSE Leap 16.0 6.12.0-160000.37.1
- kernel-default openSUSE Leap 16.0 6.12.0-160000.37.1
opensuse advisories openSUSE-SU-2026:21555-1
- kernel AlmaLinux 8 4.18.0-553.168.1.el8_10
- perf AlmaLinux 8 4.18.0-553.168.1.el8_10
- bpftool AlmaLinux 8 4.18.0-553.168.1.el8_10
- kernel-core AlmaLinux 8 4.18.0-553.168.1.el8_10
- kernel-tools AlmaLinux 8 4.18.0-553.168.1.el8_10
- python3-perf AlmaLinux 8 4.18.0-553.168.1.el8_10
- kernel-modules AlmaLinux 8 4.18.0-553.168.1.el8_10
- kernel-zfcpdump AlmaLinux 8 4.18.0-553.168.1.el8_10
almalinux advisories ALSA-2026:71329ALSA-2026:71330ALSA-2026:67471ALSA-2026:67150
- kernel-rt Rocky Linux 8 4.18.0-553.168.1.rt7.509.el8_10
- kernel Rocky Linux 8 4.18.0-553.168.1.el8_10
- kernel Rocky Linux 10 6.12.0-211.55.1.el10_2
- kernel Rocky Linux 9 5.14.0-687.47.1.el9_8
rocky linux advisories RLSA-2026:71330RLSA-2026:71329RLSA-2026:67471RLSA-2026:67150
- git.kernel.org/stable/c/bc7760c107dc08ef3e231d72c492e67b0a86848b commit
- git.kernel.org/stable/c/e23602eb0779760544314ed3905fa6a89a4e4070 commit
- git.kernel.org/stable/c/138e42be35ff2ce6572ae744de851ea286cf3c69 commit
- git.kernel.org/stable/c/39820864eacd886f1a6f817414fb8f9ea3e9a2b4 commit
- git.kernel.org/stable/c/42d248726a0837640452b71c5a202ca3d35239ec commit
- git.kernel.org/stable/c/7150850146ebfa4ca998f653f264b8df6f7f85be commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31566 updated cvss 7.3
kernel: drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib
-
Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 moreaffected: no fix available
-
Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-687.47.1.el9_8, perf 5.14.0-687.47.1.el9_8, rtla 5.14.0-687.47.1.el9_8, python3-perf 5.14.0-687.47.1.el9_8, kernel-devel-matched 5.14.0-687.47.1.el9_8, kernel-64k-devel-matched 5.14.0-687.47.1.el9_8, +7 morefixed: vendor fix RHSA-2026:67150
-
Red Hat Enterprise Linux AppStream (v. 10) rv 6.12.0-211.55.1.el10_2, perf 6.12.0-211.55.1.el10_2, rtla 6.12.0-211.55.1.el10_2, python3-perf 6.12.0-211.55.1.el10_2, kernel-devel-matched 6.12.0-211.55.1.el10_2, kernel-64k-devel-matched 6.12.0-211.55.1.el10_2, +7 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.168.1.el8_10, kernel 4.18.0-553.168.1.el8_10, bpftool 4.18.0-553.168.1.el8_10, kernel-core 4.18.0-553.168.1.el8_10, kernel-tools 4.18.0-553.168.1.el8_10, python3-perf 4.18.0-553.168.1.el8_10, +15 morefixed: vendor fix RHSA-2026:71329
-
Red Hat Enterprise Linux BaseOS (v. 9) kernel 5.14.0-687.47.1.el9_8, kernel-64k 5.14.0-687.47.1.el9_8, kernel-core 5.14.0-687.47.1.el9_8, kernel-tools 5.14.0-687.47.1.el9_8, kernel-modules 5.14.0-687.47.1.el9_8, kernel-64k-core 5.14.0-687.47.1.el9_8, +27 morefixed: vendor fix RHSA-2026:67150
-
Red Hat Enterprise Linux BaseOS (v. 10) kernel 6.12.0-211.55.1.el10_2, kernel-64k 6.12.0-211.55.1.el10_2, kernel-core 6.12.0-211.55.1.el10_2, kernel-tools 6.12.0-211.55.1.el10_2, kernel-modules 6.12.0-211.55.1.el10_2, kernel-64k-core 6.12.0-211.55.1.el10_2, +28 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) libperf 5.14.0-687.47.1.el9_8, kernel-debuginfo-common-s390x 5.14.0-687.47.1.el9_8, kernel-debuginfo-common-x86_64 5.14.0-687.47.1.el9_8, kernel-debuginfo-common-aarch64 5.14.0-687.47.1.el9_8, kernel-debuginfo-common-ppc64le 5.14.0-687.47.1.el9_8fixed: vendor fix RHSA-2026:67150
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) libperf 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-s390x 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-x86_64 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-aarch64 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-ppc64le 6.12.0-211.55.1.el10_2fixed: vendor fix RHSA-2026:67471
show 8 moreshow fewer
-
Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.168.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.168.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.168.1.el8_10fixed: vendor fix RHSA-2026:71329
-
Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-kvm 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-core 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-modules 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-debug-kvm 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-debug-core 4.18.0-553.168.1.rt7.509.el8_10, +4 morefixed: vendor fix RHSA-2026:71330
-
Red Hat Enterprise Linux Real Time (v. 9) kernel-rt 5.14.0-687.47.1.el9_8, kernel-rt-64k 5.14.0-687.47.1.el9_8, kernel-rt-core 5.14.0-687.47.1.el9_8, kernel-rt-modules 5.14.0-687.47.1.el9_8, kernel-rt-64k-core 5.14.0-687.47.1.el9_8, kernel-rt-debug-core 5.14.0-687.47.1.el9_8, +14 morefixed: vendor fix RHSA-2026:67150
-
Red Hat Enterprise Linux Real Time (v. 10) kernel-rt 6.12.0-211.55.1.el10_2, kernel-rt-64k 6.12.0-211.55.1.el10_2, kernel-rt-core 6.12.0-211.55.1.el10_2, kernel-rt-modules 6.12.0-211.55.1.el10_2, kernel-rt-64k-core 6.12.0-211.55.1.el10_2, kernel-rt-debug-core 6.12.0-211.55.1.el10_2, +14 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt 5.14.0-687.47.1.el9_8, kernel-rt-core 5.14.0-687.47.1.el9_8, kernel-rt-modules 5.14.0-687.47.1.el9_8, kernel-rt-debug-core 5.14.0-687.47.1.el9_8, kernel-rt-modules-core 5.14.0-687.47.1.el9_8, kernel-rt-debug-modules 5.14.0-687.47.1.el9_8, +4 morefixed: vendor fix RHSA-2026:67150
-
Red Hat Enterprise Linux Real Time for NFV (v. 10) kernel-rt 6.12.0-211.55.1.el10_2, kernel-rt-core 6.12.0-211.55.1.el10_2, kernel-rt-modules 6.12.0-211.55.1.el10_2, kernel-rt-debug-core 6.12.0-211.55.1.el10_2, kernel-rt-modules-core 6.12.0-211.55.1.el10_2, kernel-rt-debug-modules 6.12.0-211.55.1.el10_2, +4 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-core 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-modules 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-debug-core 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-debug-modules 4.18.0-553.168.1.rt7.509.el8_10, kernel-rt-modules-extra 4.18.0-553.168.1.rt7.509.el8_10, +2 morefixed: vendor fix RHSA-2026:71330
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 24 d ago
Exploit prediction
0.13% chance of exploitation in the next 30 days, higher than 2% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/bc7760c107dc08ef3e231d72c492e67b0a86848b
patch
-
git.kernel.org
/stable/c/e23602eb0779760544314ed3905fa6a89a4e4070
patch
-
git.kernel.org
/stable/c/138e42be35ff2ce6572ae744de851ea286cf3c69
patch
-
git.kernel.org
/stable/c/39820864eacd886f1a6f817414fb8f9ea3e9a2b4
patch
-
git.kernel.org
/stable/c/42d248726a0837640452b71c5a202ca3d35239ec
patch
-
git.kernel.org
/stable/c/7150850146ebfa4ca998f653f264b8df6f7f85be
patch
Sources
- CVE List CVE-2026-31566
- NVD CVE-2026-31566
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.