CVE-2024-57890
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-190CVE-2024-57890 is a Integer Overflow vulnerability
What is Integer Overflow?
The product performs a calculation that can produce an integer overflow, leading to unexpected values. Learn more on MITRE CWE
Affected versions
Linux kernel versions
2.6.15
and later are affected. Fixed in
5.4.289,
5.10.233,
5.15.176,
6.1.124,
6.6.70,
6.12.9,
6.13
and their respective stable series.
References
The following references provide additional information about CVE-2024-57890 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/346db03e9926ab7117ed9bf19665699c037c773c
-
PatchKernel patch commithttps://git.kernel.org/stable/c/42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608
-
PatchKernel patch commithttps://git.kernel.org/stable/c/b3ef4ae713360501182695dd47d6b4f6e1a43eb8
Frequently asked questions
-
What is CVE-2024-57890?
CVE-2024-57890 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Integer Overflow flaw (CWE-190) . It affects Linux kernel versions from 2.6.15 onward and has been patched in 5.4.289, 5.10.233, 5.15.176 and others. CVE-2024-57890 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-57890?
CVE-2024-57890 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-57890?
Yes — CVE-2024-57890 has been patched. Fixed versions include 5.4.289, 5.10.233, 5.15.176 and others. If you are running Linux kernel 2.6.15 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-57890 actively exploited?
No — CVE-2024-57890 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Integer Overflow (CWE-190)?
The product performs a calculation that can produce an integer overflow, leading to unexpected values. View CWE-190 on MITRE CWE →