# CVE-2022-49208: RDMA/irdma: Prevent some integer underflows

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:46.666Z
- Modified: 2026-06-17T05:17:23.187Z
- Weaknesses: CWE-191
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3f49d684256963d3f27dfb9d9ff228e2255be78d before d52dab6e03550f9c97121b0c11c0a3ed78ee76a4; from 3f49d684256963d3f27dfb9d9ff228e2255be78d before f21056f15bbeacab7b4b87af232f5599d1f2bff1; from 3f49d684256963d3f27dfb9d9ff228e2255be78d before 7340c3675d7ac946f4019b84cd7c64ed542dfe4c; from 3f49d684256963d3f27dfb9d9ff228e2255be78d before 6f6dbb819dfc1a35bcb8b709b5c83a3ea8beff75; 5.14 (not affected: before 5.14; from 5.15.33 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.14 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d52dab6e03550f9c97121b0c11c0a3ed78ee76a4> (patch)
- <https://git.kernel.org/stable/c/f21056f15bbeacab7b4b87af232f5599d1f2bff1> (patch)
- <https://git.kernel.org/stable/c/7340c3675d7ac946f4019b84cd7c64ed542dfe4c> (patch)
- <https://git.kernel.org/stable/c/6f6dbb819dfc1a35bcb8b709b5c83a3ea8beff75> (patch)

## Sources

- CVE List: [CVE-2022-49208](https://www.cve.org/CVERecord?id=CVE-2022-49208), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49208](https://nvd.nist.gov/vuln/detail/CVE-2022-49208), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49208 · Whole record: https://cve.day/CVE-2022-49208.json · Rebuilt by cve.day 2026-11-25T22:58:20.286Z
