CVE-2026-31766

drm/amdgpu: validate doorbell_offset in user queue creation

Published May 1, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: validate doorbell_offset in user queue creation

amdgpu_userq_get_doorbell_index() passes the user-provided
doorbell_offset to amdgpu_doorbell_index_on_bar() without bounds
checking. An arbitrarily large doorbell_offset can cause the
calculated doorbell index to fall outside the allocated doorbell BO,
potentially corrupting kernel doorbell space.

Validate that doorbell_offset falls within the doorbell BO before
computing the BAR index, using u64 arithmetic to prevent overflow.

(cherry picked from commit de1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec)

Analysis

AI-generated

Technical impact

The Linux kernel’s amdgpu driver has a flaw where an unbounded doorbell_offset supplied by user space is passed to a function without bounds checking. If an attacker provides a doorbell_offset larger than the allocated doorbell buffer object, the calculated index can reference memory outside that buffer. This out‑of‑bounds write corrupts kernel memory, potentially causing a crash or compromising kernel integrity if the overwritten data is leveraged.

Affected Systems

All Linux kernel releases that include the amdgpu driver before the commit adding bound checking for doorbell_offset are affected. The CVE does not list specific version ranges, so any kernel containing the unvalidated handling routine remains vulnerable until the fix is applied.

Risk and Exploitability

The flaw can be triggered by user‑space code that creates an amdgpu user queue with a malicious doorbell offset. Because the kernel performs the unchecked calculation, the attack works from a local user context with access to the amdgpu driver. The CVSS score of 7.1 indicates high severity, while the EPSS score of <1% suggests a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. The primary risk is kernel memory corruption that could destabilize the system; additional privilege escalation is possible only if the attacker can influence the overwritten data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch for doorbell_offset validation in the amdgpu driver
  • Ensure the system is rebooted or the amdgpu module is reloaded after the kernel upgrade so that the old, vulnerable code is not present
  • Limit user access to the amdgpu device nodes so that only trusted users can load the driver or create user queues

Generated by OpenCVE AI on May 11, 2026 at 19:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-787
Type Values Removed Values Added
Weaknesses CWE-119
CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: validate doorbell_offset in user queue creation amdgpu_userq_get_doorbell_index() passes the user-provided doorbell_offset to amdgpu_doorbell_index_on_bar() without bounds checking. An arbitrarily large doorbell_offset can cause the calculated doorbell index to fall outside the allocated doorbell BO, potentially corrupting kernel doorbell space. Validate that doorbell_offset falls within the doorbell BO before computing the BAR index, using u64 arithmetic to prevent overflow. (cherry picked from commit de1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec)
Title drm/amdgpu: validate doorbell_offset in user queue creation
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:25 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Analyzed
Published
May 1, 2026, 3:16 PM
Modified
Nov 11, 2026, 9:10 PM
Severity
Public date
May 1, 2026, 12:00 AM