CVE-2022-50285

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

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:21 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.3.64.10 ≤ v < 4.14.2984.15 ≤ v < 4.19.2644.20 ≤ v < 5.4.2234.3.6 ≤ v < 4.44.4 ≤ v < 4.14.2984.4 ≤ v < 4.19.2644.4 ≤ v < 4.9.3324.4 ≤ v < 5.10.1534.4 ≤ v < 5.15.764.4 ≤ v < 5.4.2234.4 ≤ v < 6.0.64.4 ≤ v < 6.14.4.1 ≤ v < 4.9.3325.11 ≤ v < 5.15.765.16 ≤ v < 6.0.65.5 ≤ v < 5.10.1533f5fae4d1a3189d95b02b4b45e1218df147122bc4.3.64.44.4 rc54.4 rc64.4 rc74.4 rc86.1 rc1a88c769548047b21f76fd71e04b6a3300ff17160
Vendor states this is fixed in 112a005d1ded04a4b41b6d01833cc0bda90625cc (fixed)
Vendor states this is fixed in 11993652d0b49e27272db0a37aa828d8a3a4b92b (fixed)
Vendor states this is fixed in 12df140f0bdfae5dcfc81800970dd7f6f632e00c (fixed)
Vendor states this is fixed in 2b35432d324898ec41beb27031d2a1a864a4d40e (fixed)
Vendor states this is fixed in 3e50a07b6a5fcd39df1534d3fdaca4292a65efe6 (fixed)
Vendor states this is fixed in 568e3812b1778b4c0c229649b59977d88f400ece (fixed)
Vendor states this is fixed in 629c986e19fe9481227c7cdfd9a105bbc104d245 (fixed)
Vendor states this is fixed in c828fab903725279aa9dc6ae3d44bb7e4778f92c (fixed)
Vendor states this is fixed in 4.14.298 (unaffected)
Vendor states this is fixed in 4.19.264 (unaffected)
Vendor states this is fixed in 4.4 (unaffected)
Vendor states this is fixed in 4.9.332 (unaffected)
Vendor states this is fixed in 5.10.153 (unaffected)
Vendor states this is fixed in 5.15.76 (unaffected)
Vendor states this is fixed in 5.4.223 (unaffected)
Vendor states this is fixed in 6.0.6 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/568e3812b1778b4c0c229649b59977d88f400ece
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card