HIGH Introduced in 6.8
amdgpu_dm DegammaLUT OOB
CVE-2026-89819
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.6HIGH
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.8 | 6.12.110 | f6f04d8ae572 |
| 6.18 | 6.8 | 6.18.51 | 0b2615b8b54f |
| 7.2 | 6.8 | 7.2.5 | b10cc09b3292 |
| mainline | 6.8 | 7.3 | e4c3ab59021e |
| cip/6.12 | 6.8 | 6.12.111-cip32 | f6f04d8ae572 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |