{"id":"CVE-2024-57890","aliases":["CVE-2024-57890"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/uverbs: Prevent integer overflow issue","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: RDMA/uverbs: Evitar problema de desbordamiento de enteros En la expresión \"cmd.wqe_size * cmd.wr_count\", ambas variables son valores u32 que provienen del usuario, por lo que la multiplicación puede provocar un encapsulamiento de enteros. Luego, pasamos el resultado a uverbs_request_next_ptr(), que también podría potencialmente encapsularse. La multiplicación \"cmd.sge_count * sizeof(struct ib_uverbs_sge)\" también puede desbordarse en sistemas de 32 bits, aunque está bien en sistemas de 64 bits. Este parche hace dos cosas. Primero, he reorganizado la condición en uverbs_request_next_ptr() para que la variable controlada por uso \"len\" esté en un lado de la comparación por sí misma sin ningún cálculo. Luego, he modificado todos los llamadores para usar size_mul() para las multiplicaciones.","source":"nvd"}],"published":"2025-01-15T13:05:42.690Z","modified":"2026-06-17T08:14:09.430Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","fixed":"c57721b24bd897338a81a0ca5fff41600f0f1ad1","status":"affected"},{"type":"git","introduced":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","fixed":"42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608","status":"affected"},{"type":"git","introduced":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","fixed":"c2f961c46ea0e5274c5c320d007c2dd949cf627a","status":"affected"},{"type":"git","introduced":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","fixed":"346db03e9926ab7117ed9bf19665699c037c773c","status":"affected"},{"type":"git","introduced":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","fixed":"b92667f755749cf10d9ef1088865c555ae83ffb7","status":"affected"},{"type":"git","introduced":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","fixed":"b3ef4ae713360501182695dd47d6b4f6e1a43eb8","status":"affected"},{"type":"git","introduced":"67cdb40ca444c09853ab4d8a41cf547ac26a4de4","fixed":"d0257e089d1bbd35c69b6c97ff73e3690ab149a9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.15","status":"unaffected"},{"type":"semver","introduced":"5.4.289","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.233","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.176","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.124","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.70","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.9","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.15","fixed":"5.4.289"},{"status":"affected","introduced":"5.5","fixed":"5.10.233"},{"status":"affected","introduced":"5.11","fixed":"5.15.176"},{"status":"affected","introduced":"5.16","fixed":"6.1.124"},{"status":"affected","introduced":"6.2","fixed":"6.6.70"},{"status":"affected","introduced":"6.7","fixed":"6.12.9"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c57721b24bd897338a81a0ca5fff41600f0f1ad1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2f961c46ea0e5274c5c320d007c2dd949cf627a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/346db03e9926ab7117ed9bf19665699c037c773c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b92667f755749cf10d9ef1088865c555ae83ffb7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3ef4ae713360501182695dd47d6b4f6e1a43eb8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0257e089d1bbd35c69b6c97ff73e3690ab149a9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:54:43.293Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-57890","url":"https://www.cve.org/CVERecord?id=CVE-2024-57890","licence":"CVE Terms of Use","modified":"2026-05-11T20:59:52.625Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-57890","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57890","licence":"Public domain","modified":"2026-06-17T08:14:09.430Z"}],"updatedAt":"2026-11-25T22:58:51.059Z","epss":{"score":0.0022,"percentile":0.13352,"date":"2026-12-01T12:00:22.000Z"}}