CVE-2024-57890

RDMA/uverbs: Prevent integer overflow issue

MEDIUM
5.5
CVSS Score
Published: January 15, 2025 at 01:05 PM UTC
Updated: June 17, 2026 at 08:14 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.15 ≤ v < 5.10.2332.6.15 ≤ v < 5.15.1762.6.15 ≤ v < 5.4.2892.6.15 ≤ v < 6.1.1242.6.15 ≤ v < 6.12.92.6.15 ≤ v < 6.132.6.15 ≤ v < 6.6.705.11 ≤ v < 5.15.1765.16 ≤ v < 6.1.1245.5 ≤ v < 5.10.2336.2 ≤ v < 6.6.706.7 ≤ v < 6.12.96.13 rc16.13 rc26.13 rc36.13 rc46.13 rc567cdb40ca444c09853ab4d8a41cf547ac26a4de4
Vendor states this is fixed in 346db03e9926ab7117ed9bf19665699c037c773c (fixed)
Vendor states this is fixed in 42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608 (fixed)
Vendor states this is fixed in b3ef4ae713360501182695dd47d6b4f6e1a43eb8 (fixed)
Vendor states this is fixed in b92667f755749cf10d9ef1088865c555ae83ffb7 (fixed)
Vendor states this is fixed in c2f961c46ea0e5274c5c320d007c2dd949cf627a (fixed)
Vendor states this is fixed in c57721b24bd897338a81a0ca5fff41600f0f1ad1 (fixed)
Vendor states this is fixed in d0257e089d1bbd35c69b6c97ff73e3690ab149a9 (fixed)
Vendor states this is fixed in 2.6.15 (unaffected)
Vendor states this is fixed in 5.10.233 (unaffected)
Vendor states this is fixed in 5.15.176 (unaffected)
Vendor states this is fixed in 5.4.289 (unaffected)
Vendor states this is fixed in 6.1.124 (unaffected)
Vendor states this is fixed in 6.12.9 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.70 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/346db03e9926ab7117ed9bf19665699c037c773c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/42a6eb4ed7a9a41ba0b83eb0c7e0225b5fca5608
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b3ef4ae713360501182695dd47d6b4f6e1a43eb8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b92667f755749cf10d9ef1088865c555ae83ffb7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c2f961c46ea0e5274c5c320d007c2dd949cf627a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c57721b24bd897338a81a0ca5fff41600f0f1ad1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d0257e089d1bbd35c69b6c97ff73e3690ab149a9
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card