{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-57890","id":"CVE-2024-57890","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_uve","descriptionLong":"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.","published":"2025-01-15T13:05:42.690Z","updated":"2026-10-28T02:30:55.944156372Z","reserved":"2025-01-11T14:45:42.027Z","status":"PUBLISHED","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","lessThan":"c57721b24bd897338a81a0ca5fff41600f0f1ad1","status":"affected","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","lessThan":"42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608","status":"affected","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","lessThan":"c2f961c46ea0e5274c5c320d007c2dd949cf627a","status":"affected","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","lessThan":"346db03e9926ab7117ed9bf19665699c037c773c","status":"affected","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","lessThan":"b92667f755749cf10d9ef1088865c555ae83ffb7","status":"affected","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","lessThan":"b3ef4ae713360501182695dd47d6b4f6e1a43eb8","status":"affected","versionType":"git"},{"version":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","lessThan":"d0257e089d1bbd35c69b6c97ff73e3690ab149a9","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.15","status":"affected"},{"version":"0","lessThan":"2.6.15","status":"unaffected","versionType":"semver"},{"version":"5.4.289","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.233","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.176","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.124","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.70","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.9","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-190"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/c57721b24bd897338a81a0ca5fff41600f0f1ad1","tags":["web"]},{"url":"https://git.kernel.org/stable/c/42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c2f961c46ea0e5274c5c320d007c2dd949cf627a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/346db03e9926ab7117ed9bf19665699c037c773c","tags":["web"]},{"url":"https://git.kernel.org/stable/c/b92667f755749cf10d9ef1088865c555ae83ffb7","tags":["web"]},{"url":"https://git.kernel.org/stable/c/b3ef4ae713360501182695dd47d6b4f6e1a43eb8","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d0257e089d1bbd35c69b6c97ff73e3690ab149a9","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57890.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57890","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0022,"epssPercentile":0.12801,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-57890","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57890","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-57890","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-57890","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}