{"id":15116,"date":"2026-09-04T19:02:26","date_gmt":"2026-09-04T11:02:26","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-64186"},"modified":"2026-09-04T19:02:26","modified_gmt":"2026-09-04T11:02:26","slug":"cve-2026-64186","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-64186","title":{"rendered":"CVE-2026-64186 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\niommu\/amd: Remove lat"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>iommu\/amd: Remove latent out-of-bounds access in IOMMU debugfs<\/p>\n<p>In iommu_mmio_write() and iommu_capability_write(), the variables<br \/>\ndbg_mmio_offset and dbg_cap_offset are declared as int. However, they<br \/>\nare populated using kstrtou32_from_user(). If a user provides a<br \/>\nsufficiently large value, it can become a negative integer.<\/p>\n<p>Prior to this patch, the AMD IOMMU debugfs implementation was already<br \/>\nprotected by different mechanisms.<\/p>\n<p>1. #define OFS_IN_SZ 8 ensures the user string  OFS_IN_SZ)<br \/>\n     return -EINVAL;<\/p>\n<p>2. Implicit type promotion in iommu_mmio_write(), dbg_mmio_offset is int<br \/>\n   and iommu-&gt;mmio_phys_end is u64<\/p>\n<p>  if (dbg_mmio_offset &gt; iommu-&gt;mmio_phys_end &#8211; sizeof(u64))<br \/>\n      return -EINVAL;<\/p>\n<p>3. The show handlers would currently catch the negative number and<br \/>\n   refuse to perform the read.<\/p>\n<p>Replace kstrtou32_from_user() with kstrtos32_from_user() to parse the<br \/>\ninput, and check for negative values to explicitly prevent out-of-bounds<br \/>\nmemory accesses directly in iommu_mmio_write() and<br \/>\niommu_capability_write().<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>iommu\/amd: Remove latent out-of-bounds access in IOMMU debugfs<\/p>\n<p>In iommu_mmio_write() and iommu_capability_write(), the variables<br \/>\nd<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-15116","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/15116","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=15116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}