{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31566","id":"CVE-2026-31566","title":"drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib\n\namdgpu_amdkfd_submit_ib() submits a GPU job and gets a fence\nfrom amdgpu_ib_schedule(). This fence is used to wait for job\ncompletion.\n\nCurrently, the code drops the fence reference using dma_fence_put()\nbefore calling dma_fence_wait().\n\nIf dma_fence_put() releases","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib\n\namdgpu_amdkfd_submit_ib() submits a GPU job and gets a fence\nfrom amdgpu_ib_schedule(). This fence is used to wait for job\ncompletion.\n\nCurrently, the code drops the fence reference using dma_fence_put()\nbefore calling dma_fence_wait().\n\nIf dma_fence_put() releases the last reference, the fence may be\nfreed before dma_fence_wait() is called. This can lead to a\nuse-after-free.\n\nFix this by waiting on the fence first and releasing the reference\nonly after dma_fence_wait() completes.\n\nFixes the below:\ndrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:697 amdgpu_amdkfd_submit_ib() warn: passing freed memory 'f' (line 696)\n\n(cherry picked from commit 8b9e5259adc385b61a6590a13b82ae0ac2bd3482)","published":"2026-04-24T14:35:46.740Z","updated":"2026-11-13T02:30:37.626411629Z","reserved":"2026-03-09T15:48:24.117Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9ae55f030dc523fc4dc6069557e4a887ea815453","lessThan":"bc7760c107dc08ef3e231d72c492e67b0a86848b","status":"affected","versionType":"git"},{"version":"9ae55f030dc523fc4dc6069557e4a887ea815453","lessThan":"e23602eb0779760544314ed3905fa6a89a4e4070","status":"affected","versionType":"git"},{"version":"9ae55f030dc523fc4dc6069557e4a887ea815453","lessThan":"138e42be35ff2ce6572ae744de851ea286cf3c69","status":"affected","versionType":"git"},{"version":"9ae55f030dc523fc4dc6069557e4a887ea815453","lessThan":"39820864eacd886f1a6f817414fb8f9ea3e9a2b4","status":"affected","versionType":"git"},{"version":"9ae55f030dc523fc4dc6069557e4a887ea815453","lessThan":"42d248726a0837640452b71c5a202ca3d35239ec","status":"affected","versionType":"git"},{"version":"9ae55f030dc523fc4dc6069557e4a887ea815453","lessThan":"7150850146ebfa4ca998f653f264b8df6f7f85be","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","status":"unaffected","versionType":"semver"},{"version":"6.1.168","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.131","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.80","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.21","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.11","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/bc7760c107dc08ef3e231d72c492e67b0a86848b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e23602eb0779760544314ed3905fa6a89a4e4070","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/138e42be35ff2ce6572ae744de851ea286cf3c69","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/39820864eacd886f1a6f817414fb8f9ea3e9a2b4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/42d248726a0837640452b71c5a202ca3d35239ec","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7150850146ebfa4ca998f653f264b8df6f7f85be","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31566.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31566","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00126,"epssPercentile":0.02349,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31566","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31566","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31566","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31566","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}