CVE-2022-50630 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mm: hugetlb: fix UAF in hugetlb_handle_userfault The vma_lock and hugetlb_fault_mutex are dropped before handling userfault and reacquire them again after handle_userfault(), but reacquire the vma_lock could lead to UAF[1,2] due to the following race, hugetlb_fault hugetlb_no_page /*unlock vma_lock */ hugetlb_handle_userfault handle_userfault /* unlock mm->mmap_lock*/ vm_mmap_pgoff do_mmap mmap_region munmap_vma_range /* clean old vma */ /* lock vma_lock again <--- UAF */ /* unlock vma_lock */ Since the vma_lock will unlock immediately after hugetlb_handle_userfault(), let's drop the unneeded lock and unlock in hugetlb_handle_userfault() to fix the issue. [1] https://lore.kernel.org/linux-mm/[email protected]/ [2] https://lore.kernel.org/linux-mm/[email protected]/
A use-after-free vulnerability has been identified in the Linux kernel's handling of userfaults for hugetlb memory. This issue arises because the vma_lock and hugetlb_fault_mutex are released before processing a userfault and then reacquired afterward. The re-acquisition of the vma_lock can lead to a use-after-free condition due to a race condition. The vulnerability is present in the Linux kernel stable tree, specifically in versions 4.14 and later.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched kernel can be found on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 8, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0db2efb3bff879566f05341d94c3de00ac95c4cc | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/45c33966759ea1b4040c08dacda99ef623c0ca29 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/78504bcedb2f1bbfb353b4d233c24d641c4dda33 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/958f32ce832ba781ac20e11bb2d12a9352ea28fc | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/dd691973f67b2800a97db723b1ff6f07fdcf7f5a | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 8, 2025 | New CVE Received | kernel.org |
Volerion