Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99866

published high CVSS 3.1 · 7.0

drm/amdgpu: drop the gang leader reference when freeing gang jobs

Published
30 Nov 2026, 13:17:47 UTC
Updated
01 Dec 2026, 05:43:56 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < 94f67beb15993066c97bd31d9c176b9fe00a9df9 · 68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < 5027839fd02b107d50a8fcbdb75b37c885f68a32 · 68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < 022471384f88d86c68f08de7bfeb9fbd6cc3c75c · 68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < b83464af4ddd549c2998d52f04fda6910de521ed · 68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < c82c35882df4424f28dbcff1605d7211e41de767 · 68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < c1584e10a7deb655438f21867b2b7a356a9aaf9f · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.1 (affected) · 0 to < 6.1 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

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)

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Both defects are in amdgpu_job_free()/amdgpu_job_free_cb(), reached only from DRM_IOCTL_AMDGPU_CS on the local render node (amdgpu_cs_ioctl -> amdgpu_cs_submit -> amdgpu_cs_parser_fini, or the scheduler's free_job for completed gang jobs); no remote peer supplies any input. AC:H - The leak is deterministic, but corruption needs the CS -EAGAIN abort after amdgpu_job_set_gang_leader() (forced by invalidating the attacker's own userptr BO). With leader=jobs[0] (IB chunks GFX,COMPUTE,GFX) the leader's extra dma_fence_put() call_rcu-frees its drm_sched_fence while jobs[1] still holds gang_submit; the stale put microseconds later hits reused memory only if the thread is preempted across a whole RCU grace period. PR:L - DRM_IOCTL_AMDGPU_CS and DRM_IOCTL_AMDGPU_GEM_USERPTR are DRM_AUTH|DRM_RENDER_ALLOW with no capability check, so any user able to open /dev/dri/renderD* (render group or seat uaccess) can submit a multi-entity gang of up to AMDGPU_CS_GANG_SIZE jobs. UI:N - The attacker's own process issues the gang CS ioctls and races munmap/madvise against its own userptr BO; no other user has to act. S:U - The leaked and prematurely freed drm_sched_fence objects are kernel slab memory under the same kernel authority; no GPU, IOMMU or VM boundary is crossed. C:H - If the RCU-freed drm_sched_fence slot is reallocated by the attacker's next CS, the stale put decrements that live fence's scheduled refcount and frees a finished fence still installed in dma_resv/syncobjs; reclaiming it lets SYNCOBJ/sync_file ioctls read through the dangling dma_fence. I:H - The same premature free leaves a live dma_fence whose ops pointer and cb_list come from reclaimed memory; dma_fence_signal()/dma_fence_release() write through cb_list and call ops->release, giving write and control-flow primitives. A:H - Every completed gang leaks the leader's drm_sched_fence (slab without SLAB_ACCOUNT) plus the hw fence it pins (the whole amdgpu_job on trees embedding hw_fence), so an unprivileged loop exhausts memory past memcg limits; the -EAGAIN path also hits a refcount_t underflow WARN.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < 94f67beb15993066c97bd31d9c176b9fe00a9df9 (affected · git)68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < 5027839fd02b107d50a8fcbdb75b37c885f68a32 (affected · git)68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < 022471384f88d86c68f08de7bfeb9fbd6cc3c75c (affected · git)68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < b83464af4ddd549c2998d52f04fda6910de521ed (affected · git)68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < c82c35882df4424f28dbcff1605d7211e41de767 (affected · git)68ce8b242242651eb3cb4ff29b79c44d02f752c9 to < c1584e10a7deb655438f21867b2b7a356a9aaf9f (affected · git)Default: unaffected Linux · cna
Linux Linux 6.1 (affected)0 to < 6.1 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

drm/amdgpu: drop the gang leader reference when freeing gang jobs

Provenance

Schema
5.2
Searchable
yes
Content hash
ab5c08c0e081c11467e86b898c5883c91fcb0b92106b55c5511bcadf2758cdc4
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected