KernelScan.io

HIGH Introduced in 6.8

amdgpu_dm DegammaLUT OOB

CVE-2026-89819

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 AI7.6HIGH

01

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: validate plane degamma LUT size for private color prop Unlike the CRTC degamma path, which is guarded by amdgpu_dm_verify_lut_sizes(), the per-plane degamma LUT size was never validated before use. __set_dm_plane_degamma() passed the user-supplied size straight into __is_lut_linear() and, for a non-linear LUT, into __set_input_tf() -> __drm_lut_to_dc_gamma(), the latter always iterating MAX_COLOR_LUT_ENTRIES entries regardless of the actual LUT size. A malformed AMD_PLANE_DEGAMMA_LUT blob (e.g. a single entry) could thus trigger a divide-by-zero in __is_lut_linear() or an out-of-bounds read in __drm_lut_to_dc_gamma(). Reject any plane degamma LUT whose size does not match MAX_COLOR_LUT_ENTRIES, mirroring the invariant the code already asserts a few lines below (and which the CRTC path enforces). The AMD_PLANE_DEGAMMA_LUT property is only exposed on builds with AMD_PRIVATE_COLOR defined.

02

Engine v0.6.0

Risk summary

A local user with access to an AMD GPU device node can supply a malformed degamma lookup table to trigger a divide-by-zero kernel panic or an out-of-bounds heap read. The bug requires an AMD GPU with the AMD_PRIVATE_COLOR build option enabled. Systems exposing the DRI device to untrusted users or container workloads with GPU passthrough are at highest risk.

Affecteddrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c (AMD DC color management)

Vulnerability analysis

The AMD display driver accepted a user-supplied per-plane degamma lookup table without checking that its size matched the expected fixed entry count. Internal functions that process the table assumed the full expected length, so a short or single-entry blob caused a divide-by-zero in the linearity test and an out-of-bounds read that pulled kernel heap data far past the end of the supplied buffer. The fix rejects any degamma LUT whose size does not equal the required entry count before any processing begins, mirroring the validation already present on the CRTC degamma path. The vulnerable property is only exposed on kernels built with AMD_PRIVATE_COLOR and is reachable by any local user who can open the AMD GPU's DRM device node.

03

BranchIntroducedFixed inPatch commit
6.126.86.12.110f6f04d8ae572
6.186.86.18.510b2615b8b54f
7.26.87.2.5b10cc09b3292
mainline6.87.3e4c3ab59021e
cip/6.126.86.12.111-cip32f6f04d8ae572

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32