CVE-2026-63881 (GCVE-0-2026-63881)

Vulnerability from cvelistv5 – Published: 2026-07-19 14:54 – Updated: 2026-08-05 12:36
VLAI
Title
drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger get_queue_ids() computes array_size = num_queues * sizeof(uint32_t), which could overflow on 32-bit size_t build. using array_size() instead, it saturates to SIZE_MAX on overflow. (cherry picked from commit 2d57a0475f085c08b49312dfd8edcb461845f285)
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a70a93fa568b4f05aba548dadb673703eccf5480 , < 4e5f808b454167cc58d7084a407a554d8ddc694d (git)
Affected: a70a93fa568b4f05aba548dadb673703eccf5480 , < de70a80992396ee306ee3a2810ad28aa1608ba9b (git)
Affected: a70a93fa568b4f05aba548dadb673703eccf5480 , < 5cf4a41aa0d74e4c83f82d2ce233b5189ed4b43c (git)
Affected: a70a93fa568b4f05aba548dadb673703eccf5480 , < 4f9eeedc3d3151f8a226fd676c314a813edda5a1 (git)
Affected: a70a93fa568b4f05aba548dadb673703eccf5480 , < 93f5534b35a05ef8a0109c1eefa800062fee810a (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.5
Unaffected: 0 , < 6.5 (semver)
Unaffected: 6.6.143 , ≤ 6.6.* (semver)
Unaffected: 6.12.93 , ≤ 6.12.* (semver)
Unaffected: 6.18.35 , ≤ 6.18.* (semver)
Unaffected: 7.0.12 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "4e5f808b454167cc58d7084a407a554d8ddc694d",
              "status": "affected",
              "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
              "versionType": "git"
            },
            {
              "lessThan": "de70a80992396ee306ee3a2810ad28aa1608ba9b",
              "status": "affected",
              "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
              "versionType": "git"
            },
            {
              "lessThan": "5cf4a41aa0d74e4c83f82d2ce233b5189ed4b43c",
              "status": "affected",
              "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
              "versionType": "git"
            },
            {
              "lessThan": "4f9eeedc3d3151f8a226fd676c314a813edda5a1",
              "status": "affected",
              "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
              "versionType": "git"
            },
            {
              "lessThan": "93f5534b35a05ef8a0109c1eefa800062fee810a",
              "status": "affected",
              "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.5"
            },
            {
              "lessThan": "6.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.143",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.93",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.143",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.93",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.35",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.12",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: fix a vulnerability of integer overflow in kfd debugger\n\nget_queue_ids() computes array_size = num_queues * sizeof(uint32_t),\nwhich could overflow on 32-bit size_t build. using array_size()\ninstead, it saturates to SIZE_MAX on overflow.\n\n(cherry picked from commit 2d57a0475f085c08b49312dfd8edcb461845f285)"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Exploitation requires a local `ioctl()` on `/dev/kfd` via `AMDKFD_IOC_DBG_TRAP` with `KFD_IOC_DBG_TRAP_SUSPEND_QUEUES` or `KFD_IOC_DBG_TRAP_RESUME_QUEUES`; there is no network, adjacent-radio, or physical-access path to the vulnerable code.\nAC:L - On affected 32-bit `size_t` kernel builds, an attacker fully controls `num_queues` in the ioctl and can reliably force the multiply overflow (e.g. `num_queues \u003e= 0x40000001`) to trigger undersized `memdup_user()` followed by unbounded kernel heap corruption.\nPR:L - A local unprivileged user with AMDGPU/KFD device access can open `/dev/kfd`, enable the debug runtime and debug trap on their own process (no ptrace or root required), then invoke suspend/resume with a malicious `num_queues` value.\nUI:N - Exploitation is achieved entirely through attacker-initiated ioctl calls in an established KFD debug session; no victim interaction is required.\nS:U - Impact is kernel heap corruption and potential local privilege escalation within the same kernel security boundary, not a cross-boundary escape such as VM guest-to-host or IOMMU bypass.\nC:H - The integer overflow causes a heap buffer far smaller than `num_queues`, and subsequent `q_array_get_index()`/`copy_to_user()` operations perform out-of-bounds kernel reads that can disclose adjacent heap memory and be leveraged for arbitrary read primitives.\nI:H - `q_array_invalidate()` and per-queue status updates write attacker-influenced values (`KFD_DBG_QUEUE_INVALID_MASK`/`KFD_DBG_QUEUE_ERROR_MASK`) far beyond the allocated buffer, constituting an out-of-bounds heap write exploitable for control-flow hijacking and arbitrary kernel modification.\nA:H - Writing billions of 32-bit values past a 4-byte kmalloc object corrupts adjacent kernel heap metadata and objects, readily causing kernel oops/panic and complete loss of availability even before full exploitation."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:36:51.042Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/4e5f808b454167cc58d7084a407a554d8ddc694d"
        },
        {
          "url": "https://git.kernel.org/stable/c/de70a80992396ee306ee3a2810ad28aa1608ba9b"
        },
        {
          "url": "https://git.kernel.org/stable/c/5cf4a41aa0d74e4c83f82d2ce233b5189ed4b43c"
        },
        {
          "url": "https://git.kernel.org/stable/c/4f9eeedc3d3151f8a226fd676c314a813edda5a1"
        },
        {
          "url": "https://git.kernel.org/stable/c/93f5534b35a05ef8a0109c1eefa800062fee810a"
        }
      ],
      "title": "drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-63881",
    "datePublished": "2026-07-19T14:54:53.676Z",
    "dateReserved": "2026-07-19T07:54:57.018Z",
    "dateUpdated": "2026-08-05T12:36:51.042Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-63881",
      "date": "2026-09-21",
      "epss": "0.00184",
      "percentile": "0.08251"
    },
    "microsoft_vex": {
      "current_release_date": "2026-07-21T01:03:35.000Z",
      "cve": "CVE-2026-63881",
      "id": "msrc_CVE-2026-63881",
      "initial_release_date": "2026-07-21T01:03:35.000Z",
      "product_status:known_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-63881.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "4e5f808b454167cc58d7084a407a554d8ddc694d",
                    "status": "affected",
                    "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "de70a80992396ee306ee3a2810ad28aa1608ba9b",
                    "status": "affected",
                    "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5cf4a41aa0d74e4c83f82d2ce233b5189ed4b43c",
                    "status": "affected",
                    "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4f9eeedc3d3151f8a226fd676c314a813edda5a1",
                    "status": "affected",
                    "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "93f5534b35a05ef8a0109c1eefa800062fee810a",
                    "status": "affected",
                    "version": "a70a93fa568b4f05aba548dadb673703eccf5480",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.5"
                  },
                  {
                    "lessThan": "6.5",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.143",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.93",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.35",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.0.*",
                    "status": "unaffected",
                    "version": "7.0.12",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: fix a vulnerability of integer overflow in kfd debugger\n\nget_queue_ids() computes array_size = num_queues * sizeof(uint32_t),\nwhich could overflow on 32-bit size_t build. using array_size()\ninstead, it saturates to SIZE_MAX on overflow.\n\n(cherry picked from commit 2d57a0475f085c08b49312dfd8edcb461845f285)"
          }
        ],
        "id": "CVE-2026-63881",
        "lastModified": "2026-07-27T17:44:23.777",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-07-19T16:17:05.120",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4e5f808b454167cc58d7084a407a554d8ddc694d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4f9eeedc3d3151f8a226fd676c314a813edda5a1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/5cf4a41aa0d74e4c83f82d2ce233b5189ed4b43c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/93f5534b35a05ef8a0109c1eefa800062fee810a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/de70a80992396ee306ee3a2810ad28aa1608ba9b"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Awaiting Analysis"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-07-31T18:23:22+00:00",
      "cve": "CVE-2026-63881",
      "id": "CVE-2026-63881",
      "initial_release_date": "2026-07-19T00:00:00+00:00",
      "product_status:known_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-63881.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-09-18T00:47:07Z",
      "cve": "CVE-2026-63881",
      "id": "CVE-2026-63881",
      "initial_release_date": "2026-07-21T13:04:20Z",
      "product_status:first_fixed": "31",
      "product_status:known_affected": "424",
      "product_status:known_not_affected": "326",
      "product_status:recommended": "107",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-63881",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-63881.json",
      "version": "9"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…