5.5medium
mm/hugetlb: fix missing hugetlb_lock for resv uncharge
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix missing hugetlb_lock for resv uncharge There is a recent report on UFFDIO_COPY over hugetlb: https://lore.kernel.org/all/000000000000ee06de0616177560@google.com/ 350: lockdep_assert_held(&hugetlb_lock); Should be an issue in hugetlb but triggered in an userfault context, where it goes into the unlikely path where two threads modifying the resv map together. Mike has a fix in that path for resv uncharge but it looks like the locking criteria was overlooked: hugetlb_cgroup_uncharge_folio_rsvd() will update the cgroup pointer, so it requires to be called with the lock held.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 79aa925bf239c234be8586780e482872dc4690dd before 4c806333efea1000a2a9620926f560ad2e1ca7cc, from 79aa925bf239c234be8586780e482872dc4690dd before f6c5d21db16a0910152ec8aa9d5a7aed72694505, from 79aa925bf239c234be8586780e482872dc4690dd before 538faabf31e9c53d8c870d114846fda958a0de10, from 79aa925bf239c234be8586780e482872dc4690dd before b76b46902c2d0395488c8412e1116c2486cdfcb2, f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0, from 5.9.7 before 5.10, 5.10 Not affected: before 5.10, from 6.1.91 up to 6.1.*, from 6.6.30 up to 6.6.*, from 6.8.9 up to 6.8.*, from 6.9 up to * | CVE List |
| linux linux_kernel | from 5.9.7 before 5.10, from 5.10.1 before 6.1.91, from 6.2 before 6.6.30, from 6.7 before 6.8.9, 5.10, 6.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix missing hugetlb_lock for resv uncharge There is a recent report on UFFDIO_COPY over hugetlb: https://lore.kernel.org/all/000000000000ee06de0616177560@google.com/ 350: lockdep_assert_held(&hugetlb_lock); Should be an issue in hugetlb but triggered in an userfault context, where it goes into the unlikely path where two threads modifying the resv map together. Mike has a fix in that path for resv uncharge but it looks like the locking criteria was overlooked: hugetlb_cgroup_uncharge_folio_rsvd() will update the cgroup pointer, so it requires to be called with the lock held.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/hugetlb: corrige la falta de Hugetlb_lock para descarga de resv. Hay un informe reciente sobre UFFDIO_COPY sobre Hugetlb: https://lore.kernel.org/all/000000000000ee06de0616177560@google.com/ 350: lockdep_assert_held(&hugetlb_lock); Debería ser un problema en hugetlb pero se activa en un contexto de error de usuario, donde entra en la ruta poco probable en la que dos subprocesos modifican el mapa resv juntos. Mike tiene una solución en esa ruta para la descarga de resv, pero parece que se pasó por alto el criterio de bloqueo: hugetlb_cgroup_uncharge_folio_rsvd() actualizará el puntero de cgroup, por lo que es necesario llamarlo con el bloqueo retenido.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-36000 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2024-36000 changed 2026-06-17 | Public domain |