CVE-2026-139774

accel/amdxdna: Fix possible use-after-free when freeing device BO

Published Nov 30, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

accel/amdxdna: Fix possible use-after-free when freeing device BO

When the DRM file descriptor is closed, amdxdna_client_cleanup() frees
the client structure. If device BOs are still alive, freeing them may
access abo->client and result in a use-after-free.

Move amdxdna_gem_heap_free(), which accesses abo->client, before clearing
abo->client in the BO close callback. Also track the heap BOs referenced
by device BOs so they can be accessed without dereferencing abo->client.

Analysis

AI-generated

Technical impact

The vulnerability resides in the AMD XDNA driver that runs in the Linux kernel. When a Direct Rendering Manager (DRM) file descriptor is closed, the cleanup routine frees a client structure. If device buffer objects (BOs) remain allocated, freeing them may access the now‑stale client pointer, producing a use‑after‑free and corrupting kernel memory. This flaw can potentially allow an attacker to execute arbitrary code in kernel mode or trigger a crash, compromising system integrity and availability.

Affected Systems

All Linux kernel versions that have not incorporated the commit identified by 6a1f6cb7— the patch that moves the BO free path before clearing the client pointer—are vulnerable. Distributions whose kernels lag behind this commit, including those with additional vendor modifications, are at risk until the driver is updated.

Risk and Exploitability

The CVSS score of 5.5 indicates a moderate severity; the EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog. The missing data suggests the exploitability is uncertain, but based on the description it is inferred that a local user with sufficient privileges to open the AMD XDNA DRM device can trigger the bug. Once triggered, the memory corruption could potentially lead to privilege escalation or a denial‑of‑service condition.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that includes the commit 6a1f6cb7 which reorders the BO free logic and tracks heap BOs to prevent dereferencing a freed client pointer.
  • If an immediate kernel upgrade is not possible, disable or remove access to the /dev/dri/amdgfx or equivalent AMD XDNA DRM device node so that only trusted users can open file descriptors, thereby limiting the attack surface.
  • Configure audit or kernel logging to monitor for unusual memory corruption errors or system crashes, and review dmesg or kern.log regularly for signs of exploitation.

Generated by OpenCVE AI on December 1, 2026 at 15:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Fix possible use-after-free when freeing device BO When the DRM file descriptor is closed, amdxdna_client_cleanup() frees the client structure. If device BOs are still alive, freeing them may access abo->client and result in a use-after-free. Move amdxdna_gem_heap_free(), which accesses abo->client, before clearing abo->client in the BO close callback. Also track the heap BOs referenced by device BOs so they can be accessed without dereferencing abo->client.
Title accel/amdxdna: Fix possible use-after-free when freeing device BO
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:37 PM