mm,hugetlb: take hugetlb_lock before decrementing h->resv_huge_pages
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.3.6 to before 4.4 | 4.4 | Patch available | CNA |
| Linux | Linux | 4.4 and later | 4.9.332, 4.14.298, 4.19.264, 5.4.223, 5.10.153, 5.15.76, 6.0.6, 6.1 | Patch available | CNA |
- Linux VendorLinux Affected 4.3.6 to before 4.4 Fixed in 4.4 Patch available CNA
- Linux VendorLinux Affected 4.4 and later Fixed in 4.9.332, 4.14.298, 4.19.264, 5.4.223, 5.10.153, 5.15.76, 6.0.6, 6.1 Patch available CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.3.6 to before 4.4; 4.4.1 to before 4.9.332; 4.10 to before 4.14.298; 4.15 to before 4.19.264; 4.20 to before 5.4.223; 5.5 to before 5.10.153; 5.11 to before 5.15.76; 5.16 to before 6.0.6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:4.4:-:*:*:*:*:*:* | 4.4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:4.4:rc5:*:*:*:*:*:* | 4.4 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:4.4:rc6:*:*:*:*:*:* | 4.4 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:4.4:rc7:*:*:*:*:*:* | 4.4 rc7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:4.4:rc8:*:*:*:*:*:* | 4.4 rc8 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:* | 6.1 rc1 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.3.6 to before 4.4; 4.4.1 to before 4.9.332; 4.10 to before 4.14.298; 4.15 to before 4.19.264; 4.20 to before 5.4.223; 5.5 to before 5.10.153; 5.11 to before 5.15.76; 5.16 to before 6.0.6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:4.4:-:*:*:*:*:*:* Versions 4.4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:4.4:rc5:*:*:*:*:*:* Versions 4.4 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:4.4:rc6:*:*:*:*:*:* Versions 4.4 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:4.4:rc7:*:*:*:*:*:* Versions 4.4 rc7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:4.4:rc8:*:*:*:*:*:* Versions 4.4 rc8 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:* Versions 6.1 rc1 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.4
- Fix · CNA Linux (Linux) Fixed in 4.9.332, 4.14.298, 4.19.264, 5.4.223, 5.10.153, 5.15.76, 6.0.6, 6.1
Red Hat 1 advisory
- RHSA-2023:2458 Released 2023-05-09 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-284.11.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.11.1.el9_2, kernel-64k-devel-5.14.0-284.11.1.el9_2 +10
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.0.0-284.11.1.el9_2, kernel-5.14.0-284.11.1.el9_2, kernel-64k-5.14.0-284.11.1.el9_2 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-284.11.1.el9_2
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:2458 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2023:2458 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2023:2458 |
Not affected: 1 product
- Red Hat Enterprise Linux 10
Timeline
- 2026-10-02 Threatist record created from CVE-2022-50285
- 2026-10-03 Alias added: GHSA-m6mf-ph7p-75j2
- 2026-11-05 CISA SSVC decision points changed
References
Patch 8
- https://git.kernel.org/stable/c/3e50a07b6a5fcd39df1534d3fdaca4292a65efe6
- https://git.kernel.org/stable/c/629c986e19fe9481227c7cdfd9a105bbc104d245
- https://git.kernel.org/stable/c/2b35432d324898ec41beb27031d2a1a864a4d40e
- https://git.kernel.org/stable/c/11993652d0b49e27272db0a37aa828d8a3a4b92b
- https://git.kernel.org/stable/c/568e3812b1778b4c0c229649b59977d88f400ece
- https://git.kernel.org/stable/c/112a005d1ded04a4b41b6d01833cc0bda90625cc
- https://git.kernel.org/stable/c/c828fab903725279aa9dc6ae3d44bb7e4778f92c
- https://git.kernel.org/stable/c/12df140f0bdfae5dcfc81800970dd7f6f632e00c
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2022-50285 · CVE Program
- CVE-2022-50285 · NVD
- FIRST EPSS
- GHSA-m6mf-ph7p-75j2 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-50285 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences