KernelScan.io

HIGH

drm/amdkfd SVM Buffer OOB

CVE-2026-46197

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.5MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: validate SVM ioctl nattr against buffer size Validate nattr field against the buffer size, preventing out-of-bounds buffer access via user-controlled attribute count. (cherry picked from commit 5eca8bfdfa456c3304ca77523718fe24254c172f)

02

Engine v0.2.0

Risk summary

Local users with GPU access can trigger out-of-bounds kernel memory reads through malformed SVM ioctl calls. This can lead to information disclosure of kernel memory contents or system crashes. Systems running GPU compute workloads or OpenCL/ROCm applications are at risk.

Affecteddrivers/gpu/drm/amd/amdkfd/kfd_chardev.c (AMD KFD)

Vulnerability analysis

The AMD KFD SVM ioctl handler failed to validate the user-provided nattr field against the actual buffer size, allowing attackers to specify a large attribute count that causes kernel reads beyond allocated memory. The fix adds proper validation using struct_size() to calculate expected buffer requirements and rejects requests where the buffer is too small. Attack requires local access to the /dev/kfd device file, typically available to users in graphics-related groups.

03

BranchFixed inPatch commit
5.155.15.209daa8bc5f8381
6.16.1.175fb07a0c9c841
6.126.12.90ccd060b5c7cc
6.186.18.32db9530a9873a
6.66.6.14091c6dc5a4169
7.07.0.96abd3a4417cb
mainline7.1-rc2045e0ff208f0