{"id":"CVE-2026-74390","summary":"RDMA/irdma: Fix out-of-bounds write in irdma_copy_user_pgaddrs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Fix out-of-bounds write in irdma_copy_user_pgaddrs\n\nThe irdma_copy_user_pgaddrs function loops through all of the umem DMA\nblocks to populate the PBLEs and will stop when either the last DMA\nblock is reached or palloc-\u003etotal_cnt is reached. The issue is that\nthe logic for checking palloc-\u003etotal_cnt would only work for non-zero\nvalues.\n\nWhen irdma_setup_pbles is called with lvl==0, it\ncalls irdma_copy_user_pgaddrs with palloc-\u003etotal_cnt==0, which means\nthe only way to break out of the loop is to reach the last umem DMA\nblock, which means it could end up going beyond the fixed size of 4\niwmr-\u003epgaddrmem array that is used in the lvl==0 case.\n\nIn the case of QP/CQ/SRQ rings, the value of lvl is determined by a\nseparate input (for example, req.cq_pages in the case of a CQ). So,\nwe must perform explicit checking to ensure we don't overflow the\npgaddrmem array if the user provides a umem that consists of more\nblocks than their provided req.cq_pages.","modified":"2026-08-18T03:56:54.442555391Z","published":"2026-08-15T05:59:04.479Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74390.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/192a3be0e3759daa24af2841208b074ca6dbaabc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/424d51d33c7541a86934067c2c0538124687fc90"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4780f58672ee6328accd54a95f9c00683477e499"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5ebb3ed757be3e04cf803026004aa0beaeb13e9b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/79a20a8e201a779224b4bf115250a7713bde72c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f8f0d2099e3de1194e37dc933ae0c4206b09aaf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/abd27a977b419d584efa659488c22d2306987b29"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74390.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74390"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b48c24c2d710cf34810c555dcef883a3d35a9c08"},{"fixed":"4780f58672ee6328accd54a95f9c00683477e499"},{"fixed":"79a20a8e201a779224b4bf115250a7713bde72c0"},{"fixed":"9f8f0d2099e3de1194e37dc933ae0c4206b09aaf"},{"fixed":"192a3be0e3759daa24af2841208b074ca6dbaabc"},{"fixed":"424d51d33c7541a86934067c2c0538124687fc90"},{"fixed":"abd27a977b419d584efa659488c22d2306987b29"},{"fixed":"5ebb3ed757be3e04cf803026004aa0beaeb13e9b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74390.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74390.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}