Linux · Linux Kernel · CVE-2021-47214
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
The issue is related to a memory leak in the `hugetlb mcopy atomic pte()` function. When the code bails out using "goto out release unlock;" in certain cases, it detects that `new pagecache page` is false and calls `restore reserve on error()`, which deletes the reservation. This leads to a 100% reproducible leak when `remove inode hugepages()` is called, causing `h->resv hugepages` to increment. The problem can be resolved by treating the `is continue` case similar to adding a page into the pagecache and setting `new pagecache page` to true.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.