CVE-2024-57890 RDMA/uverbs: Prevent integer overflow issue
Integer overflow in Linux kernel RDMA/uverbs allows attackers to trigger memory corruption, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-57890?
CVE-2024-57890 is a medium-severity vulnerability in Linux kernel, published on 15 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-190
Which versions are affected by CVE-2024-57890?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-57890?
Apply the vendor's patch.
Is CVE-2024-57890 being exploited?
There is no known exploitation of CVE-2024-57890 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-55822, AZL-55853, BELL-CVE-2024-57890, DEBIAN-CVE-2024-57890, GHSA-h3c4-5g8f-wf66, UBUNTU-CVE-2024-57890.