RDMA/mlx5: Fix integer overflow of user QP buffer size (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.13 % · percentile 3 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Received
Description
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.
References
- https://git.kernel.org/stable/c/ccce6b7ef1d7efc59ccba3421e1339c6e63a3d20
- https://git.kernel.org/stable/c/d99622e40aaa910ade681dfd4dc0fa240a011331
- https://git.kernel.org/stable/c/c845e5e05140ea1bc64a5b1107942d93c876034d
- https://git.kernel.org/stable/c/42fb8aefffff5b458aaa66803364a16e0ea44129
- https://git.kernel.org/stable/c/d7fa2ff72ad1861eac194a4e0075d504ba8c246e
- https://git.kernel.org/stable/c/5b6cfc6d7ff0959dd9766fdc24286a253b59ca77
- https://git.kernel.org/stable/c/f917707f0de0832b8ab582391b1f64e549995c6c
- https://git.kernel.org/stable/c/dec47e4b0fe34afdf38caa72b4408ba95502e5de
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-82096
- GCVE · GCVE-0-2026-90435
CERT-FR advisories
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1375 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1289 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1253 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c < ccce6b7ef1d7efc59ccba3421e1339c6e63a3d20 ; affected e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c < d99622e40aaa910ade681dfd4dc0fa240a011331 ; affected e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c < c845e5e05140ea1bc64a5b1107942d93c876034d ; affected e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c < 42fb8aefffff5b458aaa66803364a16e0ea44129 ; affected e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c < d7fa2ff72ad1861eac194a4e0075d504ba8c246e ; affected e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c < 5b6cfc6d7ff0959dd9766fdc24286a253b59ca77 |
| Linux · Linux | affected 3.11 ; unaffected 0 < 3.11 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |