GHSA-JJ6H-HWXF-JXF9

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: guard VCE/UVD sched entity teardown on failed probe

Since commit 037b98a2312e ("drm/amdgpu: move UVD and VCE sched entity init after sched init"), drm_sched_entity_init() for the VCE and UVD kernel entities runs in the scheduler-init phase, well after the IP-block sw_init phase has allocated the vcpu_bos.

If probe fails between the two phases, amdgpu_device_fini_sw() still runs the per-IP sw_fini callbacks for blocks that did complete sw_init. Both amdgpu_vce_sw_fini() and amdgpu_uvd_sw_fini() then call drm_sched_entity_destroy() on an entity that was never initialized: entity->rq is NULL and drm_sched_entity_flush() dereferences it, oopsing in whatever context drove the failed probe.

The hole was latent-but-safe until commit 2df5efb45425 ("drm/sched: Remove redundant entity->rq initialization and checks") removed the if (!entity->rq) early return that commit 1decbf6bb0b4 ("drm/sched: Fix entities with 0 rqs.") had put in drm_sched_entity_flush(), on the grounds that entity->rq can never be NULL. That holds only for entities that completed drm_sched_entity_init() — not for the never-initialized entity this teardown path reaches.

Observed on real hardware: MI50 (Vega20, VCE 4.0 / UVD 7.2) behind a Thunderbolt link — a pciehp presence/link-change event re-probes the device; when the re-probe fails (-EINVAL here), the cleanup path NULL-derefs inside drm_sched_entity_flush() in the pciehp IRQ thread and takes the whole machine down (panic_on_oops, EFI pstore capture). Reproduced twice on 7.3-rc5, 2026-10-06 and 2026-10-09, identical signature; the faulting instruction is mov (%rax),%r15 on rax = entity->rq == NULL, i.e. sched = entity->rq->sched:

BUG: kernel NULL pointer dereference RIP: drm_sched_entity_flush+0x34/0x2d0 [gpu_sched] drm_sched_entity_destroy amdgpu_vce_sw_fini vce_v4_0_sw_fini amdgpu_device_fini_sw ... pciehp_configure_device pciehp_handle_presence_or_link_change

Guard the entity teardown on entity->rq, which is set only by drm_sched_entity_init(). amdgpu_ring_fini() already self-guards via the rings[] registration, and the vcpu_bo/firmware cleanup still runs as before.

v2: retarget Fixes: at commit 2df5efb45425 ("drm/sched: Remove redundant entity->rq initialization and checks") — the !entity->rq check from commit 1decbf6bb0b4 ("drm/sched: Fix entities with 0 rqs.") that Alex pointed to was removed by it in the 7.3 window, so this is a regression there, not a pre-existing hole.

(cherry picked from commit 3ad55d18f468fa81be725301d1e138ecd5148e6a)

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99871"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:21Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: guard VCE/UVD sched entity teardown on failed probe\n\nSince commit 037b98a2312e (\"drm/amdgpu: move UVD and VCE sched entity\ninit after sched init\"), drm_sched_entity_init() for the VCE and UVD\nkernel entities runs in the scheduler-init phase, well after the\nIP-block sw_init phase has allocated the vcpu_bos.\n\nIf probe fails between the two phases, amdgpu_device_fini_sw() still\nruns the per-IP sw_fini callbacks for blocks that did complete\nsw_init. Both amdgpu_vce_sw_fini() and amdgpu_uvd_sw_fini() then call\ndrm_sched_entity_destroy() on an entity that was never initialized:\nentity-\u003erq is NULL and drm_sched_entity_flush() dereferences it,\noopsing in whatever context drove the failed probe.\n\nThe hole was latent-but-safe until commit 2df5efb45425 (\"drm/sched:\nRemove redundant entity-\u003erq initialization and checks\") removed the\nif (!entity-\u003erq) early return that commit 1decbf6bb0b4 (\"drm/sched:\nFix entities with 0 rqs.\") had put in drm_sched_entity_flush(), on the\ngrounds that entity-\u003erq can never be NULL. That holds only for\nentities that completed drm_sched_entity_init() \u2014 not for the\nnever-initialized entity this teardown path reaches.\n\nObserved on real hardware: MI50 (Vega20, VCE 4.0 / UVD 7.2) behind a\nThunderbolt link \u2014 a pciehp presence/link-change event re-probes the\ndevice; when the re-probe fails (-EINVAL here), the cleanup path\nNULL-derefs inside drm_sched_entity_flush() in the pciehp IRQ thread\nand takes the whole machine down (panic_on_oops, EFI pstore capture).\nReproduced twice on 7.3-rc5, 2026-10-06 and 2026-10-09, identical\nsignature; the faulting instruction is `mov (%rax),%r15` on rax =\nentity-\u003erq == NULL, i.e. `sched = entity-\u003erq-\u003esched`:\n\n  BUG: kernel NULL pointer dereference\n  RIP: drm_sched_entity_flush+0x34/0x2d0 [gpu_sched]\n  drm_sched_entity_destroy\n  amdgpu_vce_sw_fini\n  vce_v4_0_sw_fini\n  amdgpu_device_fini_sw\n  ...\n  pciehp_configure_device\n  pciehp_handle_presence_or_link_change\n\nGuard the entity teardown on entity-\u003erq, which is set only by\ndrm_sched_entity_init(). amdgpu_ring_fini() already self-guards via\nthe rings[] registration, and the vcpu_bo/firmware cleanup still runs\nas before.\n\nv2: retarget Fixes: at commit 2df5efb45425 (\"drm/sched: Remove\nredundant entity-\u003erq initialization and checks\") \u2014 the !entity-\u003erq\ncheck from commit 1decbf6bb0b4 (\"drm/sched: Fix entities with 0\nrqs.\") that Alex pointed to was removed by it in the 7.3 window,\nso this is a regression there, not a pre-existing hole.\n\n(cherry picked from commit 3ad55d18f468fa81be725301d1e138ecd5148e6a)",
  "id": "GHSA-jj6h-hwxf-jxf9",
  "modified": "2026-11-30T15:32:47Z",
  "published": "2026-11-30T15:32:47Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99871"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4a7b3618f6b9b1718da0aed7d237eca13823dcec"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c3fed6272bb4771a849c33c781af99afa90e90ad"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.