CVE-2022-49208
Severity CVSS v4.0:
Pending analysis
Type:
CWE-191
Integer Underflow (Wrap or Wraparound)
Publication date:
26/02/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
RDMA/irdma: Prevent some integer underflows<br />
<br />
My static checker complains that:<br />
<br />
drivers/infiniband/hw/irdma/ctrl.c:3605 irdma_sc_ceq_init()<br />
warn: can subtract underflow &#39;info->dev->hmc_fpm_misc.max_ceqs&#39;?<br />
<br />
It appears that "info->dev->hmc_fpm_misc.max_ceqs" comes from the firmware<br />
in irdma_sc_parse_fpm_query_buf() so, yes, there is a chance that it could<br />
be zero. Even if we trust the firmware, it&#39;s easy enough to change the<br />
condition just as a hardenning measure.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.14 (including) | 5.15.33 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.16.19 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.17 (including) | 5.17.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



