CVE-2026-97496 (GCVE-0-2026-97496)
Vulnerability from cvelistv5 – Published: 2026-09-24 16:04 – Updated: 2026-10-03 10:58
VLAI
EPSS
VEX
Title
drm/amdkfd: Fix OOB memory exposure in get_wave_state()
Summary
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Fix OOB memory exposure in get_wave_state()
The get_wave_state() function for v9 trusts cp_hqd_cntl_stack_size and
cp_hqd_cntl_stack_offset values read directly from the MQD, which are
written by GPU microcode and fully attacker-controlled on the
CRIU-restore path (via AMDKFD_IOC_RESTORE_PROCESS with H3).
this leads to an unbounded copy_to_user() that can leak adjacent
GTT/kernel memory. If offset > size, integer underflow produces a ~4 GiB
read length, if size is set to 1 MiB against a 4 KiB allocation, we leak
1 MiB of adjacent kernel memory (other queues' MQDs, ring buffers, KASLR
pointers).
Fix by clamping both cp_hqd_cntl_stack_size to the actual allocated
buffer size (q->ctl_stack_size) and cp_hqd_cntl_stack_offset to the
clamped size before performing arithmetic and copy_to_user().
This ensures we never read beyond the allocated kernel BO regardless of
attacker-supplied MQD field values.
Severity
7.1 (High)
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
42c6c48214b726c30918e8dc80e2168607d13ae4 , < e2bef0f168be46692a6b900916ff5da3771480ed
(git)
Affected: 42c6c48214b726c30918e8dc80e2168607d13ae4 , < d9183d974ddd5f09d029beaf359275ac20d4d5fe (git) Affected: 42c6c48214b726c30918e8dc80e2168607d13ae4 , < ec646686613d8ab05b282d1463a7baa49fd6b83b (git) Affected: 42c6c48214b726c30918e8dc80e2168607d13ae4 , < 7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 (git) |
|
| Linux | Linux |
Affected:
5.18
Unaffected: 0 , < 5.18 (semver) Unaffected: 6.6.158 , ≤ 6.6.* (semver) Unaffected: 6.12.111 , ≤ 6.12.* (semver) Unaffected: 6.18.53 , ≤ 6.18.* (semver) Unaffected: 7.2 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "e2bef0f168be46692a6b900916ff5da3771480ed",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
},
{
"lessThan": "d9183d974ddd5f09d029beaf359275ac20d4d5fe",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
},
{
"lessThan": "ec646686613d8ab05b282d1463a7baa49fd6b83b",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
},
{
"lessThan": "7ef144458f48d5589e36f1b3d83e83db2e5c5ba5",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.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.6.*",
"status": "unaffected",
"version": "6.6.158",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.158",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.111",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.53",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2",
"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: Fix OOB memory exposure in get_wave_state()\n\nThe get_wave_state() function for v9 trusts cp_hqd_cntl_stack_size and\ncp_hqd_cntl_stack_offset values read directly from the MQD, which are\nwritten by GPU microcode and fully attacker-controlled on the\nCRIU-restore path (via AMDKFD_IOC_RESTORE_PROCESS with H3).\n\nthis leads to an unbounded copy_to_user() that can leak adjacent\nGTT/kernel memory. If offset \u003e size, integer underflow produces a ~4 GiB\nread length, if size is set to 1 MiB against a 4 KiB allocation, we leak\n1 MiB of adjacent kernel memory (other queues\u0027 MQDs, ring buffers, KASLR\npointers).\n\nFix by clamping both cp_hqd_cntl_stack_size to the actual allocated\nbuffer size (q-\u003ectl_stack_size) and cp_hqd_cntl_stack_offset to the\nclamped size before performing arithmetic and copy_to_user().\n\nThis ensures we never read beyond the allocated kernel BO regardless of\nattacker-supplied MQD field values."
}
],
"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 - Attacker-controlled cp_hqd_cntl_stack_size/offset enter via AMDKFD_IOC_CRIU_OP KFD_CRIU_OP_RESTORE (kfd_ioctl_criu \u2192 criu_restore \u2192 kfd_criu_restore_queue \u2192 restore_mqd memcpy of the user MQD), then v9 get_wave_state() runs from kfd_ioctl_get_queue_wave_state (AMDKFD_IOC_GET_QUEUE_WAVE_STATE) on /dev/kfd; no remote protocol carries those fields.\nAC:L - restore_mqd() installs the crafted MQD then sets qp-\u003eis_active=0, so AMDKFD_IOC_GET_QUEUE_WAVE_STATE deterministically passes dqm get_wave_state()\u0027s !is_active and cwsr_enabled checks (cwsr_enable defaults to 1) and v9 get_wave_state() copy_to_user()s using unclamped size-offset; no race or firmware quirk is required.\nPR:L - AMDKFD_IOC_GET_QUEUE_WAVE_STATE has ioctl flags 0, but the MQD size/offset that make get_wave_state() over-read are attacker-controlled only after KFD_CRIU_OP_RESTORE; kfd_ioctl() admits that op only with capable(CAP_CHECKPOINT_RESTORE) or capable(CAP_SYS_ADMIN), a delegated non-root cap routinely granted to CRIU/container checkpoint services.\nUI:N - The attacker opens /dev/kfd and issues KFD_CRIU_OP_RESTORE then AMDKFD_IOC_GET_QUEUE_WAVE_STATE against its own KFD process; no other user must mount a filesystem, open a file, or otherwise interact.\nS:U - The unbounded copy_to_user() from the kernel MQD control-stack BO in v9 get_wave_state() discloses host kernel/GTT memory inside the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Pre-fix v9 get_wave_state() copy_to_user()s (cp_hqd_cntl_stack_size - cp_hqd_cntl_stack_offset) bytes from mqd+AMDGPU_GPU_PAGE_SIZE without clamping to q-\u003ectl_stack_size, so a restored 1MiB size against a 4KiB allocate_mqd() BO (or offset\u003esize underflow to ~4GiB) dumps adjacent GTT/kernel memory including other MQDs and KASLR pointers.\nI:N - The defective operation is copy_to_user() from the kernel control-stack BO to the caller\u0027s ctl_stack_address; restore_mqd() writes only sizeof(struct v9_mqd) plus ctl_stack_size into the buffer allocate_mqd() sized from q-\u003ectl_stack_size, so this bug does not modify kernel memory out of bounds.\nA:H - A restored cp_hqd_cntl_stack_size of ~1MiB or an offset\u003esize underflow to ~4GiB makes get_wave_state() copy_to_user() walk off the small kmap/vmap GTT/VRAM BO into unmapped kernel VA (and can trip CONFIG_HARDENED_USERCOPY), producing a kernel oops."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-03T10:58:59.453Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/e2bef0f168be46692a6b900916ff5da3771480ed"
},
{
"url": "https://git.kernel.org/stable/c/d9183d974ddd5f09d029beaf359275ac20d4d5fe"
},
{
"url": "https://git.kernel.org/stable/c/ec646686613d8ab05b282d1463a7baa49fd6b83b"
},
{
"url": "https://git.kernel.org/stable/c/7ef144458f48d5589e36f1b3d83e83db2e5c5ba5"
}
],
"title": "drm/amdkfd: Fix OOB memory exposure in get_wave_state()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-97496",
"datePublished": "2026-09-24T16:04:43.625Z",
"dateReserved": "2026-09-24T16:01:01.150Z",
"dateUpdated": "2026-10-03T10:58:59.453Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-97496",
"date": "2026-11-16",
"epss": "0.00125",
"percentile": "0.02257"
},
"microsoft_vex": {
"current_release_date": "2026-10-21T18:33:30.000Z",
"cve": "CVE-2026-97496",
"id": "msrc_CVE-2026-97496",
"initial_release_date": "2026-09-28T01:55:42.000Z",
"product_status:fixed": "1",
"product_status:known_affected": "1",
"product_status:under_investigation": "1",
"source": "Microsoft CSAF VEX",
"status": "final",
"title": "drm/amdkfd: Fix OOB memory exposure in get_wave_state()",
"url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-97496.json",
"version": "4"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "e2bef0f168be46692a6b900916ff5da3771480ed",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
},
{
"lessThan": "d9183d974ddd5f09d029beaf359275ac20d4d5fe",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
},
{
"lessThan": "ec646686613d8ab05b282d1463a7baa49fd6b83b",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
},
{
"lessThan": "7ef144458f48d5589e36f1b3d83e83db2e5c5ba5",
"status": "affected",
"version": "42c6c48214b726c30918e8dc80e2168607d13ae4",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.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.6.*",
"status": "unaffected",
"version": "6.6.158",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.2",
"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 OOB memory exposure in get_wave_state()\n\nThe get_wave_state() function for v9 trusts cp_hqd_cntl_stack_size and\ncp_hqd_cntl_stack_offset values read directly from the MQD, which are\nwritten by GPU microcode and fully attacker-controlled on the\nCRIU-restore path (via AMDKFD_IOC_RESTORE_PROCESS with H3).\n\nthis leads to an unbounded copy_to_user() that can leak adjacent\nGTT/kernel memory. If offset \u003e size, integer underflow produces a ~4 GiB\nread length, if size is set to 1 MiB against a 4 KiB allocation, we leak\n1 MiB of adjacent kernel memory (other queues\u0027 MQDs, ring buffers, KASLR\npointers).\n\nFix by clamping both cp_hqd_cntl_stack_size to the actual allocated\nbuffer size (q-\u003ectl_stack_size) and cp_hqd_cntl_stack_offset to the\nclamped size before performing arithmetic and copy_to_user().\n\nThis ensures we never read beyond the allocated kernel BO regardless of\nattacker-supplied MQD field values."
}
],
"id": "CVE-2026-97496",
"lastModified": "2026-10-03T11:17:59.480",
"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-09-24T17:17:27.290",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/7ef144458f48d5589e36f1b3d83e83db2e5c5ba5"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/d9183d974ddd5f09d029beaf359275ac20d4d5fe"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/e2bef0f168be46692a6b900916ff5da3771480ed"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/ec646686613d8ab05b282d1463a7baa49fd6b83b"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-06T02:22:42+00:00",
"cve": "CVE-2026-97496",
"id": "CVE-2026-97496",
"initial_release_date": "2026-09-24T00:00:00+00:00",
"product_status:known_affected": "160",
"product_status:known_not_affected": "43",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: drm/amdkfd: Fix OOB memory exposure in get_wave_state()",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97496.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2026-11-12T00:56:53Z",
"cve": "CVE-2026-97496",
"id": "CVE-2026-97496",
"initial_release_date": "2026-09-30T15:01:06Z",
"product_status:known_affected": "62",
"product_status:known_not_affected": "289",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2026-97496",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-97496.json",
"version": "4"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
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…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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…