{"id":4700,"date":"2026-09-04T18:46:42","date_gmt":"2026-09-04T10:46:42","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-64582"},"modified":"2026-09-04T18:46:42","modified_gmt":"2026-09-04T10:46:42","slug":"cve-2026-64582","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-64582","title":{"rendered":"CVE-2026-64582 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA\/rxe: Fix a use-a"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>RDMA\/rxe: Fix a use-after-free problem in rxe_mmap<\/p>\n<p>rxe_mmap() removes a rxe_mmap_info struct from the pending_mmaps list<br \/>\nand releases pending_lock while the struct&#8217;s kref is still at 1:<\/p>\n<p>   list_del_init(&amp;ip-&gt;pending_mmaps);<br \/>\n   spin_unlock_bh(&amp;rxe-&gt;pending_lock);   \/* ref == 1, no lock held *\/<br \/>\n   ret = remap_vmalloc_range(vma, ip-&gt;obj, 0);  \/* walks PTEs *\/<br \/>\n   [&#8230;]<br \/>\n   rxe_vma_open(vma);                    \/* kref_get, ref \u2192 2 *\/<br \/>\n   remap_vmalloc_range_partial() walks PTEs without any lock.<\/p>\n<p>A concurrent DESTROY_CQ ioctl on another CPU calls:<\/p>\n<p>    kref_put(&amp;q-&gt;ip-&gt;ref, rxe_mmap_release)   \/* ref 1\u21920 *\/<br \/>\n    vfree(ip-&gt;obj)   \/* clears vmalloc PTEs mid-walk *\/<br \/>\n    kfree(ip)        \/* frees rxe_mmap_info *\/<\/p>\n<p>This yields:<\/p>\n<p>   1. Kernel crash, vmalloc_to_page() returns NULL when vfree wins the<br \/>\n   per-PTE race -&gt; vm_insert_page(NULL) \u2192 GPF in validate_page_before_insert<\/p>\n<p>   2. Page UAF, vmalloc_to_page() reads a stale PTE before vfree clears<br \/>\n   it. User VMA holds a PTE to a free&#8217;d page which might eventually get<br \/>\n   reallocated later by vmalloc which allows the attacker to get a clean<br \/>\n   page-level UAF.<\/p>\n<p>   It is worth noting that even though a page-level UAF is possible given<br \/>\n   the strong primitive, it is statistically very difficult to achieve<br \/>\n   given the very short time window (after the last insert_page and before<br \/>\n   the kref_get).<\/p>\n<p>The call trace are as below:<\/p>\n<p>  Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI<br \/>\n  KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]<br \/>\n  CPU: 0 UID: 1000 PID: 413 Comm: poc Not tainted 7.0.0-rc5-dirty #28 PREEMPT(lazy)<br \/>\n  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04\/01\/2014<br \/>\n  RIP: 0010:validate_page_before_insert+0x32\/0x300<br \/>\n  Code: e5 41 57 41 56 49 89 fe 41 55 41 54 53 48 89 f3 e8 93 b5 a3 ff 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03  3c 02 00 0f 85 7b 02 00 00 4c 8b 63 08 31 ff 4d 89 e5 41 83 e5<br \/>\n  RSP: 0018:ffff88811b15f2f0 EFLAGS: 00000202<br \/>\n  RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000<br \/>\n  RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000008<br \/>\n  RBP: ffff88811b15f318 R08: 0000000000000000 R09: 0000000000000000<br \/>\n  R10: 0000000000000000 R11: 0000000000000000 R12: ffff8881181eee00<br \/>\n  R13: 0000000000000000 R14: ffff8881181eee00 R15: ffff8881181eee20<br \/>\n  FS:  00007b1e000f76c0(0000) GS:ffff8884268e0000(0000) knlGS:0000000000000000<br \/>\n  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br \/>\n  CR2: 00007b1e00a24ac0 CR3: 0000000116eb3000 CR4: 00000000000006f0<br \/>\n  Call Trace:<\/p>\n<p>   insert_page+0x8f\/0x190<br \/>\n   ? __pfx_insert_page+0x10\/0x10<br \/>\n   ? kasan_save_alloc_info+0x38\/0x60<br \/>\n   vm_insert_page+0x2e7\/0x400<br \/>\n   remap_vmalloc_range_partial+0x212\/0x3e0<br \/>\n   remap_vmalloc_range+0x6e\/0xb0<br \/>\n   ? __kasan_check_write+0x14\/0x30<br \/>\n   rxe_mmap+0x2e9\/0x5d0<br \/>\n   ib_uverbs_mmap+0x1ad\/0x2c0<br \/>\n   __mmap_region+0x12c2\/0x2ad0<br \/>\n   ? __pfx___mmap_region+0x10\/0x10<br \/>\n   ? __sanitizer_cov_trace_switch+0x58\/0xb0<br \/>\n   ? mas_prev_slot+0x360\/0x39c0<br \/>\n   ? __sanitizer_cov_trace_switch+0x58\/0xb0<br \/>\n   ? mas_next_slot+0x1e5b\/0x2f40<br \/>\n   ? __sanitizer_cov_trace_cmp8+0x18\/0x30<br \/>\n   ? unmapped_area_topdown+0x4dd\/0x610<br \/>\n   ? kfree+0x1b1\/0x440<br \/>\n   ? free_cpumask_var+0x16\/0x30<br \/>\n   ? __kasan_slab_free+0x7d\/0xa0<br \/>\n   ? __sanitizer_cov_trace_cmp8+0x18\/0x30<br \/>\n   mmap_region+0x2e6\/0x3c0<br \/>\n   do_mmap+0xa3e\/0x12a0<br \/>\n   ? __pfx_do_mmap+0x10\/0x10<br \/>\n   ? __kasan_check_write+0x14\/0x30<br \/>\n   ? down_write_killable+0xba\/0x160<br \/>\n   ? __pfx_down_write_killable+0x10\/0x10<br \/>\n   ? __sanitizer_cov_trace_cmp4+0x16\/0x30<br \/>\n   vm_mmap_pgoff+0x2d4\/0x4a0<br \/>\n   ? __pfx_vm_mmap_pgoff+0x10\/0x10<br \/>\n   ? fget+0x1bf\/0x270<br \/>\n   ksys_mmap_pgoff+0x40c\/0x690<br \/>\n   ? __sanitizer_cov_trace_const_cmp4+0x16\/0x30<br \/>\n   ? __pfx_ksys_mmap_pgoff+0x10\/0x10<br \/>\n   ? __kasan_check_write+0x14\/0x30<br \/>\n   ? _raw_spin_trylock+0xbb\/0x130<br \/>\n   ? __pfx__raw_spin_trylock+0x10\/0x10<br \/>\n   __x64_sys_mmap+0x135\/0x1e0<br \/>\n   x64_sys_c<br \/>\n&#8212;truncated&#8212;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>RDMA\/rxe: Fix a use-after-free problem in rxe_mmap<\/p>\n<p>rxe_mmap() removes a rxe_mmap_info struct from the pending_mmaps list<br \/>\nand relea<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-4700","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/4700","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=4700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}