CVE-2026-68257

drm/amdkfd: fix 32-bit overflow in CWSR total size calculation

Published Aug 10, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/amdkfd: fix 32-bit overflow in CWSR total size calculation

total_cwsr_size was computed in 32-bit before being used as a BO/SVM
allocation size.
With large ctx_save_restore_area_size and debug_memory_size
multiplied by the XCC count, the product can wrap,
yielding an undersized CWSR save area that firmware later overruns.

Promote total_cwsr_size to u64 and use check_add_overflow()/
check_mul_overflow() in both kfd_queue_acquire_buffers() and
kfd_queue_release_buffers().

(cherry picked from commit 319f7e13423ae3f486b9aea82f9ad2d6af0ee608)

Analysis

AI-generated

Technical impact

The Linux kernel’s DRM AMD KFD driver contains an integer overflow in the calculation of the command‑queue save‑restore area (CWSR) total size. The total size was computed using a 32‑bit type and later used as an allocation size. If the product of ctx_save_restore_area_size and debug_memory_size multiplied by the XCC count overflows, the resulting buffer will be smaller than required, enabling firmware to overwrite memory beyond the allocated area. This can lead to a buffer overflow (CWE‑787) and is caused by the integer overflow (CWE‑190), potentially corrupting kernel memory and creating a path for privilege escalation or system instability.

Affected Systems

All Linux kernel installations employing the DRM AMD KFD driver prior to the fix in commit 319f7e13423ae3f486b9aea82f9ad2d6af0ee608 are affected. The vulnerability is present in the kernel, regardless of specific version numbers, as long as the subsystem has not been patched. The patch promotes the 32‑bit calculation to 64‑bit and adds overflow checks in kfd_queue_acquire_buffers() and kfd_queue_release_buffers().

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS probability of less than 1% suggests a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, and no public exploits have been reported. Based on the description, it is inferred that exploitation requires local privileged access to the kernel, implying that an attacker must already have significant kernel or local user privileges to trigger the overflow.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply an updated kernel version that contains the AMDKFD 32‑bit overflow patch, or cherry‑pick the referenced commits into the running kernel source tree and rebuild the kernel.
  • Rebuild the AMD KFD kernel module against the updated kernel to ensure compatibility.
  • Reboot the system so the patched kernel and modules are loaded and in use.

Generated by OpenCVE AI on October 20, 2026 at 10:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-190
Type Values Removed Values Added
Weaknesses CWE-119
CWE-674
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-119
CWE-674
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix 32-bit overflow in CWSR total size calculation total_cwsr_size was computed in 32-bit before being used as a BO/SVM allocation size. With large ctx_save_restore_area_size and debug_memory_size multiplied by the XCC count, the product can wrap, yielding an undersized CWSR save area that firmware later overruns. Promote total_cwsr_size to u64 and use check_add_overflow()/ check_mul_overflow() in both kfd_queue_acquire_buffers() and kfd_queue_release_buffers(). (cherry picked from commit 319f7e13423ae3f486b9aea82f9ad2d6af0ee608)
Title drm/amdkfd: fix 32-bit overflow in CWSR total size calculation
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 8:58 PM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 10, 2026, 1:20 PM
Modified
Oct 19, 2026, 9:17 PM
Severity
Important
Public date
Aug 10, 2026, 12:01 PM