Skip to contentSkip to conversation

CVE-2026-97421: RDMA/umem: Be careful about boundary conditions in ib_umem_find_best_pgsz()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

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/umem: Be careful about boundary conditions in ib_umem_find_best_pgsz()

Several corner cases, especially important on 32 bits:

- umem->iova is u64, the function argument should pass in u64 or iova will be truncated
- Check that the length is not too large for the iova
- Check that lengths > 4G don't overflow the GENMASK

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

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

	Fixed in 6.12.111 with commit ae3cf7d2c4d506c5c91746321644e1a08d989e2a
	Fixed in 6.18.53 with commit 5fc5b73109540809b094710fac44da81dd8a3ff8
	Fixed in 7.2 with commit 09ea6837a0434fb4db99528a5055b6d822135dcf

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-97421

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/core/umem.c
include/rdma/ib_umem.h

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/ae3cf7d2c4d506c5c91746321644e1a08d989e2a
	https://git.kernel.org/stable/c/5fc5b73109540809b094710fac44da81dd8a3ff8
	https://git.kernel.org/stable/c/09ea6837a0434fb4db99528a5055b6d822135dcf