PT-2026-162833

CVE-2026-99866

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

CVSS 3.1
7.0
Alta
MétricasAV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: drop the gang leader reference when freeing gang jobs
Every job of a gang except the leader holds a reference to the scheduled fence of the leader in job->gang submit. Only amdgpu job free(), used for jobs which never ran, drops it, so for every gang submission which completes the scheduler fence of the leader, and with it its hardware fence, is leaked. amdgpu job free() in turn checks for the leader only after drm sched job cleanup() cleared the scheduler fence, so a leader freed there drops a reference it never took.
On navi31, 100 submissions of a GFX + COMPUTE gang grow the slab cache drm sched fence is merged into by 60 to 180 objects each time, while 100 GFX only submissions don't.
Use amdgpu job free() for the jobs the scheduler frees too, and check for the gang leader there before drm sched job cleanup() clears the scheduler fence. As the scheduler clears the entity of the jobs it picked up, check for the scheduler fence instead to tell whether the job needs cleaning up.
Keep freeing the remaining IBs with amdgpu job free resources() after drm sched job cleanup(), so that it frees them with the hardware fence or right away and not with the scheduler fence, which nobody signals for jobs aborted after drm sched job arm(), like a CS returning -EAGAIN.
v2: unify amdgpu job free() and amdgpu job free cb() (Christian), don't free the remaining IBs with the scheduler fence v3: drop the comments (Christian) v4: free the IBs with amdgpu job free resources() again (Christian)
(cherry picked from commit df4d6d404d44bbc8fc850bc7f9f136a25dabf180)
Explorabilidade
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾