cbcvebase.
CVE-2024-57890
published 2025-01-15

CVE-2024-57890: In the Linux kernel, the following vulnerability has been resolved: RDMA/uverbs: Prevent integer overflow issue In the expression "cmd.wqe_size *…

PriorityP422medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.21%
12.0th percentile
In the Linux kernel, the following vulnerability has been resolved: RDMA/uverbs: Prevent integer overflow issue In the expression "cmd.wqe_size * cmd.wr_count", both variables are u32 values that come from the user so the multiplication can lead to integer wrapping. Then we pass the result to uverbs_request_next_ptr() which also could potentially wrap. The "cmd.sge_count * sizeof(struct ib_uverbs_sge)" multiplication can also overflow on 32bit systems although it's fine on 64bit systems. This patch does two things. First, I've re-arranged the condition in uverbs_request_next_ptr() so that the use controlled variable "len" is on one side of the comparison by itself without any math. Then I've modified all the callers to use size_mul() for the multiplications.

Affected

24 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.124-1 (bookworm)linux 6.1.124-1 (bookworm)
debianlinux-6.1< linux 6.1.124-1 (bookworm)linux 6.1.124-1 (bookworm)
linuxlinux
linuxlinux>= 67cdb40ca444c09853ab4d8a41cf547ac26a4de4 < c57721b24bd897338a81a0ca5fff41600f0f1ad1c57721b24bd897338a81a0ca5fff41600f0f1ad1
linuxlinux>= 67cdb40ca444c09853ab4d8a41cf547ac26a4de4 < 42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca560842a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608
linuxlinux>= 67cdb40ca444c09853ab4d8a41cf547ac26a4de4 < c2f961c46ea0e5274c5c320d007c2dd949cf627ac2f961c46ea0e5274c5c320d007c2dd949cf627a
linuxlinux>= 67cdb40ca444c09853ab4d8a41cf547ac26a4de4 < 346db03e9926ab7117ed9bf19665699c037c773c346db03e9926ab7117ed9bf19665699c037c773c
linuxlinux>= 67cdb40ca444c09853ab4d8a41cf547ac26a4de4 < b92667f755749cf10d9ef1088865c555ae83ffb7b92667f755749cf10d9ef1088865c555ae83ffb7
linuxlinux>= 67cdb40ca444c09853ab4d8a41cf547ac26a4de4 < b3ef4ae713360501182695dd47d6b4f6e1a43eb8b3ef4ae713360501182695dd47d6b4f6e1a43eb8
linuxlinux>= 67cdb40ca444c09853ab4d8a41cf547ac26a4de4 < d0257e089d1bbd35c69b6c97ff73e3690ab149a9d0257e089d1bbd35c69b6c97ff73e3690ab149a9
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.234-15.10.234-1
linuxlinux_kernel>= 0 < 6.1.124-16.1.124-1
linuxlinux_kernel>= 0 < 6.12.9-16.12.9-1
linuxlinux_kernel>= 0 < 6.12.9-16.12.9-1
linuxlinux_kernel>= 0 < 5.4.0-211.2315.4.0-211.231
linuxlinux_kernel>= 0 < 5.15.0-135.1465.15.0-135.146
linuxlinux_kernel>= 0 < 6.8.0-60.636.8.0-60.63
linuxlinux_kernel>= 2.6.15 < 5.4.2895.4.289
linuxlinux_kernel>= 5.11 < 5.15.1765.15.176
linuxlinux_kernel>= 5.16 < 6.1.1246.1.124
linuxlinux_kernel>= 5.5 < 5.10.2335.10.233
linuxlinux_kernel>= 6.2 < 6.6.706.6.70
linuxlinux_kernel>= 6.7 < 6.12.96.12.9

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.