{
  "cveId": "CVE-2024-39477",
  "url": "https://patchblox.com/security/cve/CVE-2024-39477",
  "summary": "CVE-2024-39477 is fixed in linux on 1 platform, first by DEBIAN-CVE-2024-39477, released July 5, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  mm/hugetlb: do not call vma_add_reservation upon...",
  "description": "In 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.  [1] https://lore.kernel.org/linux-mm/0000000000004096100617c58d54@google.com/T/#ma5983bc1ab18a54910da83416b3f89f3c7ee43aa",
  "published": "2024-07-05T07:15:10Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00189,
  "epssPercentile": 0.08636,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.9.7-1",
      "fix": "DEBIAN-CVE-2024-39477",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-39477",
      "released": "2024-07-05T07:15:10Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.9.7-1",
      "fix": "DEBIAN-CVE-2024-39477",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-39477",
      "released": "2024-07-05T07:15:10Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}