# CVE-2026-99866

- Bağlantı: https://www.allsafe.com.tr/cve-2026-99866/
- Yayımlanma: 2026-11-30T17:20:20+03:00
- Yazar: Postmaster

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)

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-99866)
