Description
In the Linux kernel, the following vulnerability has been resolved:

accel/amxdna: Fix page-insertion errors in amdxdna_insert_pages()

Two error paths in amdxdna_insert_pages() called vma->vm_ops->close(vma)
before returning an error code to the caller. This is incorrect:
amdxdna_gem_obj_mmap() registers an HMM interval notifier before calling
amdxdna_insert_pages(), and on a hard error it jumps to hmm_unreg to undo
that registration. Calling vm_ops->close() manually — which drops the
shmem pages_pin_count and the GEM object reference that backs the VMA —
before the mmap syscall has even returned causes those resources to be
released while the VMA is still alive. The kernel VMA teardown will call
vm_ops->close() a second time when the process later unmaps the range,
producing a reference count underflow.

Replace both hard-error returns with a deferred-fault approach that keeps
the VMA alive and retries page insertion through the HMM range-fault path.
Published: 2026-08-22
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: kernel reference count underflow leading to potential memory corruption
Action: Patch now
AI Analysis

Impact

The Linux kernel’s accel/amxdna driver contains a bug in the amdxdna_insert_pages function that prematurely calls vm_ops->close on error paths. This decrements the VMA’s page pin count and releases the backing GEM object reference before the mmap system call has finished, while the VMA is still alive. Later, the normal VMA teardown re‑invokes vm_ops->close, causing a reference count underflow. This flaw can corrupt kernel memory.

Affected Systems

All Linux kernels that load the accel/amxdna module are affected. The module is typically loaded when AMD GPU drivers are used or when it is explicitly inserted. Any system running a kernel that contains the unpatched accel/amxdna code and that allows loading of this module is potentially impacted.

Risk and Exploitability

The CVSS score of 7.8 reflects a high severity, while the EPSS score of less than 1% indicates a low probability of exploitation in the wild. The issue is not listed in the CISA KEV database. Exploitation would involve triggering the error path in amdxdna_insert_pages; the description does not state the privilege level required, but based on the description it is inferred that the attack would likely be local. Successful exploitation could lead to kernel memory corruption, resulting in denial of service or, in the worst case, local privilege escalation. No active exploits have been documented at this time.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that incorporates the amdxdna_insert_pages patch.
  • If an update is not yet available, blacklist or unload the accel/amxdna module until the kernel is updated.
  • Configure boot parameters to prevent the module from loading automatically until the patch is applied.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 25 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 25 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 25 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 25 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics 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'}


Sat, 22 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: accel/amxdna: Fix page-insertion errors in amdxdna_insert_pages() Two error paths in amdxdna_insert_pages() called vma->vm_ops->close(vma) before returning an error code to the caller. This is incorrect: amdxdna_gem_obj_mmap() registers an HMM interval notifier before calling amdxdna_insert_pages(), and on a hard error it jumps to hmm_unreg to undo that registration. Calling vm_ops->close() manually — which drops the shmem pages_pin_count and the GEM object reference that backs the VMA — before the mmap syscall has even returned causes those resources to be released while the VMA is still alive. The kernel VMA teardown will call vm_ops->close() a second time when the process later unmaps the range, producing a reference count underflow. Replace both hard-error returns with a deferred-fault approach that keeps the VMA alive and retries page insertion through the HMM range-fault path.
Title accel/amxdna: Fix page-insertion errors 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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-25T05:42:02.244Z

Reserved: 2026-08-15T05:44:03.929Z

Link: CVE-2026-74721

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:47.080

Modified: 2026-08-25T06:18:57.913

Link: CVE-2026-74721

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-22T00:00:00Z

Links: CVE-2026-74721 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T17:45:04Z

Weaknesses
  • CWE-911

    Improper Update of Reference Count