{"id":"CVE-2026-74721","aliases":["CVE-2026-74721"],"related":[],"kind":"vulnerability","state":"published","title":"accel/amxdna: Fix page-insertion errors in amdxdna_insert_pages()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amxdna: Fix page-insertion errors in amdxdna_insert_pages()\n\nTwo error paths in amdxdna_insert_pages() called vma->vm_ops->close(vma)\nbefore returning an error code to the caller.  This is incorrect:\namdxdna_gem_obj_mmap() registers an HMM interval notifier before calling\namdxdna_insert_pages(), and on a hard error it jumps to hmm_unreg to undo\nthat registration.  Calling vm_ops->close() manually — which drops the\nshmem pages_pin_count and the GEM object reference that backs the VMA —\nbefore the mmap syscall has even returned causes those resources to be\nreleased while the VMA is still alive.  The kernel VMA teardown will call\nvm_ops->close() a second time when the process later unmaps the range,\nproducing a reference count underflow.\n\nReplace both hard-error returns with a deferred-fault approach that keeps\nthe VMA alive and retries page insertion through the HMM range-fault path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amxdna: Fix page-insertion errors in amdxdna_insert_pages()\n\nTwo error paths in amdxdna_insert_pages() called vma->vm_ops->close(vma)\nbefore returning an error code to the caller.  This is incorrect:\namdxdna_gem_obj_mmap() registers an HMM interval notifier before calling\namdxdna_insert_pages(), and on a hard error it jumps to hmm_unreg to undo\nthat registration.  Calling vm_ops->close() manually — which drops the\nshmem pages_pin_count and the GEM object reference that backs the VMA —\nbefore the mmap syscall has even returned causes those resources to be\nreleased while the VMA is still alive.  The kernel VMA teardown will call\nvm_ops->close() a second time when the process later unmaps the range,\nproducing a reference count underflow.\n\nReplace both hard-error returns with a deferred-fault approach that keeps\nthe VMA alive and retries page insertion through the HMM range-fault path.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\naccel/amxdna: Corrige errores de inserción de página en amdxdna_insert_pages()\n\nDos rutas de error en amdxdna_insert_pages() llamaron a vma -> vm_ops -> close(vma) antes de devolver un código de error al llamador. Esto es incorrecto: amdxdna_gem_obj_mmap() registra un notificador de intervalo HMM antes de llamar a amdxdna_insert_pages(), y en un error grave salta a hmm_unreg para deshacer ese registro. Llamar a vm_ops -> close() manualmente - lo que reduce el pages_pin_count de shmem y la referencia al objeto GEM que respalda el VMA - antes de que la llamada al sistema mmap haya siquiera regresado hace que esos recursos sean liberados mientras el VMA aún está activo. La desestructuración del VMA del kernel llamará a vm_ops -> close() una segunda vez cuando el proceso desmapee el rango más tarde, produciendo un desbordamiento negativo del contador de referencias.\n\nReemplaza ambas devoluciones de error grave con un enfoque de fallo diferido que mantiene el VMA activo y reintenta la inserción de página a través de la ruta de fallo de rango HMM.","source":"nvd"}],"published":"2026-08-22T15:33:13.960Z","modified":"2026-10-15T11:17:48.843Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","fixed":"b3d05a335cbd3d89538e9dde1621dccf33ae945a","status":"affected"},{"type":"git","introduced":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","fixed":"1501e4d07c6fee0d50531a0d1cb2be01a63e6e75","status":"affected"},{"type":"git","introduced":"e486147c912f653ef4b60a6c7dbd4168a4c56a9f","fixed":"8d51e0fd3e698919d2adeff71936377f0c0d4aa0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b3d05a335cbd3d89538e9dde1621dccf33ae945a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1501e4d07c6fee0d50531a0d1cb2be01a63e6e75","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d51e0fd3e698919d2adeff71936377f0c0d4aa0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74721","url":"https://www.cve.org/CVERecord?id=CVE-2026-74721","licence":"CVE Terms of Use","modified":"2026-10-15T10:09:24.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74721","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74721","licence":"Public domain","modified":"2026-10-15T11:17:48.843Z"}],"updatedAt":"2026-11-25T22:59:34.949Z","epss":{"score":0.00127,"percentile":0.02585,"date":"2026-12-01T12:00:22.000Z"}}