{"id":"CVE-2026-139579","summary":"RDMA/rxe: Reject prefetch of a non-ODP MR","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Reject prefetch of a non-ODP MR\n\nrxe_ib_advise_mr_prefetch() and rxe_ib_prefetch_sg_list() look up the MR\nby lkey and hand it to rxe_odp_do_pagefault_and_lock() without checking\nthat it is an ODP MR. That path runs to_ib_umem_odp() on mr-\u003eumem, and\nfor a non-ODP MR mr-\u003eumem is a plain struct ib_umem from ib_umem_get(),\nso the container_of() in to_ib_umem_odp() lands past the end of the\nobject and ib_umem_odp_map_dma_and_lock() reads its ib_umem_odp fields\nout of bounds.\n\nlookup_mr() validates the lkey, PD, access and state but not the MR\ntype, and IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH is accepted for any MR.\n\n BUG: KASAN: slab-out-of-bounds in ib_umem_odp_map_dma_and_lock+0x884/0x8a0\n Read of size 8 at addr ffff88810a3ebcf0 by task advi/921\n  ib_umem_odp_map_dma_and_lock+0x884/0x8a0\n  rxe_ib_advise_mr+0x543/0xad0\n  ib_uverbs_handler_UVERBS_METHOD_ADVISE_MR+0x446/0x530\n  ib_uverbs_cmd_verbs+0x2b3c/0x3b20\n  ib_uverbs_ioctl+0x1e3/0x310\n Allocated by task 921:\n  __ib_umem_get_va+0x13e/0xae0\n  rxe_mr_init_user+0x2ae/0xb00\n  rxe_reg_user_mr+0x337/0x510\n The buggy address belongs to the object at ffff88810a3ebc80\n  which belongs to the cache kmalloc-96 of size 96\n\nAsk lookup_mr() for IB_ACCESS_ON_DEMAND in both the synchronous and\nthe asynchronous prefetch arm. mr-\u003eaccess carries that flag only for\nan MR registered as ODP, so the existing\n(access & mr-\u003eaccess) != access test rejects a plain MR and the\nprefetch fails with -EINVAL.","modified":"2026-11-30T15:02:29.367913613Z","published":"2026-11-30T13:36:03.692Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139579.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b9e0328e9d96e17b5beae1d09b607a9330c9396d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fbc7c5692161b8807d35307e27401a6ba2475260"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139579.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139579"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0"},{"fixed":"b9e0328e9d96e17b5beae1d09b607a9330c9396d"},{"fixed":"fbc7c5692161b8807d35307e27401a6ba2475260"},{"fixed":"66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139579.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139579.json"}}],"schema_version":"1.9.2"}