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

Published Sep 15, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm,hugetlb: take hugetlblock before decrementing h->resvhugepages

The h->hugepages counters are protected by the hugetlblock, but allochugepage has a corner case where it can decrement the counter outside of the lock.

This could lead to a corrupted value of h->resvhugepages, which we have observed on our systems.

Take the hugetlblock before decrementing h->resvhugepages to avoid a potential race.

Affected Software

15 affected components
Linux Kernel
Linux Linux kernel>=4.3.6<4.4
Linux Linux kernel>=4.4.1<4.9.332
Linux Linux kernel>=4.10<4.14.298
Linux Linux kernel>=4.15<4.19.264
Linux Linux kernel>=4.20<5.4.223
Linux Linux kernel>=5.5<5.10.153
Linux Linux kernel>=5.11<5.15.76
Linux Linux kernel>=5.16<6.0.6
Linux Linux kernel=4.4
Linux Linux kernel=4.4-rc5
Linux Linux kernel=4.4-rc6
Linux Linux kernel=4.4-rc7
Linux Linux kernel=4.4-rc8
Linux Linux kernel=6.1-rc1

Event History

Sep 15, 2025
CVE Published
via MITRE·02:21 PM
Data Sourced
via MITRE·02:21 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50285?

CVE-2022-50285 has a severity rating that may vary based on the affected Linux kernel version.

2

How do I fix CVE-2022-50285?

To remediate CVE-2022-50285, update your Linux kernel to a version that contains the patch addressing this vulnerability.

3

What versions of Linux kernel are affected by CVE-2022-50285?

CVE-2022-50285 affects various Linux kernel versions between 4.4 and 6.1, particularly those versions that do not include the fixes.

4

What impact does CVE-2022-50285 have on system security?

Exploiting CVE-2022-50285 could lead to potential memory corruption issues, affecting system stability and security.

5

Is CVE-2022-50285 remotely exploitable?

CVE-2022-50285 requires local access to the system to exploit, thus it is not categorized as remotely exploitable.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203