CVE-2026-99874 (GCVE-0-2026-99874)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:17 – Updated: 2026-12-01 05:43
VLAI
Title
drm/amdkfd: Validate the control stack of a restored queue
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Validate the control stack of a restored queue kfd_criu_restore_queue() takes the control stack size from the checkpoint image without the topology check create-queue does in kfd_queue_acquire_buffers(), which restore stopped calling in commit 1cafa8b29e02 ("drm/amdkfd: Don't acquire buffers during CRIU queue restore."). An image size of 0x300000 is accepted and sizes the MQD allocation, and 0xFFFFFFFF trips a page allocator warning in kmalloc(). restore_mqd() also keeps the image's cp_hqd_cntl_stack_size, cp_hqd_cntl_stack_offset and cp_hqd_wg_state_offset. With offset > size or wave state offset < size, get_wave_state() returns wrapped sizes. Take the per-XCC size from topology, 0 for queues without a control stack, and reject larger images. In restore_mqd(), set the size to it and bound both offsets as init_mqd() does. (cherry picked from commit 92249023caee17bfc6f29c71d6aaa5f2298cf507)
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 626f7b3190b4c07917f0262162cb7fef7272c34d , < a3e9af053b5e881025eb9358946a51ab4c61d22a (git)
Affected: 626f7b3190b4c07917f0262162cb7fef7272c34d , < 250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e (git)
Affected: 626f7b3190b4c07917f0262162cb7fef7272c34d , < 9cfce679d88f6f83d15e99fdba0d5769120f0faf (git)
Affected: 626f7b3190b4c07917f0262162cb7fef7272c34d , < 90d91a192751cd9a7d9d2286299bc72ec1c28179 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.18
Unaffected: 0 , < 5.18 (semver)
Unaffected: 6.12.119 , ≤ 6.12.* (semver)
Unaffected: 6.18.65 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (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_mqd_manager.h",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a3e9af053b5e881025eb9358946a51ab4c61d22a",
              "status": "affected",
              "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
              "versionType": "git"
            },
            {
              "lessThan": "250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e",
              "status": "affected",
              "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
              "versionType": "git"
            },
            {
              "lessThan": "9cfce679d88f6f83d15e99fdba0d5769120f0faf",
              "status": "affected",
              "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
              "versionType": "git"
            },
            {
              "lessThan": "90d91a192751cd9a7d9d2286299bc72ec1c28179",
              "status": "affected",
              "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.18"
            },
            {
              "lessThan": "5.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.119",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.65",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Validate the control stack of a restored queue\n\nkfd_criu_restore_queue() takes the control stack size from the\ncheckpoint image without the topology check create-queue does in\nkfd_queue_acquire_buffers(), which restore stopped calling in\ncommit 1cafa8b29e02 (\"drm/amdkfd: Don\u0027t acquire buffers\nduring CRIU queue restore.\"). An image size of 0x300000 is accepted and\nsizes the MQD allocation, and 0xFFFFFFFF trips a page allocator warning\nin kmalloc().\n\nrestore_mqd() also keeps the image\u0027s cp_hqd_cntl_stack_size,\ncp_hqd_cntl_stack_offset and cp_hqd_wg_state_offset. With offset \u003e size\nor wave state offset \u003c size, get_wave_state() returns wrapped sizes.\n\nTake the per-XCC size from topology, 0 for queues without a control\nstack, and reject larger images. In restore_mqd(), set the size to it\nand bound both offsets as init_mqd() does.\n\n(cherry picked from commit 92249023caee17bfc6f29c71d6aaa5f2298cf507)"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Bad data enters through the AMDKFD_IOC_CRIU_OP KFD_CRIU_OP_RESTORE ioctl on /dev/kfd (kfd_ioctl_criu -\u003e criu_restore -\u003e kfd_criu_restore_queue -\u003e pqm_create_queue -\u003e restore_mqd), where q_data-\u003ectl_stack_size and the MQD\u0027s cp_hqd_cntl_stack_size/offset come from the caller\u0027s priv_data blob. No network protocol carries them.\nAC:L - The caller supplies both the BO-sizing q_data-\u003ectl_stack_size (e.g. 0, a one-page v9 MQD BO) and an independent large cp_hqd_cntl_stack_size in one restore blob. Then KFD_CRIU_OP_PROCESS_INFO and CHECKPOINT on the still-inactive queue make checkpoint_mqd() read past the BO deterministically, with no race and without running the GPU.\nPR:L - kfd_ioctl() admits CRIU_OP only with capable(CAP_CHECKPOINT_RESTORE) or capable(CAP_SYS_ADMIN) in the init namespace, so user namespaces don\u0027t reach it. CAP_CHECKPOINT_RESTORE is the narrow capability meant for delegation to non-root CRIU tooling, which matches the PR:L given to the sibling CRIU-restore CVEs.\nUI:N - The attacker restores, pauses and checkpoints its own KFD process with its own /dev/kfd and render-node fds; nobody else has to mount, open or approve anything.\nS:U - The over-read and the oops stay in host kernel memory (the vmap\u0027d/kmap\u0027d MQD BO and its neighbours) within the same kernel authority. No VM, IOMMU or sandbox boundary is crossed.\nC:H - checkpoint_mqd() clamps only to topology mm-\u003ectl_stack_size, not the image-sized BO. On arm64/ppc64 drm_arch_can_wc_memory() masks USWC, so the one-page BO is kmap\u0027d from the direct map and the next physical page is copied to the user\u0027s checkpoint buffer. In trees before CVE-2026-97496 (all 6.1.y), v9 get_wave_state() copy_to_user()s the unclamped cp_hqd_cntl_stack_size.\nI:N - CPU-side restore_mqd() copies the image control stack into a BO that allocate_mqd() sized from the same qp-\u003ectl_stack_size, so nothing is written out of bounds. The wrapped get_wave_state() header sizes only go into the caller\u0027s own buffer, and any GPU CP overrun from the bogus MQD fields is firmware behaviour that can\u0027t be shown from the kernel code.\nA:H - On x86 the USWC MQD BO is vmap\u0027d with a guard page, so checkpoint_mqd()\u0027s memcpy from mqd+4K past a one-page BO faults and oopses with dqm_lock held, wedging KFD queue management. A ctl_stack_size of 0xFFFFFFFF also hits the page allocator\u0027s WARN in kmalloc(), which panics under panic_on_warn."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:43:59.059Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a3e9af053b5e881025eb9358946a51ab4c61d22a"
        },
        {
          "url": "https://git.kernel.org/stable/c/250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e"
        },
        {
          "url": "https://git.kernel.org/stable/c/9cfce679d88f6f83d15e99fdba0d5769120f0faf"
        },
        {
          "url": "https://git.kernel.org/stable/c/90d91a192751cd9a7d9d2286299bc72ec1c28179"
        }
      ],
      "title": "drm/amdkfd: Validate the control stack of a restored queue",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99874",
    "datePublished": "2026-11-30T13:17:51.900Z",
    "dateReserved": "2026-09-25T10:25:14.440Z",
    "dateUpdated": "2026-12-01T05:43:59.059Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99874",
      "date": "2026-12-04",
      "epss": "0.00189",
      "percentile": "0.08983"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-02T01:06:50.000Z",
      "cve": "CVE-2026-99874",
      "id": "msrc_CVE-2026-99874",
      "initial_release_date": "2026-12-01T01:25:20.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "drm/amdkfd: Validate the control stack of a restored queue",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99874.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a3e9af053b5e881025eb9358946a51ab4c61d22a",
                    "status": "affected",
                    "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e",
                    "status": "affected",
                    "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9cfce679d88f6f83d15e99fdba0d5769120f0faf",
                    "status": "affected",
                    "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "90d91a192751cd9a7d9d2286299bc72ec1c28179",
                    "status": "affected",
                    "version": "626f7b3190b4c07917f0262162cb7fef7272c34d",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c",
                  "drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.18"
                  },
                  {
                    "lessThan": "5.18",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.119",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.65",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "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: Validate the control stack of a restored queue\n\nkfd_criu_restore_queue() takes the control stack size from the\ncheckpoint image without the topology check create-queue does in\nkfd_queue_acquire_buffers(), which restore stopped calling in\ncommit 1cafa8b29e02 (\"drm/amdkfd: Don\u0027t acquire buffers\nduring CRIU queue restore.\"). An image size of 0x300000 is accepted and\nsizes the MQD allocation, and 0xFFFFFFFF trips a page allocator warning\nin kmalloc().\n\nrestore_mqd() also keeps the image\u0027s cp_hqd_cntl_stack_size,\ncp_hqd_cntl_stack_offset and cp_hqd_wg_state_offset. With offset \u003e size\nor wave state offset \u003c size, get_wave_state() returns wrapped sizes.\n\nTake the per-XCC size from topology, 0 for queues without a control\nstack, and reject larger images. In restore_mqd(), set the size to it\nand bound both offsets as init_mqd() does.\n\n(cherry picked from commit 92249023caee17bfc6f29c71d6aaa5f2298cf507)"
          }
        ],
        "id": "CVE-2026-99874",
        "lastModified": "2026-12-01T06:17:55.110",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.1,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.2,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:20:21.710",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/250e92ce55aa3c37ab0a7a6b8aad688e7bb8b25e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/90d91a192751cd9a7d9d2286299bc72ec1c28179"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9cfce679d88f6f83d15e99fdba0d5769120f0faf"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a3e9af053b5e881025eb9358946a51ab4c61d22a"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:05:04+00:00",
      "cve": "CVE-2026-99874",
      "id": "CVE-2026-99874",
      "initial_release_date": "2026-11-30T13:17:51.900000+00:00",
      "product_status:known_affected": "251",
      "product_status:known_not_affected": "29",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via invalid queue control stack in amdkfd",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99874.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    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.