CVE-2026-68380

accel/amdxdna: Fix use-after-free of mm_struct in job scheduler

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

accel/amdxdna: Fix use-after-free of mm_struct in job scheduler

amdxdna_cmd_submit() stores current->mm in job->mm without holding any
reference. aie2_sched_job_run() later access job->mm from the DRM
scheduler worker thread. With only a raw pointer and no structural
reference, the mm_struct can be freed before the scheduler runs the job.

Fix this by calling mmgrab() to hold a structural mm_count reference for
the lifetime of the job, paired with mmdrop() in every cleanup path.

Analysis

AI-generated

Technical impact

The Linux kernel contains a use‑after‑free flaw in the AMD XDNA acceleration interface. When a command is submitted, the current process’s mm_struct is stored in a job structure without incrementing its reference count. Later the job is executed on a separate DRM scheduler worker thread that dereferences the stale pointer. If the mm_struct is freed before the job runs, the worker thread can access invalid memory, potentially leading to kernel memory corruption and privilege escalation. This flaw involves inadequate reference counting, corresponding to CWE‑825.

Affected Systems

All Linux kernel builds that include the accel/amdxdna driver are affected. No specific version range is listed, so all installations that have not yet applied the referenced patch commits should be considered at risk.

Risk and Exploitability

The vulnerability’s severity is measured by a CVSS score of 7.8, indicating high impact. The EPSS score is <1%, reflecting a very low current exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Based on the description, exploitation would require the ability to submit a job to the AMD XDNA driver, but the precise privilege level is not specified by the advisory; it could be any user with access to that driver. Successful exploitation would need to happen before the mm_struct is freed. Because the flaw involves a use‑after‑free in kernel space, it could allow arbitrary code execution with kernel privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that implements the mmgrab/mmdrop fix – see the commit references provided in the advisory.
  • If a distribution update is not yet available, manually cherry‑pick the relevant commits into the kernel source and rebuild.
  • Reboot the system after updating the kernel to ensure the new code is active.

Generated by OpenCVE AI on August 14, 2026 at 01:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Fix use-after-free of mm_struct in job scheduler amdxdna_cmd_submit() stores current->mm in job->mm without holding any reference. aie2_sched_job_run() later access job->mm from the DRM scheduler worker thread. With only a raw pointer and no structural reference, the mm_struct can be freed before the scheduler runs the job. Fix this by calling mmgrab() to hold a structural mm_count reference for the lifetime of the job, paired with mmdrop() in every cleanup path.
Title accel/amdxdna: Fix use-after-free of mm_struct in job scheduler
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
Aug 17, 2026, 5:04 AM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 10, 2026, 1:20 PM
Modified
Aug 17, 2026, 6:17 AM
Severity
Important
Public date
Aug 10, 2026, 12:00 AM