In the Linux kernel, the following vulnerability has been resolved:drm/amd/display: Fix out-of-bounds access in 'dcn21_link_encoder_create'An issue was identified in the dcn21_link_encoder_create function wherean out-of-bounds access could occur when the hpd_source index was usedto reference the link_enc_hpd_regs array. This array has a fixed sizeand the index was not being checked against the array's bounds beforeaccessing it.This fix adds a conditional check to ensure that the hpd_source index iswithin the valid range of the link_enc_hpd_regs array. If the index isout of bounds, the function now returns NULL to prevent undefinedbehavior.References:[ 65.920507] ------------[ cut here ]------------[ 65.920510] UBSAN: array-index-out-of-bounds in drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn21/dcn21_resource.c:1312:29[ 65.920519] index 7 is out of range for type 'dcn10_link_enc_hpd_registers [5]'[ 65.920523] CPU: 3 PID: 1178 Comm: modprobe Tainted: G OE 6.8.0-cleanershaderfeatureresetasdntipmi200nv2132 #13[ 65.920525] Hardware name: AMD Majolica-RN/Majolica-RN, BIOS WMJ0429N_Weekly_20_04_2 04/29/2020[ 65.920527] Call Trace:[ 65.920529]
No PoCs from references.
- https://github.com/ARPSyndicate/cve-scores
- https://github.com/bygregonline/devsec-fastapi-report
- https://github.com/cku-heise/euvd-api-doc
- https://github.com/w4zu/Debian_security