CVE-2024-57890

Severity CVSS v4.0:
Pending analysis
Type:
CWE-190 Integer Overflow or Wraparound
Publication date:
15/01/2025
Last modified:
03/11/2025

Description

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 2.6.15 (including) 5.4.289 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.233 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.176 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.124 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.70 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.9 (excluding)
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*