RDMA/umem: Be careful about boundary conditions in ib_umem_find_best_pgsz()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a40c20dabdf9045270767c75918feb67f0727c89 · < 09ea6837a0434fb4db99528a5055b6d822135dcf| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel’s RDMA/umem page-size selection function mishandles several boundary conditions, particularly on 32-bit systems. These can cause IOVA truncation or length-related overflows; the input does not specify what an attacker could do or what access or interaction would be required.
Engineers running Linux kernels with RDMA/umem should check whether their kernel is affected; no affected versions are specified.