Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97494 Overview
CVE-2026-97494 is a Linux kernel vulnerability in the AMD GPU driver (drm/amdgpu). The flaw affects the psp_copy_fw function used by the Platform Security Processor (PSP) subsystem to stage firmware images into a private buffer. Prior to the fix, psp_copy_fw was declared void and performed open-coded memset/memcpy operations into fw_pri_buf without validating the input image size or checking device state. The resolved patch changes the function to return an integer, enforces bounds against the 1 MiB PSP private buffer, and rejects zero-sized or oversized firmware images.
Critical Impact
Missing size validation when copying firmware into the fixed 1 MiB PSP fw_pri_buf could allow out-of-bounds writes within kernel memory on affected AMD GPU systems.
Affected Products
- Linux kernel versions containing the pre-patch drm/amdgpu PSP subsystem
- Systems using AMD GPUs that rely on the PSP firmware loading path
- Distributions shipping unpatched stable kernels referenced in the upstream commits
Discovery Timeline
- 2026-09-24 - CVE-2026-97494 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97494
Vulnerability Analysis
The vulnerability resides in the AMD GPU Direct Rendering Manager (DRM) driver, specifically in the Platform Security Processor firmware handling routine psp_copy_fw. The PSP subsystem stages firmware blobs into a pre-allocated private buffer named fw_pri_buf, sized at 1 MiB. Before the fix, callers invoked open-coded memset and memcpy operations against this buffer without verifying that the source image fit within the allocation or that the device remained attached.
The upstream patch converts psp_copy_fw from a void function into one that returns an int. It now returns -ENODEV when drm_dev_enter fails, indicating the device has been unplugged or is otherwise unavailable. It returns -EINVAL when the firmware image size is zero or exceeds the 1 MiB private buffer. Open-coded buffer manipulation across call sites was replaced with calls into the validated helper, centralizing input sanitization.
Root Cause
The root cause is missing input validation [Out-of-Bounds Write] on firmware image sizes copied into a fixed-size kernel buffer. The pre-patch implementation trusted the caller to provide a size that fit within fw_pri_buf, and it did not guard against the device being torn down concurrently with firmware loading.
Attack Vector
Exploitation requires a local code path capable of supplying a firmware image to the PSP loader. Because firmware loading in amdgpu is driven from kernel-side initialization and runtime microcode updates, the vector is predominantly local and privileged. The missing drm_dev_enter guard also introduces a potential use-after-detach condition during device removal. Upstream references and patch commits are available at the kernel.org commit 1aa55af3, commit 25bec242, and commit d1f9f583.
// No verified exploit code available for this CVE.
// Refer to upstream kernel commits for patch details.
Detection Methods for CVE-2026-97494
Indicators of Compromise
- Kernel oops or panic traces originating in amdgpu PSP firmware loading paths referencing fw_pri_buf, psp_copy_fw, or adjacent memcpy call sites.
- Unexpected -EINVAL or -ENODEV return codes from PSP firmware loading on patched kernels, indicating malformed or oversized firmware inputs.
- Dmesg entries showing GPU reset or microcode load failures correlated with device hot-removal events.
Detection Strategies
- Inventory running kernel versions and compare against the fixed commits referenced in the kernel.org stable tree.
- Monitor kernel log telemetry for amdgpu PSP initialization errors and firmware load failures.
- Audit custom or out-of-tree AMD GPU drivers that may replicate the vulnerable psp_copy_fw pattern.
Monitoring Recommendations
- Forward /var/log/kern.log and journald kernel events to a centralized logging platform for anomaly review.
- Alert on repeated GPU microcode load failures or amdgpu subsystem crashes on multi-tenant or GPU-compute hosts.
- Track EPSS exposure data (currently 0.166%) as part of ongoing kernel vulnerability triage.
How to Mitigate CVE-2026-97494
Immediate Actions Required
- Apply the upstream kernel patches referenced in the three kernel.org stable commits.
- Rebuild and redeploy custom kernels or vendor kernels that carry backported amdgpu code.
- Restrict loading of untrusted or unsigned firmware blobs for AMD GPU devices.
Patch Information
The fix is available in the Linux stable tree via commits 1aa55af3, 25bec242, and d1f9f583. The patch changes psp_copy_fw to return an int, enforces size bounds against the 1 MiB fw_pri_buf, and replaces open-coded memset/memcpy with the validated helper.
Workarounds
- Where patching is not immediately feasible, limit local access to systems running affected AMD GPU drivers.
- Avoid dynamically loading third-party or unverified PSP firmware images until kernels are updated.
- Consider blacklisting the amdgpu module on systems that do not require AMD GPU functionality.
# Verify running kernel and amdgpu module status
uname -r
lsmod | grep amdgpu
# Blacklist amdgpu if the GPU is not required
echo 'blacklist amdgpu' | sudo tee /etc/modprobe.d/blacklist-amdgpu.conf
sudo update-initramfs -u
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

