{
  "id": "CVE-2025-21842",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21842",
  "published_at": "2025-03-07T09:10:00.298Z",
  "title": "amdkfd: properly free gang_ctx_bo when failed to init user queue",
  "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\namdkfd: properly free gang_ctx_bo when failed to init user queue\n\nThe destructor of a gtt bo is declared as\nvoid amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void **mem_obj);\nWhich takes void** as the second parameter.\n\nGCC allows passing void* to the function because void* can be implicitly\ncasted to any other types, so it can pass compiling.\n\nHowever, passing this void* parameter into the function's\nexecution process(which expects void** and dereferencing void**)\nwill result in errors.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= fb91065851cd5f2735348c5f3eddeeca3d7c2973, \u003c ae5ab1c1ae504f622cc1ff48830a9ed48428146d",
          "\u003e= fb91065851cd5f2735348c5f3eddeeca3d7c2973, \u003c 091a68c58c1bbd2ab7d05d1b32c1306394ec691d",
          "\u003e= fb91065851cd5f2735348c5f3eddeeca3d7c2973, \u003c a33f7f9660705fb2ecf3467b2c48965564f392ce"
        ],
        "fixed_in": [
          "ae5ab1c1ae504f622cc1ff48830a9ed48428146d",
          "091a68c58c1bbd2ab7d05d1b32c1306394ec691d",
          "a33f7f9660705fb2ecf3467b2c48965564f392ce"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.16",
          "6.13.4",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to ae5ab1c1ae504f622cc1ff48830a9ed48428146d or 091a68c58c1bbd2ab7d05d1b32c1306394ec691d or a33f7f9660705fb2ecf3467b2c48965564f392ce or later.",
      "Upgrade Linux to 0 or 6.12.16 or 6.13.4 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
