{"id":"CVE-2026-139579","aliases":["CVE-2026-139579"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rxe: Reject prefetch of a non-ODP MR","summary":"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->umem, and\nfor a non-ODP MR mr->umem 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->access carries that flag only for\nan MR registered as ODP, so the existing\n(access & mr->access) != access test rejects a plain MR and the\nprefetch fails with -EINVAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->umem, and\nfor a non-ODP MR mr->umem 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->access carries that flag only for\nan MR registered as ODP, so the existing\n(access & mr->access) != access test rejects a plain MR and the\nprefetch fails with -EINVAL.","source":"cvelist"}],"published":"2026-11-30T13:36:03.692Z","modified":"2026-11-30T14:19:39.163Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","fixed":"b9e0328e9d96e17b5beae1d09b607a9330c9396d","status":"affected"},{"type":"git","introduced":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","fixed":"fbc7c5692161b8807d35307e27401a6ba2475260","status":"affected"},{"type":"git","introduced":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","fixed":"66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b9e0328e9d96e17b5beae1d09b607a9330c9396d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbc7c5692161b8807d35307e27401a6ba2475260","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139579","url":"https://www.cve.org/CVERecord?id=CVE-2026-139579","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:03.692Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139579","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139579","licence":"Public domain","modified":"2026-11-30T14:19:39.163Z"}],"updatedAt":"2026-11-30T14:33:13.117Z","epss":{"score":0.00198,"percentile":0.09991,"date":"2026-12-01T12:00:22.000Z"}}