CVE-2026-99986: drm/amdkfd: fix doorbell allocation race creating duplicate allocations

Published Nov 30, 2026
·
Updated

In 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.procdoorbells is lockless at every call site of kfdallocprocessdoorbells(): kfdgetprocessdoorbells() (mmap of /dev/kfd), kfdioctlcreatequeue() 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 kfdallocprocessdoorbells() itself, using a new per-process-device mutex so all three call sites are covered regardless of their own locking. The device-global kfd->doorbellmutex is not suitable here: it is acquired under dqm->lock on the kernel-doorbell path (startcpsch() -> pminit() -> kqinitialize() -> kfdgetkerneldoorbell()), 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 kfdgetprocessdoorbell flagged as problematic by Sashiko Bot. Fall back to the locked check inside kfdallocprocessdoorbells - Added missing mutexdestroy v4 (Felix Kuehling): - Removed unlocked checks around other kfdallocprocessdoorbells calls

(cherry picked from commit 4e27ba5ad5f76932d4f6cbacd25c81c2dd40ec4a)

Affected Software

9 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.1.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux*
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  6. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  7. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 4e27ba5ad5f76932d4f6cbacd25c81c2dd40ec4a

Event History

Nov 30, 2026
CVE Published
via MITRE·01:18 PM
Data Sourced
via MITRE·01:18 PM
Description
Data Sourced
via OSV·01:18 PM
DescriptionAffected Software
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

What activity is required to trigger the race?

Two or more threads must concurrently reach doorbell setup for the same process-device state while proc_doorbells is still NULL. The relevant entry points are mmap of /dev/kfd, queue creation through kfd_ioctl_create_queue(), and the CRIU restore path.

2

What is the practical impact if the race occurs?

Racing callers can each allocate a doorbell buffer object and bitmap. One allocation can be orphaned, and the resulting mappings can use different backing pages.

3

Which environments should be prioritized for review?

Prioritize systems where a process can concurrently map /dev/kfd, create KFD queues, or perform CRIU restoration involving KFD state. The affected allocation state is per process-device, rather than a device-wide shared setup operation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203