Skip to content
High 7.8

Linux Kernelのamdkfdに競合状態の脆弱性、権限昇格のおそれ

CVE-2026-99986 First seen on SecPulse

Summary

Linux Kernelのamdkfdドライバーで、ドアベル領域の割り当て処理に競合状態の脆弱性が見つかりました。同時に割り当てが走ると領域が二重に作られ、メモリ上の不整合を突かれるおそれがあります。影響を受けるのは6.1.193より前など各系統の古い版で、6.1.193、6.6.163、6.12.117、6.18.63、7.3.4などの修正版で直ります。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Linux Kernelのamdkfdドライバーで、ドアベル領域の割り当て処理に競合状態の脆弱性が見つかりました。同時に割り当てが走ると領域が二重に作られ、メモリ上の不整合を突かれるおそれがあります。影響を受けるのは6.1.193より前など各系統の古い版で、6.1.193、6.6.163、6.12.117、6.18.63、7.3.4などの修正版で直ります。

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.1.0, < 6.1.193→ 6.1.193
≥ 6.2.0, < 6.6.163→ 6.6.163
≥ 6.7.0, < 6.12.117→ 6.12.117
≥ 6.13.0, < 6.18.63→ 6.18.63
≥ 6.19.0, < 7.3.4→ 7.3.4

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details