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-97427 Overview
CVE-2026-97427 is a heap buffer overflow in the Linux kernel's AMD GPU power management (drm/amd/pm) subsystem. The flaw resides in the pp_dpm_set_pp_table() sysfs write handler used by the powerplay path. The handler allocates hardcode_pp_table once via kmemdup(..., soft_pp_table_size), then performs a memcpy() using the sysfs store count (up to PAGE_SIZE) without validating the destination size. Writes larger than soft_pp_table_size corrupt adjacent heap memory. The fix rejects writes where the user-supplied size exceeds soft_pp_table_size.
Critical Impact
A local user with write access to the AMD GPU powerplay sysfs interface can trigger a kernel heap overflow, enabling denial of service or potential privilege escalation.
Affected Products
- Linux kernel builds containing the amdgpu driver with powerplay (drm/amd/pm) support
- Stable kernel branches referenced in the fix commits 3334985, 43d2ab8, and f193e71
- Systems exposing /sys/class/drm/card*/device/pp_table on AMD GPUs
Discovery Timeline
- 2026-09-24 - CVE-2026-97427 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97427
Vulnerability Analysis
The vulnerability affects the AMD GPU powerplay sysfs interface that allows userspace to upload a custom PowerPlay table. On first write, the handler allocates a backing buffer sized to soft_pp_table_size using kmemdup(). Subsequent writes copy user data into that fixed-size buffer. The copy length is derived from the sysfs store callback's count argument, which the VFS layer caps at PAGE_SIZE (typically 4096 bytes). Because soft_pp_table_size can be smaller than PAGE_SIZE, a single oversized write overruns the allocation.
The out-of-bounds write lands on the kernel slab heap, adjacent to whatever objects share the allocation's cache. Depending on heap layout, consequences range from kernel panic to targeted corruption of neighboring kernel structures, which an attacker can leverage for local privilege escalation.
Root Cause
The root cause is a missing length check between the user-controlled sysfs write count and the fixed soft_pp_table_size of the previously allocated hardcode_pp_table. The memcpy() destination size is never re-validated against the source length, a classic unbounded copy pattern [CWE-787].
Attack Vector
Exploitation requires local access and write permission to the AMD GPU powerplay sysfs node, which is typically restricted to root or users in a GPU-privileged group. An attacker opens the pp_table sysfs attribute and issues a write larger than soft_pp_table_size but within the PAGE_SIZE limit enforced by the VFS layer. The oversized memcpy() corrupts kernel heap memory adjacent to hardcode_pp_table.
See the upstream patches for the exact bounds check: Kernel Commit 3334985, Kernel Commit 43d2ab8, and Kernel Commit f193e71.
Detection Methods for CVE-2026-97427
Indicators of Compromise
- Unexpected kernel oops or BUG: KASAN: slab-out-of-bounds reports referencing pp_dpm_set_pp_table or amdgpu_set_pp_table in dmesg.
- Processes other than legitimate GPU management tooling writing to /sys/class/drm/card*/device/pp_table.
- Sudden amdgpu driver instability or GPU reset events correlated with userspace sysfs writes.
Detection Strategies
- Enable KASAN on test and staging kernels to catch out-of-bounds writes against the powerplay allocation during fuzz testing.
- Audit kernel package versions against the fixed commits (3334985, 43d2ab8, f193e71) to confirm patch presence.
- Use auditd rules to log open and write syscalls targeting pp_table sysfs attributes.
Monitoring Recommendations
- Collect and centralize dmesg and journald kernel logs to surface slab corruption and amdgpu crash signatures.
- Alert on unexpected GPU driver reinitialization sequences on multi-tenant or workstation hosts.
- Track processes that interact with GPU power management interfaces outside of approved administration windows.
How to Mitigate CVE-2026-97427
Immediate Actions Required
- Upgrade to a Linux kernel release that includes commits 3334985f8b4c, 43d2ab8408f9, or f193e71fa9fa for your stable branch.
- Restrict write access to AMD GPU powerplay sysfs attributes to trusted administrators only.
- Validate GPU management tooling to ensure it never writes PowerPlay tables exceeding soft_pp_table_size.
Patch Information
The upstream fix adds an explicit bounds check that rejects any write whose size exceeds soft_pp_table_size, preventing the oversized memcpy(). Apply the patches referenced in Kernel Commit 3334985, Kernel Commit 43d2ab8, and Kernel Commit f193e71, or install distribution-provided kernel updates that incorporate them.
Workarounds
- Remove world or group write permissions from /sys/class/drm/card*/device/pp_table on affected hosts until patches are deployed.
- Blacklist or unload the amdgpu powerplay interface on systems that do not require runtime PowerPlay table overrides.
- Enforce mandatory access control (SELinux, AppArmor) policies restricting which binaries may write to GPU sysfs attributes.
# Restrict access to the AMD GPU powerplay sysfs attribute
chmod 600 /sys/class/drm/card0/device/pp_table
chown root:root /sys/class/drm/card0/device/pp_table
# Verify the running kernel includes the fix (check against distro changelog)
uname -r
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

