{
  "id": "CVE-2025-38085",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38085",
  "published_at": "2025-06-28T07:44:26.178Z",
  "title": "mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race\n\nhuge_pmd_unshare() drops a reference on a page table that may have\npreviously been shared across processes, potentially turning it into a\nnormal page table used in another process in which unrelated VMAs can\nafterwards be installed.\n\nIf this happens in the middle of a concurrent gup_fast(), gup_fast() could\nend up walking the page tables of another process.  While I don't see any\nway in which that immediately leads to kernel memory corruption, it is\nreally weird and unexpected.\n\nFix it with an explicit broadcast IPI through tlb_remove_table_sync_one(),\njust like we do in khugepaged when removing page tables for a THP\ncollapse.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 4.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \u003c 952596b08c74e8fe9e2883d1dc8a8f54a37384ec",
          "\u003e= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \u003c a3d864c901a300c295692d129159fc3001a56185",
          "\u003e= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \u003c b7754d3aa7bf9f62218d096c0c8f6c13698fac8b",
          "\u003e= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \u003c fe684290418ef9ef76630072086ee530b92f02b8",
          "\u003e= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \u003c 034a52b5ef57c9c8225d94e9067f3390bb33922f",
          "\u003e= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \u003c a6bfeb97941a9187833b526bc6cc4ff5706d0ce9",
          "\u003e= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \u003c 1013af4f585fccc4d3e5c5824d174de2257f7d6d"
        ],
        "fixed_in": [
          "952596b08c74e8fe9e2883d1dc8a8f54a37384ec",
          "a3d864c901a300c295692d129159fc3001a56185",
          "b7754d3aa7bf9f62218d096c0c8f6c13698fac8b",
          "fe684290418ef9ef76630072086ee530b92f02b8",
          "034a52b5ef57c9c8225d94e9067f3390bb33922f",
          "a6bfeb97941a9187833b526bc6cc4ff5706d0ce9",
          "1013af4f585fccc4d3e5c5824d174de2257f7d6d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.20"
        ],
        "fixed_in": [
          "0",
          "5.10.239",
          "5.15.186",
          "6.1.142",
          "6.6.95",
          "6.12.35",
          "6.15.4",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 952596b08c74e8fe9e2883d1dc8a8f54a37384ec or a3d864c901a300c295692d129159fc3001a56185 or b7754d3aa7bf9f62218d096c0c8f6c13698fac8b or fe684290418ef9ef76630072086ee530b92f02b8 or 034a52b5ef57c9c8225d94e9067f3390bb33922f or a6bfeb97941a9187833b526bc6cc4ff5706d0ce9 or 1013af4f585fccc4d3e5c5824d174de2257f7d6d or later.",
      "Upgrade Linux to 0 or 5.10.239 or 5.15.186 or 6.1.142 or 6.6.95 or 6.12.35 or 6.15.4 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
