1. Home
  2. Vulnerabilities
  3. CVE-2022-50285

CVE-2022-50285

mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages

Published 15 Sept 2025 · modified 5 Nov 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 24/100

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.

Affected products and versions

Linux (12 line(s))
Linux
ProductVersionsFixed inSource
Linux from 4.3.6 (included) to 4.4 (excluded) — CNA (vendor or assigner)
Linux 4.4 — CNA (vendor or assigner)
Linux kernel from 4.3.6 (included) to 4.4 (excluded) — NVD
Linux kernel from 4.4.1 (included) to 4.9.332 (excluded) — NVD
Linux kernel from 4.10 (included) to 4.14.298 (excluded) — NVD
Linux kernel from 4.15 (included) to 4.19.264 (excluded) — NVD
Linux kernel from 4.20 (included) to 5.4.223 (excluded) — NVD
Linux kernel from 5.5 (included) to 5.10.153 (excluded) — NVD
Linux kernel from 5.11 (included) to 5.15.76 (excluded) — NVD
Linux kernel from 5.16 (included) to 6.0.6 (excluded) — NVD
Linux kernel 4.4 — NVD
Linux kernel 6.1 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
NVD-CWE-noinfo · Non classé

How this data is obtained and calculated