CVE-2022-50630: kernel: mm: hugetlb: fix UAF in hugetlb_handle_userfault | OX.Radar
Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-50630

kernel: mm: hugetlb: fix UAF in hugetlb_handle_userfault

Overview

Published
8 Dec 2025
Modified
15 Oct 2026
High CVE
0 Registry packages
141 OS packages
9 Linux distributions
Yes Fix available

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/000000000000d5e00a05e834962e@google.com/
[2] https://lore.kernel.org/linux-mm/20220921014457.1668-1-liuzixian4@huawei.com/

Source: OX vulnerability database

Severity

7.8 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 64 fixes

Photon OS 1 release · 1 package

fixed 1
bpftool
Photon OS fixes for CVE-2022-50630
ReleasePackageFixed in
4.0 bpftool +9 5.10.46-2.ph4

Red Hat 3 releases · 3 packages

affected 3 fixed 2
kernel-rt kernel bpftool
Red Hat fixes for CVE-2022-50630
ReleasePackageFixed inAdvisory
7 kernel-rt +9 affected —
8 kernel-rt +14 affected —
9 kernel-rt +20 affected —
9 kernel +60 0:5.14.0-362.8.1.el9_3 RHSA-2023:6583
9 bpftool 0:7.2.0-362.8.1.el9_3 RHSA-2023:6583

SUSE Linux Enterprise 3 releases · 5 packages

fixed 8
kgraft-patch-4-12-14-122-290-default cluster-md-kmp-default kernel-livepatch-5-14-21-150400-24-194-default kernel-default-base kernel-livepatch-5-14-21-150500-55-133-default
SUSE Linux Enterprise fixes for CVE-2022-50630
ReleasePackageFixed inAdvisory
12.5 kgraft-patch-4-12-14-122-290-default 1-8.7.1 SUSE-SU-2026:0316-1
12.5 cluster-md-kmp-default +13 4.12.14-122.290.1 SUSE-SU-2026:0316-1
15.4 kernel-livepatch-5-14-21-150400-24-194-default 1-150400.9.7.1 SUSE-SU-2026:0617-1
15.4 cluster-md-kmp-default +17 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
15.4 kernel-default-base 5.14.21-150400.24.194.1.150400.24.98.3 SUSE-SU-2026:0617-1
15.5 kernel-livepatch-5-14-21-150500-55-133-default 1-150500.11.3.1 SUSE-SU-2026:0317-1

2 more rows

SUSE Linux Enterprise Micro 4 releases · 4 packages

fixed 12
kernel-rt kernel-default kernel-default-base kernel-devel-rt
SUSE Linux Enterprise Micro fixes for CVE-2022-50630
ReleasePackageFixed inAdvisory
5.2 kernel-rt +1 5.3.18-150300.232.1 SUSE-SU-2026:0350-1
5.2 kernel-default 5.3.18-150300.59.232.1 SUSE-SU-2026:0369-1
5.2 kernel-default-base 5.3.18-150300.59.232.1.150300.18.138.1 SUSE-SU-2026:0369-1
5.3 kernel-rt +1 5.14.21-150400.15.142.1 SUSE-SU-2026:0411-1
5.3 kernel-default 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
5.3 kernel-default-base 5.14.21-150400.24.194.1.150400.24.98.3 SUSE-SU-2026:0617-1

6 more rows

debian 4 releases · 1 package

fixed 4
linux
debian fixes for CVE-2022-50630
ReleasePackageFixed in
11 linux 5.10.158-1
12 linux 6.0.3-1
13 linux 6.0.3-1
14 linux 6.0.3-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2022-50630
ReleasePackageFixed in
linux 6.0.3-1

root.io debian 3 releases · 1 package

fixed 3
rootio-linux
root.io debian fixes for CVE-2022-50630
ReleasePackageFixed in
11 rootio-linux 5.10.158-1
12 rootio-linux 6.0.3-1
13 rootio-linux 6.0.3-1

root.io ubuntu 1 release · 1 package

fixed 1
rootio-linux
root.io ubuntu fixes for CVE-2022-50630
ReleasePackageFixed in
22.04 rootio-linux 5.15.0-60.66

ubuntu 4 releases · 20 packages

affected 2 fixed 27
linux linux-intel-iotg-5-15 linux-riscv-5-15 linux-oracle-5-15 linux-gcp-5-15 linux-aws-5-15 +14
ubuntu fixes for CVE-2022-50630
ReleasePackageFixed in
18.04-ESM linux +12 affected
20.04 linux-intel-iotg-5-15 5.15.0-1025.30~20.04.1
20.04 linux-riscv-5-15 5.15.0-1029.33~20.04.1
20.04 linux-oracle-5-15 5.15.0-1029.35~20.04.1
20.04 linux-gcp-5-15 5.15.0-1029.36~20.04.1
20.04 linux-aws-5-15 5.15.0-1030.34~20.04.1

23 more rows

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.