CVE-2026-139674

drm/amd/pm: bound SCLK FCW range entries to the table size

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/amd/pm: bound SCLK FCW range entries to the table size

atomctrl_get_smc_sclk_range_table() copies ucSclkEntryNum entries from
the VBIOS SMU_Info table into pp_atom_ctrl_sclk_range_table. Both the
source (asSclkFcwRangeEntry[]) and destination (table->entry[]) arrays
are fixed at MAX_SCLK_RANGE (8) entries, but ucSclkEntryNum is an
unchecked u8 read straight from the VBIOS, so it can be up to 255. The
destination is stack-allocated in both callers
(polaris10_get_sclk_range_table(), vegam_get_sclk_range_table()), so a
count above 8 overflows a stack buffer, not just a heap read.

Reject counts above MAX_SCLK_RANGE rather than clamping to it. Only
one version of this VBIOS struct (ATOM_SMU_INFO_V2_1) has ever
existed, so a count above 8 corresponds to no legitimate table format
and means either a corrupted or a tampered VBIOS.

Analysis

AI-generated

Technical impact

A vulnerability in the Linux kernel's DRM AMD power management code allows a malicious or corrupted VBIOS to specify a number of clock frequency range entries that exceeds the fixed array size. The code copies an unchecked unsigned 8‑bit count directly into a stack‑allocated buffer of eight elements, causing an overflow that can overwrite adjacent stack data. This type of stack buffer overflow can enable an attacker to execute arbitrary code or gain higher privileges, leading to full system compromise.

Affected Systems

All Linux kernel installations that contain the drm/amd/pm drivers and load a VBIOS containing the ATOM_SMU_INFO_V2_1 structure. The affected kernel version is not explicitly stated, but the flaw exists in kernel sources that compile the drmd/amd/pm code branch for recent hardware generations.

Risk and Exploitability

The flaw results in a classic stack buffer overflow with no apparent mitigations in place. While publicly available EPSS data is not present, the vulnerability is severe enough that a compromised or tampered BIOS that the system trusts can trigger it. The affected code is invoked during the boot or graphics driver init path, which makes the attack local to the machine unless remote firmware update mechanisms are abused. Because the issue is purely a memory‑overrun, exploitation is likely possible without additional conditions, giving the attacker a high level of confidence in successful privilege escalation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that bounds the SCLK FCW range entries to the table size.
  • Ensure that only signed or verified firmware is flashed to the system and disable any automatic BIOS updates from untrusted sources.
  • Reboot and verify that the kernel version contains the correction, and consider disabling the DRM AMD power management module if it can be shown unnecessary for your environment.

Generated by OpenCVE AI on December 1, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-120
CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/amd/pm: bound SCLK FCW range entries to the table size atomctrl_get_smc_sclk_range_table() copies ucSclkEntryNum entries from the VBIOS SMU_Info table into pp_atom_ctrl_sclk_range_table. Both the source (asSclkFcwRangeEntry[]) and destination (table->entry[]) arrays are fixed at MAX_SCLK_RANGE (8) entries, but ucSclkEntryNum is an unchecked u8 read straight from the VBIOS, so it can be up to 255. The destination is stack-allocated in both callers (polaris10_get_sclk_range_table(), vegam_get_sclk_range_table()), so a count above 8 overflows a stack buffer, not just a heap read. Reject counts above MAX_SCLK_RANGE rather than clamping to it. Only one version of this VBIOS struct (ATOM_SMU_INFO_V2_1) has ever existed, so a count above 8 corresponds to no legitimate table format and means either a corrupted or a tampered VBIOS.
Title drm/amd/pm: bound SCLK FCW range entries to the table size
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM