| Summary | In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix out-of-bounds stream encoder index v3 eng_id can be negative and that stream_enc_regs[] eng_id is used directly as an index into stream_enc_regs[], which has Add a bounds check using ARRAY_SIZE() before using eng_id as an index. This avoids out-of-bounds access. Fixes the below smatch error: drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn351/dcn351_resource.c ... 1255 ENGINE_ID_DIGF is 5. should <= be <? Unrelated but, ugh, why is Smatch saying that "eng_id" can be negative? 1258 vpg_inst = eng_id; ... 1281 ... 1287 return &enc1->base; v2: use explicit bounds check as suggested by Roman/Dan; avoid unsigned int cast v3: The compiler already knows how to compare the two values, so the |
|---|---|
| Publication Date | June 4, 2026, 3:16 a.m. |
| Registration Date | June 4, 2026, 4:17 a.m. |
| Last Update | June 4, 2026, 3:16 a.m. |