CVE-2023-54168 RDMA/mlx4: Prevent shift wrapping in set_user_sq_size()

High 7.8 Published Updated

A user-controlled shift operation in the Linux kernel RDMA driver can wrap, potentially causing undefined behavior or denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-54168?

CVE-2023-54168 is a high-severity vulnerability in Linux, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/mlx4: Prevent shift wrapping in set_user_sq_size()

The ucmd->log_sq_bb_count variable is controlled by the user so this shift can wrap. Fix it by using check_shl_overflow() in the same way that it was done in commit 515f60004ed9 ("RDMA/hns: Prevent undefined behavior in hns_roce_set_user_sq_size()").

Which versions are affected by CVE-2023-54168?

How do I fix CVE-2023-54168?

Apply the vendor's patch.

Is CVE-2023-54168 being exploited?

There is no known exploitation of CVE-2023-54168 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2023-54168, DEBIAN-CVE-2023-54168, GHSA-54vr-v43g-gq47, UBUNTU-CVE-2023-54168.

Is CVE-2023-54168 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free