Linux
hugetlb: only adjust reservation during unmapping if mapcount is 0
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= df7a6d1f64056aec572162c5d35ed9ff86ece6f3, < b0b1b9ca80b795ed2223e76dd787db7067121fb9
- >= df7a6d1f64056aec572162c5d35ed9ff86ece6f3, < a3c65af20cceb7f997847727636b4017326f845d
- >= df7a6d1f64056aec572162c5d35ed9ff86ece6f3, < 0f001491e5a2ec69aa9d5dd6b799e5742245f9ea
- >= df7a6d1f64056aec572162c5d35ed9ff86ece6f3, < 5120b1e048d48596ffaec1a8412012a91adba73b
Fixed in b0b1b9ca80b795ed2223e76dd787db7067121fb9, a3c65af20cceb7f997847727636b4017326f845d, 0f001491e5a2ec69aa9d5dd6b799e5742245f9ea, 5120b1e048d48596ffaec1a8412012a91adba73b
- 6.9
Fixed in 0, 6.12.110, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to b0b1b9ca80b795ed2223e76dd787db7067121fb9 or a3c65af20cceb7f997847727636b4017326f845d or 0f001491e5a2ec69aa9d5dd6b799e5742245f9ea or 5120b1e048d48596ffaec1a8412012a91adba73b or later.
Upgrade Linux to 0 or 6.12.110 or 6.18.50 or 7.2.4 or 7.3 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.