{"id":33245,"date":"2026-10-06T20:31:36","date_gmt":"2026-10-06T12:31:36","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98176"},"modified":"2026-10-06T20:31:36","modified_gmt":"2026-10-06T12:31:36","slug":"cve-2026-98176","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98176","title":{"rendered":"CVE-2026-98176 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\ndrm\/amdkfd: Avoid int"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>drm\/amdkfd: Avoid integer underflow with ffs in EOP ring size calc<\/p>\n<p>The low 6 bits of cp_hqd_eop_control store the base-2 logarithm<br \/>\nof the EOP ring size. This was calculated as<\/p>\n<p>ffs(q-&gt;eop_ring_buffer_size \/ sizeof(unsigned int)) &#8211; 1 &#8211; 1<\/p>\n<p>But ffs can in theory return 1 or 0, so this could underflow<br \/>\n(although in practice the ring buffer size cannot be less than 4096).<\/p>\n<p>Change this to<\/p>\n<p>ffs(q-&gt;eop_ring_buffer_size \/ sizeof(unsigned int) \/ 4)<\/p>\n<p>using properties of logarithms.<\/p>\n<p>(cherry picked from commit 4f18c56630383c14bfc6b2d65f88f2f895d2121a)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>drm\/amdkfd: Avoid integer underflow with ffs in EOP ring size calc<\/p>\n<p>The low 6 bits of cp_hqd_eop_control store the base-2 logarithm<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-33245","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/33245","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=33245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}