Linux
accel/amxdna: Fix page-insertion errors in amdxdna_insert_pages()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e486147c912f653ef4b60a6c7dbd4168a4c56a9f, < b3d05a335cbd3d89538e9dde1621dccf33ae945a
- >= e486147c912f653ef4b60a6c7dbd4168a4c56a9f, < 1501e4d07c6fee0d50531a0d1cb2be01a63e6e75
- >= e486147c912f653ef4b60a6c7dbd4168a4c56a9f, < 8d51e0fd3e698919d2adeff71936377f0c0d4aa0
Fixed in b3d05a335cbd3d89538e9dde1621dccf33ae945a, 1501e4d07c6fee0d50531a0d1cb2be01a63e6e75, 8d51e0fd3e698919d2adeff71936377f0c0d4aa0
- 6.16
Fixed in 0, 6.18.57, 7.1.9, 7.2
Mitigation
Upgrade Linux to b3d05a335cbd3d89538e9dde1621dccf33ae945a or 1501e4d07c6fee0d50531a0d1cb2be01a63e6e75 or 8d51e0fd3e698919d2adeff71936377f0c0d4aa0 or later.
Upgrade Linux to 0 or 6.18.57 or 7.1.9 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.