cve/2024/CVE-2024-57890.md
2025-09-29 16:08:36 +00:00

18 lines
1.3 KiB
Markdown

### [CVE-2024-57890](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-57890)
![](https://img.shields.io/static/v1?label=Product&message=Linux&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=67cdb40ca444c09853ab4d8a41cf547ac26a4de4%3C%20c57721b24bd897338a81a0ca5fff41600f0f1ad1%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### Description
In the Linux kernel, the following vulnerability has been resolved:RDMA/uverbs: Prevent integer overflow issueIn the expression "cmd.wqe_size * cmd.wr_count", both variables are u32values that come from the user so the multiplication can lead to integerwrapping. Then we pass the result to uverbs_request_next_ptr() which alsocould potentially wrap. The "cmd.sge_count * sizeof(struct ib_uverbs_sge)"multiplication can also overflow on 32bit systems although it's fine on64bit systems.This patch does two things. First, I've re-arranged the condition inuverbs_request_next_ptr() so that the use controlled variable "len" is onone side of the comparison by itself without any math. Then I've modifiedall the callers to use size_mul() for the multiplications.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/oogasawa/Utility-security