KernelScan.io

HIGH Introduced in 3.11

mlx5 QPBufSize Overflow

CVE-2026-90435

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.8HIGH

01

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Fix integer overflow of user QP buffer size set_user_buf_size() computes the QP buffer size by left-shifting the user-supplied rq.wqe_cnt and rq.wqe_shift values as signed integers. A sufficiently large rq.wqe_cnt causes signed integer overflow, which is undefined behavior, and yields a small or negative buf_size, causing ib_umem_get() to map a buffer smaller than the hardware will actually write into. Replace the shifts and addition with check_shl_overflow() and check_add_overflow(), rejecting invalid user inputs. Moreover, guard the identical shift computing qp->sq.offset in _create_user_qp() before set_user_buf_size() is reached.

02

Engine v0.6.0

Risk summary

A local user with access to a Mellanox RDMA adapter can supply oversized Queue Pair parameters that overflow a signed integer size computation, causing the kernel to map a buffer far smaller than the hardware will actually write into. The NIC then writes beyond the mapped region, corrupting kernel memory and potentially crashing the system or escalating privileges. Systems without Mellanox RDMA hardware are unaffected.

Affecteddrivers/infiniband/hw/mlx5/qp.c (RDMA/mlx5)

Vulnerability analysis

When a userspace process creates an RDMA Queue Pair on a Mellanox adapter, the driver computes the receive and send buffer sizes by left-shifting user-supplied work-request counts and shift values as signed integers. A sufficiently large count causes signed integer overflow, producing a small or negative buffer size; the kernel then maps a memory region far smaller than the hardware will actually write into, so the NIC overwrites adjacent kernel memory. The fix replaces every raw shift and addition with overflow-checking helpers that reject invalid inputs before the buffer is mapped, and adds the same guard to the Queue Pair offset computation that runs earlier in the creation path. The vulnerable code is reached locally through the RDMA verbs device interface; any user who can open the adapter's userspace verbs device—typically through group membership or device file permissions—can trigger it, and the system must have a Mellanox RDMA adapter present.

03

BranchIntroducedFixed inPatch commit
5.103.115.10.270ccce6b7ef1d7
5.153.115.15.221d99622e40aaa
6.13.116.1.188c845e5e05140
6.123.116.12.110d7fa2ff72ad1
6.183.116.18.525b6cfc6d7ff0
6.63.116.6.15742fb8aefffff
7.23.117.2.6f917707f0de0
mainline3.117.3dec47e4b0fe3
cip/5.103.115.10.271-cip78ccce6b7ef1d7
cip/5.10-rt3.115.10.272-cip79-rt35ccce6b7ef1d7
cip/6.13.116.1.189-cip61c845e5e05140
cip/6.1-rt3.116.1.189-cip61-rt32c845e5e05140
cip/6.123.116.12.111-cip32d7fa2ff72ad1

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)