Bug 2395380 (CVE-2022-50285) - CVE-2022-50285 kernel: mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages
Summary: CVE-2022-50285 kernel: mm,hugetlb: take hugetlb_lock before decrementing h->r...
Keywords:
Status: NEW
Alias: CVE-2022-50285
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 15:10 UTC by OSIDB Bzimport
Modified: 2025-09-15 19:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-15 15:10:44 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.