CVE-2022-50285 - CVE House
Back to Database
Status published Medium CVE-2022-50285

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

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-50285

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
a88c769548047b21f76fd71e04b6a3300ff17160, 3f5fae4d1a3189d95b02b4b45e1218df147122bc, 4.3.6, 4.4, 0, 4.9.332, 4.14.298, 4.19.264, 5.4.223, 5.10.153, 5.15.76, 6.0.6, 6.1

Timeline

Official Publish: September 15th, 2025
Last Modified: May 23rd, 2026
Added to House: July 21st, 2026

CVSS Vectors

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

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.