{"id":"CVE-2026-139579","state":"PUBLISHED","title":"RDMA/rxe: Reject prefetch of a non-ODP MR","description":"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.","publishedAt":"2026-11-30T13:36:03.692Z","updatedAt":"2026-11-30T13:36:03.692Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","status":"affected","lessThan":"b9e0328e9d96e17b5beae1d09b607a9330c9396d","versionType":"git"},{"version":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","status":"affected","lessThan":"fbc7c5692161b8807d35307e27401a6ba2475260","versionType":"git"},{"version":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","status":"affected","lessThan":"66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_odp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_odp.c"]}],"references":["https://git.kernel.org/stable/c/b9e0328e9d96e17b5beae1d09b607a9330c9396d","https://git.kernel.org/stable/c/fbc7c5692161b8807d35307e27401a6ba2475260","https://git.kernel.org/stable/c/66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139579.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139579","state":"PUBLISHED","datePublished":"2026-11-30T13:36:03.692Z","dateUpdated":"2026-11-30T13:36:03.692Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.941Z"},"containers":{"cna":{"title":"RDMA/rxe: Reject prefetch of a non-ODP MR","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","status":"affected","lessThan":"b9e0328e9d96e17b5beae1d09b607a9330c9396d","versionType":"git"},{"version":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","status":"affected","lessThan":"fbc7c5692161b8807d35307e27401a6ba2475260","versionType":"git"},{"version":"3576b0df1588a0fd0249c29975d9dc92ffd6f3c0","status":"affected","lessThan":"66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_odp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_odp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b9e0328e9d96e17b5beae1d09b607a9330c9396d"},{"url":"https://git.kernel.org/stable/c/fbc7c5692161b8807d35307e27401a6ba2475260"},{"url":"https://git.kernel.org/stable/c/66f18a749a3eeeb19f0b7812ecbe8b1ac18d73ec"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:03.692Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}