{"id":"CVE-2024-57890","state":"PUBLISHED","title":"RDMA/uverbs: Prevent integer overflow issue","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/uverbs: Prevent integer overflow issue\n\nIn the expression \"cmd.wqe_size * cmd.wr_count\", both variables are u32\nvalues that come from the user so the multiplication can lead to integer\nwrapping.  Then we pass the result to uverbs_request_next_ptr() which also\ncould potentially wrap.  The \"cmd.sge_count * sizeof(struct ib_uverbs_sge)\"\nmultiplication can also overflow on 32bit systems although it's fine on\n64bit systems.\n\nThis patch does two things.  First, I've re-arranged the condition in\nuverbs_request_next_ptr() so that the use controlled variable \"len\" is on\none side of the comparison by itself without any math.  Then I've modified\nall the callers to use size_mul() for the multiplications.","publishedAt":"2025-01-15T13:05:42.690Z","updatedAt":"2026-05-11T20:59:52.625Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"c57721b24bd897338a81a0ca5fff41600f0f1ad1","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"c2f961c46ea0e5274c5c320d007c2dd949cf627a","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"346db03e9926ab7117ed9bf19665699c037c773c","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"b92667f755749cf10d9ef1088865c555ae83ffb7","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"b3ef4ae713360501182695dd47d6b4f6e1a43eb8","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"d0257e089d1bbd35c69b6c97ff73e3690ab149a9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/uverbs_cmd.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.15","versionType":"semver"},{"version":"5.4.289","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.233","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.176","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.124","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.70","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.9","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/uverbs_cmd.c"]}],"references":["https://git.kernel.org/stable/c/c57721b24bd897338a81a0ca5fff41600f0f1ad1","https://git.kernel.org/stable/c/42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608","https://git.kernel.org/stable/c/c2f961c46ea0e5274c5c320d007c2dd949cf627a","https://git.kernel.org/stable/c/346db03e9926ab7117ed9bf19665699c037c773c","https://git.kernel.org/stable/c/b92667f755749cf10d9ef1088865c555ae83ffb7","https://git.kernel.org/stable/c/b3ef4ae713360501182695dd47d6b4f6e1a43eb8","https://git.kernel.org/stable/c/d0257e089d1bbd35c69b6c97ff73e3690ab149a9","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/57xxx/CVE-2024-57890.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-57890","state":"PUBLISHED","datePublished":"2025-01-15T13:05:42.690Z","dateUpdated":"2026-05-11T20:59:52.625Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-11T14:45:42.027Z"},"containers":{"cna":{"title":"RDMA/uverbs: Prevent integer overflow issue","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/uverbs: Prevent integer overflow issue\n\nIn the expression \"cmd.wqe_size * cmd.wr_count\", both variables are u32\nvalues that come from the user so the multiplication can lead to integer\nwrapping.  Then we pass the result to uverbs_request_next_ptr() which also\ncould potentially wrap.  The \"cmd.sge_count * sizeof(struct ib_uverbs_sge)\"\nmultiplication can also overflow on 32bit systems although it's fine on\n64bit systems.\n\nThis patch does two things.  First, I've re-arranged the condition in\nuverbs_request_next_ptr() so that the use controlled variable \"len\" is on\none side of the comparison by itself without any math.  Then I've modified\nall the callers to use size_mul() for the multiplications."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"c57721b24bd897338a81a0ca5fff41600f0f1ad1","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"c2f961c46ea0e5274c5c320d007c2dd949cf627a","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"346db03e9926ab7117ed9bf19665699c037c773c","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"b92667f755749cf10d9ef1088865c555ae83ffb7","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"b3ef4ae713360501182695dd47d6b4f6e1a43eb8","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","status":"affected","lessThan":"d0257e089d1bbd35c69b6c97ff73e3690ab149a9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/uverbs_cmd.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.15","versionType":"semver"},{"version":"5.4.289","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.233","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.176","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.124","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.70","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.9","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/uverbs_cmd.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c57721b24bd897338a81a0ca5fff41600f0f1ad1"},{"url":"https://git.kernel.org/stable/c/42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608"},{"url":"https://git.kernel.org/stable/c/c2f961c46ea0e5274c5c320d007c2dd949cf627a"},{"url":"https://git.kernel.org/stable/c/346db03e9926ab7117ed9bf19665699c037c773c"},{"url":"https://git.kernel.org/stable/c/b92667f755749cf10d9ef1088865c555ae83ffb7"},{"url":"https://git.kernel.org/stable/c/b3ef4ae713360501182695dd47d6b4f6e1a43eb8"},{"url":"https://git.kernel.org/stable/c/d0257e089d1bbd35c69b6c97ff73e3690ab149a9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:59:52.625Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"5.4.289"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"5.10.233"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"5.15.176"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.1.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.6.70"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.12.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-57890","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:54:43.293040Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","type":"CWE","description":"CWE-190 Integer Overflow or Wraparound"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:57:19.385Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:55:02.845Z"}}]}}}