CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of huge page reservations during the unmapping process, specifically when a folio is mapped in both a parent and child context. If the parent unmaps first, it can lead to an underflow in the reserved count, potentially causing memory management issues. Linux administrators and developers should prioritize this issue to ensure the stability and security of their systems.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: hugetlb: only adjust reservation during unmapping if mapcount is 0 Since df7a6d1f6405, __unmap_hugepage_range can adjust reservations. In the case of folio mapped in both a parent and a child, if the parent unmaps the range first, the reservation adjustment will result in an underflow of the reserved count. Once the child unmaps the range, the count is restored. Change __unmap_hugepage_range() to check the mapcount before adjusting the reservation.