A use-after-free vulnerability exists in the Linux kernel's handling of the PAGEMAP_SCAN ioctl in fs/proc/task_mmu. The flaw arises because do_pagemap_scan() does not hold a reference to mm_users while scanning, allowing concurrent exit_mmap() calls to free a hugetlb VMA's lock during a read-locked phase. This can cause a use-after-free on a read-write semaphore, potentially leading to kernel instability or crashes. The issue affects unprivileged users and does not require huge pages to be configured. The vulnerability has been resolved by pinning mm_users during the scan to prevent concurrent exit_mmap() execution.