{
  "id": "CVE-2025-39836",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39836",
  "published_at": "2025-09-16T13:08:52.326Z",
  "title": "efi: stmm: Fix incorrect buffer allocation method",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "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\nefi: stmm: Fix incorrect buffer allocation method\n\nThe communication buffer allocated by setup_mm_hdr() is later on passed\nto tee_shm_register_kernel_buf(). The latter expects those buffers to be\ncontiguous pages, but setup_mm_hdr() just uses kmalloc(). That can cause\nvarious corruptions or BUGs, specifically since commit 9aec2fb0fd5e\n(\"slab: allocate frozen pages\"), though it was broken before as well.\n\nFix this by using alloc_pages_exact() instead of kmalloc().",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c44b6be62e8dd4ee0a308c36a70620613e6fc55f, \u003c 77ff27ff0e4529a003c8a1c2492c111968c378d3",
          "\u003e= c44b6be62e8dd4ee0a308c36a70620613e6fc55f, \u003c 630c0e6064daf84f17aad1a7d9ca76b562e3fe47",
          "\u003e= c44b6be62e8dd4ee0a308c36a70620613e6fc55f, \u003c c5e81e672699e0c5557b2b755cc8f7a69aa92bff"
        ],
        "fixed_in": [
          "77ff27ff0e4529a003c8a1c2492c111968c378d3",
          "630c0e6064daf84f17aad1a7d9ca76b562e3fe47",
          "c5e81e672699e0c5557b2b755cc8f7a69aa92bff"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.8"
        ],
        "fixed_in": [
          "0",
          "6.12.45",
          "6.16.5",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 77ff27ff0e4529a003c8a1c2492c111968c378d3 or 630c0e6064daf84f17aad1a7d9ca76b562e3fe47 or c5e81e672699e0c5557b2b755cc8f7a69aa92bff or later.",
      "Upgrade Linux to 0 or 6.12.45 or 6.16.5 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
