CVE Database›CVE-2024-57890

CVE-2024-57890

kernel: RDMA/uverbs: Prevent integer overflow issue

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · January 15, 2025

Updated · October 30, 2026

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.

Statement

This vulnerability is rated as Moderate because it requires a local attacker to have access to the InfiniBand user verbs interface, typically restricted to specific hardware environments or configured RDMA fabrics. In typical Red Hat Enterprise Linux deployments, RDMA hardware or virtual interfaces are not present or enabled by default, limiting general exposure. Successful exploitation triggers an integer wrapping condition during request validation that can crash the system, resulting in a denial of service without compromising system confidentiality or integrity.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-190 · Integer Overflow or Wraparound