{"id":15472,"date":"2026-09-04T19:04:17","date_gmt":"2026-09-04T11:04:17","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-46263"},"modified":"2026-09-04T19:04:17","modified_gmt":"2026-09-04T11:04:17","slug":"cve-2026-46263","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-46263","title":{"rendered":"CVE-2026-46263 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\ndrm\/amd\/display: Fix"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>drm\/amd\/display: Fix out-of-bounds stream encoder index v3<\/p>\n<p>eng_id can be negative and that stream_enc_regs[]<br \/>\ncan be indexed out of bounds.<\/p>\n<p>eng_id is used directly as an index into stream_enc_regs[], which has<br \/>\nonly 5 entries. When eng_id is 5 (ENGINE_ID_DIGF) or negative, this can<br \/>\naccess memory past the end of the array.<\/p>\n<p>Add a bounds check using ARRAY_SIZE() before using eng_id as an index.<br \/>\nThe unsigned cast also rejects negative values.<\/p>\n<p>This avoids out-of-bounds access.<\/p>\n<p>Fixes the below smatch error:<br \/>\ndcn*_resource.c: stream_encoder_create() may index<br \/>\nstream_enc_regs[eng_id] out of bounds (size 5).<\/p>\n<p>drivers\/gpu\/drm\/amd\/amdgpu\/..\/display\/dc\/resource\/dcn351\/dcn351_resource.c<br \/>\n    1246 static struct stream_encoder *dcn35_stream_encoder_create(<br \/>\n    1247         enum engine_id eng_id,<br \/>\n    1248         struct dc_context *ctx)<br \/>\n    1249 {<\/p>\n<p>    &#8230;<\/p>\n<p>    1255<br \/>\n    1256         \/* Mapping of VPG, AFMT, DME register blocks to DIO block instance *\/<br \/>\n    1257         if (eng_id &lt;= ENGINE_ID_DIGF) {<\/p>\n<p>ENGINE_ID_DIGF is 5.  should &lt;= be dc_bios,<br \/>\n    1283                                         eng_id, vpg, afmt,<br \/>\n&#8211;&gt; 1284                                         &amp;stream_enc_regs[eng_id],<br \/>\n                                                  ^^^^^^^^^^^^^^^^^^^^^^^ This stream_enc_regs[] array has 5 elements so we are one element beyond the end of the array.<\/p>\n<p>    &#8230;<\/p>\n<p>    1287         return &amp;enc1-&gt;base;<br \/>\n    1288 }<\/p>\n<p>v2: use explicit bounds check as suggested by Roman\/Dan; avoid unsigned int cast<\/p>\n<p>v3: The compiler already knows how to compare the two values, so the<br \/>\n    cast (int) is not needed. (Roman)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>drm\/amd\/display: Fix out-of-bounds stream encoder index v3<\/p>\n<p>eng_id can be negative and that stream_enc_regs[]<br \/>\ncan be indexed out of<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-15472","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/15472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}