{"id":"CVE-2026-31491","state":"PUBLISHED","title":"RDMA/irdma: Harden depth calculation functions","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Harden depth calculation functions\n\nAn issue was exposed where OS can pass in U32_MAX for SQ/RQ/SRQ size.\nThis can cause integer overflow and truncation of SQ/RQ/SRQ depth\nreturning a success when it should have failed.\n\nHarden the functions to do all depth calculations and boundary\nchecking in u64 sizes.","publishedAt":"2026-04-22T13:54:14.905Z","updatedAt":"2026-05-11T22:09:45.736Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"563e1feb5f6ed579acb55850f1bbb831aecf645a","status":"affected","lessThan":"3f08351de5ca4f2f724b86ad252fbc21289467e1","versionType":"git"},{"version":"563e1feb5f6ed579acb55850f1bbb831aecf645a","status":"affected","lessThan":"cbd852f5700eb3f64392452faf693ac45cae8281","versionType":"git"},{"version":"563e1feb5f6ed579acb55850f1bbb831aecf645a","status":"affected","lessThan":"e37afcb56ae070477741fe2d6e61fc0c542cce2d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/uk.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/uk.c"]}],"references":["https://git.kernel.org/stable/c/3f08351de5ca4f2f724b86ad252fbc21289467e1","https://git.kernel.org/stable/c/cbd852f5700eb3f64392452faf693ac45cae8281","https://git.kernel.org/stable/c/e37afcb56ae070477741fe2d6e61fc0c542cce2d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31491.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31491","state":"PUBLISHED","datePublished":"2026-04-22T13:54:14.905Z","dateUpdated":"2026-05-11T22:09:45.736Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.102Z"},"containers":{"cna":{"title":"RDMA/irdma: Harden depth calculation functions","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Harden depth calculation functions\n\nAn issue was exposed where OS can pass in U32_MAX for SQ/RQ/SRQ size.\nThis can cause integer overflow and truncation of SQ/RQ/SRQ depth\nreturning a success when it should have failed.\n\nHarden the functions to do all depth calculations and boundary\nchecking in u64 sizes."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"563e1feb5f6ed579acb55850f1bbb831aecf645a","status":"affected","lessThan":"3f08351de5ca4f2f724b86ad252fbc21289467e1","versionType":"git"},{"version":"563e1feb5f6ed579acb55850f1bbb831aecf645a","status":"affected","lessThan":"cbd852f5700eb3f64392452faf693ac45cae8281","versionType":"git"},{"version":"563e1feb5f6ed579acb55850f1bbb831aecf645a","status":"affected","lessThan":"e37afcb56ae070477741fe2d6e61fc0c542cce2d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/uk.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/irdma/uk.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3f08351de5ca4f2f724b86ad252fbc21289467e1"},{"url":"https://git.kernel.org/stable/c/cbd852f5700eb3f64392452faf693ac45cae8281"},{"url":"https://git.kernel.org/stable/c/e37afcb56ae070477741fe2d6e61fc0c542cce2d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:09:45.736Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.19.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}