CVE-2022-50285 json
mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages
published 2025-09-15 13 mo ago modified 2026-11-05 3 d ago also EUVD-2022-55570
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages
The h->*_huge_pages counters are protected by the hugetlb_lock, but alloc_huge_page has a corner case where it can decrement the counter outside of the lock.
This could lead to a corrupted value of h->resv_huge_pages, which we have observed on our systems.
Take the hugetlb_lock before decrementing h->resv_huge_pages to avoid a potential race.
Patch / fix
- Linux Linux 4.4, 4.9.332, 4.14.298, 4.19.264, 5.4.223, 5.10.153, 5.15.76, 6.0.6, 6.1
- linux Debian 14, Debian 13, Debian 12 6.0.6-1
debian advisories DEBIAN-CVE-2022-50285
- linux Ubuntu 18.04 LTS 4.15.0-204.215
- linux Ubuntu 20.04 LTS 5.4.0-139.156
- linux Ubuntu 22.04 LTS 5.15.0-60.66
- linux-aws Ubuntu 18.04 LTS 4.15.0-1150.163
- linux-aws Ubuntu 20.04 LTS 5.4.0-1096.104
- linux-aws Ubuntu 22.04 LTS 5.15.0-1030.34
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1100.109
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1029.36
ubuntu advisories UBUNTU-CVE-2022-50285
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 9 5.14.0-284.11.1.el9_2
- perf RHEL 9 5.14.0-284.11.1.el9_2
- rtla RHEL 9 5.14.0-284.11.1.el9_2
- bpftool RHEL 9 7.0.0-284.11.1.el9_2
- kernel-64k RHEL 9 5.14.0-284.11.1.el9_2
- kernel-core RHEL 9 5.14.0-284.11.1.el9_2
- kernel-tools RHEL 9 5.14.0-284.11.1.el9_2
- python3-perf RHEL 9 5.14.0-284.11.1.el9_2
red hat advisories RHSA-2023:2458
- kernel-syms SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 4.12.14-122.275.1
- kernel-source SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 4.12.14-122.275.1
- kernel-default SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS, SLE Live Patching 12 SP5 4.12.14-122.275.1
- kgraft-patch-SLE12-SP5_Update_73 SLE Live Patching 12 SP5 1-8.3.1
suse advisories SUSE-SU-2025:03614-1
- git.kernel.org/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6 commit
- git.kernel.org/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245 commit
- git.kernel.org/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e commit
- git.kernel.org/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b commit
- git.kernel.org/stable/c/568e3812b1778b4c0c229649b59977d88f400ece commit
- git.kernel.org/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc commit
- git.kernel.org/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c commit
- git.kernel.org/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50285 updated cvss 4.4
kernel: mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux AppStream (v. 9) perf 5.14.0-284.11.1.el9_2, rtla 5.14.0-284.11.1.el9_2, kernel-devel-matched 5.14.0-284.11.1.el9_2, kernel-64k-devel-matched 5.14.0-284.11.1.el9_2, kernel-debug-devel-matched 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, +5 more Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.0.0-284.11.1.el9_2, kernel 5.14.0-284.11.1.el9_2, kernel-64k 5.14.0-284.11.1.el9_2, kernel-core 5.14.0-284.11.1.el9_2, kernel-tools 5.14.0-284.11.1.el9_2, python3-perf 5.14.0-284.11.1.el9_2, +28 more Red Hat Enterprise Linux CRB (v. 9) kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-x86_64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-aarch64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-ppc64le 5.14.0-284.11.1.el9_2fixed: vendor fix RHSA-2023:2458
-
Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6
patch
-
git.kernel.org
/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245
patch
-
git.kernel.org
/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e
patch
-
git.kernel.org
/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b
patch
-
git.kernel.org
/stable/c/568e3812b1778b4c0c229649b59977d88f400ece
patch
-
git.kernel.org
/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc
patch
-
git.kernel.org
/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c
patch
-
git.kernel.org
/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c
patch
Sources
- CVE List CVE-2022-50285
- NVD CVE-2022-50285
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.