{"id":82254,"date":"2026-07-19T19:48:01","date_gmt":"2026-07-19T16:18:01","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-64186-iommu-amd-remove-latent-out-of-bounds-access-in-iommu-debugfs\/"},"modified":"2026-07-19T19:48:01","modified_gmt":"2026-07-19T16:18:01","slug":"cve-2026-64186-iommu-amd-remove-latent-out-of-bounds-access-in-iommu-debugfs","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-64186-iommu-amd-remove-latent-out-of-bounds-access-in-iommu-debugfs\/","title":{"rendered":"CVE-2026-64186 &#8211; iommu\/amd: Remove latent out-of-bounds access in IOMMU debugfs"},"content":{"rendered":"<p>CVE ID :CVE-2026-64186<\/p>\n<p>  Published : July 19, 2026, 4:18 p.m. | 1\u00a0hour, 23\u00a0minutes ago<\/p>\n<p>  Description :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<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-64186 Published : July 19, 2026, 4:18 p.m. | 1\u00a0hour, 23\u00a0minutes ago Description :In the Linux kernel, the following vulnerability has been resolved: iommu\/amd: Remove latent out-of-bounds access in IOMMU debugfs In iommu_mmio_write() and iommu_capability_write(), the variables dbg_mmio_offset and dbg_cap_offset are declared as int. However, they are populated using kstrtou32_from_user(). If a user &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82254","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82254"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82254\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}