CVE-2024-39477
MEDIUM 5.5CVSS 3.1In the Linux kernel, the following vulnerability has been resolved:
mm/hugetlb: do not call vma_add_reservation upon ENOMEM
sysbot reported a splat [1] on __unmap_hugepage_range(). This is because
vma_needs_reservation() can return -ENOMEM if
allocate_file_region_entries() fails to allocate the file_region struct
for the reservation.
Check for that and do not call vma_add_reservation() if that is the case,
otherwise region_abort() and region_del() will see that we do not have any
file_regions.
If we detect that vma_needs_reservation() returned -ENOMEM, we clear the
hugetlb_restore_reserve flag as if this reservation was still consumed, so
free_huge_folio() will not increment the resv count.
- Published
- 5 Jul 2024
- Last modified
- 4 Aug 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Modified
- Weakness
- CWE-770
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.9, < 6.9.5 | 6.9.5 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:6.10.0:rc1:*:*:*:*:*:* |
= 6.10.0 | |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:6.10.0:rc2:*:*:*:*:*:* |
= 6.10.0 |
References
- https://git.kernel.org/stable/c/8daf9c702ee7f825f0de8600abff764acfedea13 · Mailing List, Patch
- https://git.kernel.org/stable/c/aa998f9dcb34c28448f86e8f5490f20d5eb0eac7 · Mailing List, Patch
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 5 Jul 2024)