{"id":16130,"date":"2026-09-04T19:05:09","date_gmt":"2026-09-04T11:05:09","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-46325"},"modified":"2026-09-04T19:05:09","modified_gmt":"2026-09-04T11:05:09","slug":"cve-2026-46325","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-46325","title":{"rendered":"CVE-2026-46325 [CRITICAL] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA\/rxe: Fix iova-to"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>RDMA\/rxe: Fix iova-to-va conversion for MR page sizes != PAGE_SIZE<\/p>\n<p>The current implementation incorrectly handles memory regions (MRs) with<br \/>\npage sizes different from the system PAGE_SIZE. The core issue is that<br \/>\nrxe_set_page() is called with mr-&gt;page_size step increments, but the<br \/>\npage_list stores individual struct page pointers, each representing<br \/>\nPAGE_SIZE of memory.<\/p>\n<p>ib_sg_to_page() has ensured that when i&gt;=1 either<br \/>\na) SG[i-1].dma_end and SG[i].dma_addr are contiguous<br \/>\nor<br \/>\nb) SG[i-1].dma_end and SG[i].dma_addr are mr-&gt;page_size aligned.<\/p>\n<p>This leads to incorrect iova-to-va conversion in scenarios:<\/p>\n<p>1) page_size iova = 0x181800<br \/>\n   sg[0]: dma_addr=0x181800, len=0x800<br \/>\n   sg[1]: dma_addr=0x173000, len=0x1000<\/p>\n<p>   Access iova = 0x181800 + 0x810 = 0x182010<br \/>\n   Expected VA: 0x173010 (second SG, offset 0x10)<br \/>\n   Before fix:<br \/>\n     &#8211; index = (0x182010 &gt;&gt; 12) &#8211; (0x181800 &gt;&gt; 12) = 1<br \/>\n     &#8211; page_offset = 0x182010 &amp; 0xFFF = 0x10<br \/>\n     &#8211; xarray[1] stores system page base 0x170000<br \/>\n     &#8211; Resulting VA: 0x170000 + 0x10 = 0x170010 (wrong)<\/p>\n<p>2) page_size &gt; PAGE_SIZE (e.g., MR: 64K, system: 4K):<br \/>\n   ibmr-&gt;iova = 0x18f800<br \/>\n   sg[0]: dma_addr=0x18f800, len=0x800<br \/>\n   sg[1]: dma_addr=0x170000, len=0x1000<\/p>\n<p>   Access iova = 0x18f800 + 0x810 = 0x190010<br \/>\n   Expected VA: 0x170010 (second SG, offset 0x10)<br \/>\n   Before fix:<br \/>\n     &#8211; index = (0x190010 &gt;&gt; 16) &#8211; (0x18f800 &gt;&gt; 16) = 1<br \/>\n     &#8211; page_offset = 0x190010 &amp; 0xFFFF = 0x10<br \/>\n     &#8211; xarray[1] stores system page for dma_addr 0x170000<br \/>\n     &#8211; Resulting VA: system page of 0x170000 + 0x10 = 0x170010 (wrong)<\/p>\n<p>Yi Zhang reported a kernel panic[1] years ago related to this defect.<\/p>\n<p>Solution:<br \/>\n1. Replace xarray with pre-allocated rxe_mr_page array for sequential<br \/>\n   indexing (all MR page indices are contiguous)<br \/>\n2. Each rxe_mr_page stores both struct page* and offset within the<br \/>\n   system page<br \/>\n3. Handle MR page_size != PAGE_SIZE relationships:<br \/>\n   &#8211; page_size &gt; PAGE_SIZE: Split MR pages into multiple system pages<br \/>\n   &#8211; page_size &lt;= PAGE_SIZE: Store offset within system page<br \/>\n4. Add boundary checks and compatibility validation<\/p>\n<p>This ensures correct iova-to-va conversion regardless of MR page size<br \/>\nand system PAGE_SIZE relationship, while improving performance through<br \/>\narray-based sequential access.<\/p>\n<p>Tests on 4K and 64K PAGE_SIZE hosts:<br \/>\n&#8211; rdma-core\/pytests<br \/>\n  $ .\/build\/bin\/run_tests.py  &#8211;dev eth0_rxe<br \/>\n&#8211; blktest:<br \/>\n  $ TIMEOUT=30 QUICK_RUN=1 USE_RXE=1 NVMET_TRTYPES=rdma .\/check nvme srp rnbd<\/p>\n<p>[1] https:\/\/lore.kernel.org\/all\/CAHj4cs9XRqE25jyVw9rj9YugffLn5+f=1znaBEnu1usLOciD+g@mail.gmail.com\/T\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>RDMA\/rxe: Fix iova-to-va conversion for MR page sizes != PAGE_SIZE<\/p>\n<p>The current implementation incorrectly handles memory regions (<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-16130","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/16130","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=16130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}