Skip to content
Heist/ feed
Back to feed
HighFix available

mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway Syzbot reports a UAF in hugetlb_fault(). This happens because vmf_anon_prepare() could drop the per-VMA lock and allow the current VMA to be freed before hugetlb_vma_unlock_read() is called. We can fix this by using a modified version of vmf_anon_prepare() that doesn't release the VMA lock on failure, and then release it ourselves after hugetlb_vma_unlock_read().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.10.13, 6.11.2
CVEs
CVE-2024-47676
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:47 UTC · Revision 1

Source evidence

mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway

core-osv · Original source

Published 21 Oct 2024, 11:53 UTC

In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway Syzbot reports a UAF in hugetlb_fault(). This happens because vmf_anon_prepare() could drop the per-VMA lock and allow the current VMA to be freed before hugetlb_vma_unlock_read() is called. We can fix this by using a modified version of vmf_anon_prepare() that doesn't release the VMA lock on failure, and then release it ourselves after hugetlb_vma_unlock_read().

osv:CVE-2024-47676

Kernel

Fixed versions: 6.10.13, 6.11.2

Complete source record
{
  "id": "7f8b0a10d314645c24e44961c86315d16363043ff341131c9b235886d45b390f",
  "url": "https://osv.dev/vulnerability/CVE-2024-47676",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway Syzbot reports a UAF in hugetlb_fault(). This happens because vmf_anon_prepare() could drop the per-VMA lock and allow the current VMA to be freed before hugetlb_vma_unlock_read() is called. We can fix this by using a modified version of vmf_anon_prepare() that doesn't release the VMA lock on failure, and then release it ourselves after hugetlb_vma_unlock_read().",
    "evidence": "osv:CVE-2024-47676",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.10.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-47676",
      "aliases": [
        "CVE-2024-47676"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9acad7ba3e25d11f4c96df1b7312ae89e6faca5c"
                },
                {
                  "fixed": "e897d184a8dd4a4e1f39c8c495598e4d9472776c"
                },
                {
                  "fixed": "d59ebc99dee0a2687a26df94b901eb8216dbf876"
                },
                {
                  "fixed": "98b74bb4d7e96b4da5ef3126511febe55b76b807"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47676.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.9.0"
                },
                {
                  "fixed": "6.10.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47676.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.176659885Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/98b74bb4d7e96b4da5ef3126511febe55b76b807",
        "https://git.kernel.org/stable/c/d59ebc99dee0a2687a26df94b901eb8216dbf876",
        "https://git.kernel.org/stable/c/e897d184a8dd4a4e1f39c8c495598e4d9472776c",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47676.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47676",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47676.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47676",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496976,
  "published_at": "2024-10-21T11:53:20.482+00:00"
}