{"id":"CVE-2026-90435","summary":"RDMA/mlx5: Fix integer overflow of user QP buffer size","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Fix integer overflow of user QP buffer size\n\nset_user_buf_size() computes the QP buffer size by left-shifting the\nuser-supplied rq.wqe_cnt and rq.wqe_shift values as signed integers.\nA sufficiently large rq.wqe_cnt causes signed integer overflow, which\nis undefined behavior, and yields a small or negative buf_size, causing\nib_umem_get() to map a buffer smaller than the hardware will actually\nwrite into.\n\nReplace the shifts and addition with check_shl_overflow() and\ncheck_add_overflow(), rejecting invalid user inputs.\n\nMoreover, guard the identical shift computing qp-\u003esq.offset in\n_create_user_qp() before set_user_buf_size() is reached.","modified":"2026-09-18T03:48:38.642790281Z","published":"2026-09-17T16:09:54.399Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90435.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/42fb8aefffff5b458aaa66803364a16e0ea44129"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b6cfc6d7ff0959dd9766fdc24286a253b59ca77"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c845e5e05140ea1bc64a5b1107942d93c876034d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ccce6b7ef1d7efc59ccba3421e1339c6e63a3d20"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d7fa2ff72ad1861eac194a4e0075d504ba8c246e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d99622e40aaa910ade681dfd4dc0fa240a011331"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dec47e4b0fe34afdf38caa72b4408ba95502e5de"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f917707f0de0832b8ab582391b1f64e549995c6c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90435.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90435"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c"},{"fixed":"ccce6b7ef1d7efc59ccba3421e1339c6e63a3d20"},{"fixed":"d99622e40aaa910ade681dfd4dc0fa240a011331"},{"fixed":"c845e5e05140ea1bc64a5b1107942d93c876034d"},{"fixed":"42fb8aefffff5b458aaa66803364a16e0ea44129"},{"fixed":"d7fa2ff72ad1861eac194a4e0075d504ba8c246e"},{"fixed":"5b6cfc6d7ff0959dd9766fdc24286a253b59ca77"},{"fixed":"f917707f0de0832b8ab582391b1f64e549995c6c"},{"fixed":"dec47e4b0fe34afdf38caa72b4408ba95502e5de"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90435.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.11.0"},{"fixed":"5.10.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.221"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.52"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90435.json"}}],"schema_version":"1.9.0"}