GHSA-VJRR-F73M-4V53
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-12-01 06:31In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: fix doorbell allocation race creating duplicate allocations
The check-and-allocate sequence on pdd->qpd.proc_doorbells is lockless at every call site of kfd_alloc_process_doorbells(): kfd_get_process_doorbells() (mmap of /dev/kfd), kfd_ioctl_create_queue() and the CRIU restore path each test the pointer under different locking (or none), so two racing threads can both observe NULL and each allocate a doorbell BO and bitmap, orphaning one allocation and handing the two mappings different backing pages.
Move the serialization into kfd_alloc_process_doorbells() itself, using a new per-process-device mutex so all three call sites are covered regardless of their own locking. The device-global kfd->doorbell_mutex is not suitable here: it is acquired under dqm->lock on the kernel-doorbell path (start_cpsch() -> pm_init() -> kq_initialize() -> kfd_get_kernel_doorbell()), so holding it across the sleeping allocations above would create a lock-ordering inversion with dqm->lock via TTM eviction, and it would also serialize doorbell setup of unrelated processes behind a device-wide lock for per-process state.
This issue was discovered by Tencent CodeBuddy Security.
v3 (Felix Kuehling): - Removed unlocked check in kfd_get_process_doorbell flagged as problematic by Sashiko Bot. Fall back to the locked check inside kfd_alloc_process_doorbells - Added missing mutex_destroy v4 (Felix Kuehling): - Removed unlocked checks around other kfd_alloc_process_doorbells calls
(cherry picked from commit 4e27ba5ad5f76932d4f6cbacd25c81c2dd40ec4a)
{
"affected": [],
"aliases": [
"CVE-2026-99986"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:20:41Z",
"severity": "HIGH"
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: fix doorbell allocation race creating duplicate allocations\n\nThe check-and-allocate sequence on pdd-\u003eqpd.proc_doorbells is\nlockless at every call site of kfd_alloc_process_doorbells():\nkfd_get_process_doorbells() (mmap of /dev/kfd),\nkfd_ioctl_create_queue() and the CRIU restore path each test the\npointer under different locking (or none), so two racing threads can\nboth observe NULL and each allocate a doorbell BO and bitmap,\norphaning one allocation and handing the two mappings different\nbacking pages.\n\nMove the serialization into kfd_alloc_process_doorbells() itself,\nusing a new per-process-device mutex so all three call sites are\ncovered regardless of their own locking. The device-global\nkfd-\u003edoorbell_mutex is not suitable here: it is acquired under\ndqm-\u003elock on the kernel-doorbell path (start_cpsch() -\u003e pm_init() -\u003e\nkq_initialize() -\u003e kfd_get_kernel_doorbell()), so holding it across\nthe sleeping allocations above would create a lock-ordering\ninversion with dqm-\u003elock via TTM eviction, and it would also\nserialize doorbell setup of unrelated processes behind a\ndevice-wide lock for per-process state.\n\nThis issue was discovered by Tencent CodeBuddy Security.\n\nv3 (Felix Kuehling):\n- Removed unlocked check in kfd_get_process_doorbell flagged as\n problematic by Sashiko Bot. Fall back to the locked check inside\n kfd_alloc_process_doorbells\n- Added missing mutex_destroy\nv4 (Felix Kuehling):\n- Removed unlocked checks around other kfd_alloc_process_doorbells calls\n\n(cherry picked from commit 4e27ba5ad5f76932d4f6cbacd25c81c2dd40ec4a)",
"id": "GHSA-vjrr-f73m-4v53",
"modified": "2026-12-01T06:31:33Z",
"published": "2026-11-30T15:32:52Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99986"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/2081dc291247066cf174f9ad4b20eaffc5663dc0"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/84d62591d343e1aa2c045cf4c5f079eee4500da7"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8b1cb368bce3a3a670e36b82372aa0033ffe3d85"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/99dfb16dd7cbe0e0c298b65e099e8d5b93ad8ac5"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/bebad45050945a3d668d6701fb77ae2571c5d44b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f56f23b99d67b523c7b92ee0385851de079bbafe"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
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.
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
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.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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.