{"id":"CVE-2026-43286","aliases":["CVE-2026-43286"],"related":[],"kind":"vulnerability","state":"published","title":"mm/hugetlb: restore failed global reservations to subpool","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: restore failed global reservations to subpool\n\nCommit a833a693a490 (\"mm: hugetlb: fix incorrect fallback for subpool\")\nfixed an underflow error for hstate->resv_huge_pages caused by incorrectly\nattributing globally requested pages to the subpool's reservation.\n\nUnfortunately, this fix also introduced the opposite problem, which would\nleave spool->used_hpages elevated if the globally requested pages could\nnot be acquired.  This is because while a subpool's reserve pages only\naccounts for what is requested and allocated from the subpool, its \"used\"\ncounter keeps track of what is consumed in total, both from the subpool\nand globally.  Thus, we need to adjust spool->used_hpages in the other\ndirection, and make sure that globally requested pages are uncharged from\nthe subpool's used counter.\n\nEach failed allocation attempt increments the used_hpages counter by how\nmany pages were requested from the global pool.  Ultimately, this renders\nthe subpool unusable, as used_hpages approaches the max limit.\n\nThe issue can be reproduced as follows:\n1. Allocate 4 hugetlb pages\n2. Create a hugetlb mount with max=4, min=2\n3. Consume 2 pages globally\n4. Request 3 pages from the subpool (2 from subpool + 1 from global)\n\t4.1 hugepage_subpool_get_pages(spool, 3) succeeds.\n\t\tused_hpages += 3\n\t4.2 hugetlb_acct_memory(h, 1) fails: no global pages left\n\t\tused_hpages -= 2\n5. Subpool now has used_hpages = 1, despite not being able to\n   successfully allocate any hugepages. It believes it can now only\n   allocate 3 more hugepages, not 4.\n\nWith each failed allocation attempt incrementing the used counter, the\nsubpool eventually reaches a point where its used counter equals its\nmax counter.  At that point, any future allocations that try to\nallocate hugeTLB pages from the subpool will fail, despite the subpool\nnot having any of its hugeTLB pages consumed by any user.\n\nOnce this happens, there is no way to make the subpool usable again,\nsince there is no way to decrement the used counter as no process is\nreally consuming the hugeTLB pages.\n\nThe underflow issue that the original commit fixes still remains fixed\nas well.\n\nWithout this fix, used_hpages would keep on leaking if\nhugetlb_acct_memory() fails.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: restore failed global reservations to subpool\n\nCommit a833a693a490 (\"mm: hugetlb: fix incorrect fallback for subpool\")\nfixed an underflow error for hstate->resv_huge_pages caused by incorrectly\nattributing globally requested pages to the subpool's reservation.\n\nUnfortunately, this fix also introduced the opposite problem, which would\nleave spool->used_hpages elevated if the globally requested pages could\nnot be acquired.  This is because while a subpool's reserve pages only\naccounts for what is requested and allocated from the subpool, its \"used\"\ncounter keeps track of what is consumed in total, both from the subpool\nand globally.  Thus, we need to adjust spool->used_hpages in the other\ndirection, and make sure that globally requested pages are uncharged from\nthe subpool's used counter.\n\nEach failed allocation attempt increments the used_hpages counter by how\nmany pages were requested from the global pool.  Ultimately, this renders\nthe subpool unusable, as used_hpages approaches the max limit.\n\nThe issue can be reproduced as follows:\n1. Allocate 4 hugetlb pages\n2. Create a hugetlb mount with max=4, min=2\n3. Consume 2 pages globally\n4. Request 3 pages from the subpool (2 from subpool + 1 from global)\n\t4.1 hugepage_subpool_get_pages(spool, 3) succeeds.\n\t\tused_hpages += 3\n\t4.2 hugetlb_acct_memory(h, 1) fails: no global pages left\n\t\tused_hpages -= 2\n5. Subpool now has used_hpages = 1, despite not being able to\n   successfully allocate any hugepages. It believes it can now only\n   allocate 3 more hugepages, not 4.\n\nWith each failed allocation attempt incrementing the used counter, the\nsubpool eventually reaches a point where its used counter equals its\nmax counter.  At that point, any future allocations that try to\nallocate hugeTLB pages from the subpool will fail, despite the subpool\nnot having any of its hugeTLB pages consumed by any user.\n\nOnce this happens, there is no way to make the subpool usable again,\nsince there is no way to decrement the used counter as no process is\nreally consuming the hugeTLB pages.\n\nThe underflow issue that the original commit fixes still remains fixed\nas well.\n\nWithout this fix, used_hpages would keep on leaking if\nhugetlb_acct_memory() fails.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/hugetlb: restaurar reservas globales fallidas al subpool\n\nEl commit a833a693a490 (’mm: hugetlb: fix incorrect fallback for subpool’) corrigió un error de desbordamiento inferior (underflow) para hstate  ->  resv_huge_pages causado por la atribución incorrecta de páginas solicitadas globalmente a la reserva del subpool.\n\nDesafortunadamente, esta corrección también introdujo el problema opuesto, que dejaría spool  ->  used_hpages elevado si las páginas solicitadas globalmente no pudieran adquirirse. Esto se debe a que, si bien las páginas de reserva de un subpool solo contabilizan lo que se solicita y asigna del subpool, su contador ’used’ (usado) rastrea lo que se consume en total, tanto del subpool como globalmente. Por lo tanto, necesitamos ajustar spool  ->  used_hpages en la otra dirección y asegurarnos de que las páginas solicitadas globalmente se descarguen del contador ’used’ del subpool.\n\nCada intento de asignación fallido incrementa el contador used_hpages por la cantidad de páginas que se solicitaron del pool global. En última instancia, esto inutiliza el subpool, ya que used_hpages se acerca al límite máximo.\n\nEl problema se puede reproducir de la siguiente manera:\n1. Asignar 4 páginas hugetlb\n2. Crear un montaje hugetlb con max=4, min=2\n3. Consumir 2 páginas globalmente\n4. Solicitar 3 páginas del subpool (2 del subpool + 1 del global)\n\t4.1 hugepage_subpool_get_pages(spool, 3) tiene éxito.\n\t\tused_hpages += 3\n\t4.2 hugetlb_acct_memory(h, 1) falla: no quedan páginas globales\n\t\tused_hpages -= 2\n5. El subpool ahora tiene used_hpages = 1, a pesar de no poder asignar con éxito ninguna hugepage. Cree que ahora solo puede asignar 3 hugepages más, no 4.\n\nCon cada intento de asignación fallido incrementando el contador used, el subpool finalmente llega a un punto donde su contador used es igual a su contador max. En ese punto, cualquier asignación futura que intente asignar páginas hugeTLB del subpool fallará, a pesar de que el subpool no tiene ninguna de sus páginas hugeTLB consumida por ningún usuario.\n\nUna vez que esto sucede, no hay forma de hacer que el subpool sea utilizable nuevamente, ya que no hay forma de decrementar el contador used ya que ningún proceso está realmente consumiendo las páginas hugeTLB.\n\nEl problema de desbordamiento inferior (underflow) que el commit original corrige también permanece corregido.\n\nSin esta corrección, used_hpages seguiría fugándose si hugetlb_acct_memory() falla.","source":"nvd"}],"published":"2026-05-08T13:11:11.867Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"a833a693a490ecff8ba377654c6d4d333718b6b1","fixed":"5eac1322a7b14b8cd05ec896618278b90fba7f39","status":"affected"},{"type":"git","introduced":"a833a693a490ecff8ba377654c6d4d333718b6b1","fixed":"f055897c975d079a90af873c791ab58cf0f6f2a5","status":"affected"},{"type":"git","introduced":"a833a693a490ecff8ba377654c6d4d333718b6b1","fixed":"1d3f9bb4c8af70304d19c22e30f5d16a2d589bb5","status":"affected"},{"type":"git","version":"adb5c2e55524e3a96b02c3904b0bb6d5a5404d21","status":"affected"},{"type":"semver","introduced":"6.14.8","fixed":"6.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.14.8","fixed":"6.15"},{"status":"affected","introduced":"6.15.1","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"},{"status":"affected","version":"6.15"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5eac1322a7b14b8cd05ec896618278b90fba7f39","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f055897c975d079a90af873c791ab58cf0f6f2a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d3f9bb4c8af70304d19c22e30f5d16a2d589bb5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43286","url":"https://www.cve.org/CVERecord?id=CVE-2026-43286","licence":"CVE Terms of Use","modified":"2026-05-23T16:06:37.088Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43286","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43286","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.973Z","epss":{"score":0.0016,"percentile":0.02715,"date":"2026-11-30T12:00:22.000Z"}}