CVE-2026-74716

accel/amdxdna: Fix locally exploitable BUG_ON in amdxdna_insert_pages()

Published Aug 22, 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 locally exploitable BUG_ON in amdxdna_insert_pages()

In amdxdna_insert_pages(), vm_flags_mod() sets VM_MIXEDMAP and clears
VM_PFNMAP. If an unprivileged userspace process mmaps a non-imported GEM
object and then calls madvise(MADV_DONTNEED), the PTEs will be
successfully cleared because VM_MIXEDMAP allows this (unlike VM_PFNMAP).

When userspace subsequently accesses the memory, drm_gem_shmem_fault()
handles the page fault and attempts to map the backing shmem page via
vmf_insert_pfn() which calls vmf_insert_pfn_prot(). Because the backing
shmem page is normal system memory (pfn_valid(pfn) is true) and the VMA
now has VM_MIXEDMAP set, won't this predictably trigger the explicit
assertion BUG_ON((vma->vm_flags & VM_MIXEDMAP) && pfn_valid(pfn))

Fix by removing the vm_flags_mod() call and replacing the vm_insert_pages()
pre-population with the handle_mm_fault() loop that was already used for
the import (dma-buf) path.

Analysis

AI-generated

Technical impact

A flaw in the Linux kernel’s AMD XDNA acceleration module causes a BUG_ON assertion when an unprivileged userspace process maps a non-imported GEM object, overwrites its page entries via madvise(MADV_DONTNEED), and then accesses the resulting memory. The kernel then attempts to map a backing shmem page with VM_MIXEDMAP set and a valid PFN, which triggers an explicit assertion and causes the kernel to die. The vulnerability is locally exploitable from user‑space and results in a kernel panic, effectively taking the system offline.

Affected Systems

All Linux kernel builds that include the accel/amdxdna driver and have not yet applied the patch that removes the vm_flags_mod call are affected. Versions prior to the commit that introduced the fix are vulnerable; current stable kernels awaiting the merge are also at risk until the update is deployed.

Risk and Exploitability

The EPSS score of <1% indicates a very low probability of exploitation, but the vulnerability remains locally exploitable from user space. Because it triggers a BUG_ON that causes the kernel to crash, the impact is a denial of service. The CVSS score of 5.5 reflects that no escalation or data disclosure is achievable, and the primary effect is an unstable kernel. The vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the most recent Linux kernel update that incorporates the amdxdna_insert_pages patch which removes the vm_flags_mod call and corrects the handling of VM_MIXEDMAP and VM_PFNMAP.
  • If the update cannot be applied immediately, unload or disable the AMD XDNA acceleration module to prevent the buggy code path from being executed.
  • Configure kernel logging and monitoring to detect any BUG_ON occurrences and alert administrators to potential exploitation attempts.

Generated by OpenCVE AI on August 25, 2026 at 17:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-400
CWE-665
Type Values Removed Values Added
Weaknesses CWE-617
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
Weaknesses CWE-400
CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Fix locally exploitable BUG_ON in amdxdna_insert_pages() In amdxdna_insert_pages(), vm_flags_mod() sets VM_MIXEDMAP and clears VM_PFNMAP. If an unprivileged userspace process mmaps a non-imported GEM object and then calls madvise(MADV_DONTNEED), the PTEs will be successfully cleared because VM_MIXEDMAP allows this (unlike VM_PFNMAP). When userspace subsequently accesses the memory, drm_gem_shmem_fault() handles the page fault and attempts to map the backing shmem page via vmf_insert_pfn() which calls vmf_insert_pfn_prot(). Because the backing shmem page is normal system memory (pfn_valid(pfn) is true) and the VMA now has VM_MIXEDMAP set, won't this predictably trigger the explicit assertion BUG_ON((vma->vm_flags & VM_MIXEDMAP) && pfn_valid(pfn)) Fix by removing the vm_flags_mod() call and replacing the vm_insert_pages() pre-population with the handle_mm_fault() loop that was already used for the import (dma-buf) path.
Title accel/amdxdna: Fix locally exploitable BUG_ON in amdxdna_insert_pages()
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
Oct 15, 2026, 10:09 AM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 22, 2026, 4:16 PM
Modified
Oct 15, 2026, 11:17 AM
Severity
Moderate
Public date
Aug 22, 2026, 12:00 AM