PT-2026-162953

CVE-2026-99986

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

Pontuação
N/A
Não disponível

Não há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.

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.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)
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾