Skip to contentSkip to conversation

CVE-2026-90423: RDMA/rxe: Fix UAF in ODP init error-handling path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Fix UAF in ODP init error-handling path

rxe_odp_mr_init_user() stores &umem_odp->umem in mr->umem before calling rxe_odp_init_pages(). If rxe_odp_init_pages() fails, rxe_odp_mr_init_user() releases umem_odp and returns an error.

rxe_reg_user_mr() then unwinds the error through rxe_cleanup(), rxe_mr_cleanup(), ib_umem_release(mr->umem). There is an IS_ERR_OR_NULL(umem) check at the start of ib_umem_release(). But since mr->umem is NOT reset to NULL in the error handling path of rxe_odp_mr_init_user(), the check passes and it reads already-freed fields like umem->is_dmabuf, causing UAF.

Fix the UAF by clearing mr->umem after releasing the failed ODP umem so the MR cleanup path does not release it again.

The Linux kernel CVE team has assigned CVE-2026-90423 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.15 with commit d03fb5c6599e31b90c6b5f65d43d6ccc6b49eb91 and fixed in 6.18.52 with commit 5f1933163327c9f1c8f2a341c6cb551aaf231ff9
	Issue introduced in 6.15 with commit d03fb5c6599e31b90c6b5f65d43d6ccc6b49eb91 and fixed in 7.2.6 with commit 4cfb448705da3171d44d9cbe7be53ff03284d532
	Issue introduced in 6.15 with commit d03fb5c6599e31b90c6b5f65d43d6ccc6b49eb91 and fixed in 7.3-rc1 with commit 51f2c8d2c99fc1f452f7113c08a35edcc4bf8732

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90423

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/infiniband/sw/rxe/rxe_odp.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/5f1933163327c9f1c8f2a341c6cb551aaf231ff9
	https://git.kernel.org/stable/c/4cfb448705da3171d44d9cbe7be53ff03284d532
	https://git.kernel.org/stable/c/51f2c8d2c99fc1f452f7113c08a35edcc4bf8732