CVE-2022-49208 RDMA/irdma: Prevent some integer underflows
An integer underflow in the Linux kernel RDMA driver could lead to a denial of service if firmware provides unexpected values.
- 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-2022-49208?
CVE-2022-49208 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 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/irdma: Prevent some integer underflows
My static checker complains that:
drivers/infiniband/hw/irdma/ctrl.c:3605 irdma_sc_ceq_init() warn: can subtract underflow 'info->dev->hmc_fpm_misc.max_ceqs'?
It appears that "info->dev->hmc_fpm_misc.max_ceqs" comes from the firmware in irdma_sc_parse_fpm_query_buf() so, yes, there is a chance that it could be zero. Even if we trust the firmware, it's easy enough to change the condition just as a hardenning measure.
Weakness: CWE-191
Which versions are affected by CVE-2022-49208?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49208?
Apply the vendor's patch.
Is CVE-2022-49208 being exploited?
There is no known exploitation of CVE-2022-49208 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49208, GHSA-xcwv-gj8q-63vm, UBUNTU-CVE-2022-49208.