CVE-2026-139554

drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset

The user queue UAPI permits the WPTR at any 8-byte aligned offset within a
BO. amdgpu_userq_fence_read_wptr() locates the mapping containing the WPTR
address, but amdgpu_bo_kmap() returns the start of the BO, so the code read
the first u64 regardless of the WPTR offset. USERQ_SIGNAL uses this value as
the exported fence seqno, so a wrong read makes the fence signal early (or
never), breaking dependency synchronization.

Translate the WPTR GPU address to a byte offset within the BO, accounting
for the VA mapping start and the mapping's BO offset, before reading it.

Analysis

AI-generated

Technical impact

The amdgpu user queue (UAPI) incorrectly calculates the write pointer (WPTR) offset when reading from a buffer object (BO). Instead of translating the GPU address into a byte offset that accounts for the virtual address mapping start and the BO offset, the kernel erroneously reads the first 8‑byte value at the beginning of the mapping. This off‑by‑offset misread causes the exported fence sequence number to be wrong, so dependent work items may be signaled prematurely or never, breaking the synchronization guarantees required by drivers and applications. The flaw is an out‑of‑bounds or incorrect offset read leading to a denial‑of‑service style failure in kernel GPU synchronization.

Affected Systems

All Linux kernel distributions that ship the amdgpu DRM driver before the patch that implements the fix. The vulnerability applies to any kernel version that includes the amdgpu_userq_fence_read_wptr functionality, regardless of the vendor distribution. No specific version numbers are disclosed, so any kernel not containing the corrected commit should be considered affected.

Risk and Exploitability

The vulnerability is a kernel‑level flaw that can lead to synchronization failures, potentially causing data corruption or denial of service for GPU applications. There is no publicly documented exploit, the EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog. The likely attack vector requires local access to the amdgpu driver and the ability to invoke user queue operations, so exploitation is constrained to users with kernel or elevated privileges. Given the high severity of kernel synchronization defects and the lack of available exploits, the risk is considered high for unpatched systems but the probability of exploitation is low without privileged access. An immediate kernel update is recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that incorporates the amdgpu user queue WPTR offset fix (the commit identified in the provided links, e.g., cbe9725 or c7ae3b2).
  • Reinstall or rebuild the amdgpu driver module from the updated kernel packages to ensure the patch is active.
  • Reboot the system and run GPU workload tests to confirm that fence signals occur correctly and no synchronization errors are observed.

Generated by OpenCVE AI on November 30, 2026 at 23:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-170
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset The user queue UAPI permits the WPTR at any 8-byte aligned offset within a BO. amdgpu_userq_fence_read_wptr() locates the mapping containing the WPTR address, but amdgpu_bo_kmap() returns the start of the BO, so the code read the first u64 regardless of the WPTR offset. USERQ_SIGNAL uses this value as the exported fence seqno, so a wrong read makes the fence signal early (or never), breaking dependency synchronization. Translate the WPTR GPU address to a byte offset within the BO, accounting for the VA mapping start and the mapping's BO offset, before reading it.
Title drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-170

    Improper Null Termination

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM