{"id":"CVE-2022-49208","aliases":["CVE-2022-49208"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/irdma: Prevent some integer underflows","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Prevent some integer underflows\n\nMy static checker complains that:\n\n    drivers/infiniband/hw/irdma/ctrl.c:3605 irdma_sc_ceq_init()\n    warn: can subtract underflow 'info->dev->hmc_fpm_misc.max_ceqs'?\n\nIt appears that \"info->dev->hmc_fpm_misc.max_ceqs\" comes from the firmware\nin irdma_sc_parse_fpm_query_buf() so, yes, there is a chance that it could\nbe zero.  Even if we trust the firmware, it's easy enough to change the\ncondition just as a hardenning measure.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Prevent some integer underflows\n\nMy static checker complains that:\n\n    drivers/infiniband/hw/irdma/ctrl.c:3605 irdma_sc_ceq_init()\n    warn: can subtract underflow 'info->dev->hmc_fpm_misc.max_ceqs'?\n\nIt appears that \"info->dev->hmc_fpm_misc.max_ceqs\" comes from the firmware\nin irdma_sc_parse_fpm_query_buf() so, yes, there is a chance that it could\nbe zero.  Even if we trust the firmware, it's easy enough to change the\ncondition just as a hardenning measure.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: RDMA/irdma: Evitar algunos desbordamientos de enteros Mi verificador estático se queja de que: drivers/infiniband/hw/irdma/ctrl.c:3605 irdma_sc_ceq_init() warn: can subtract underflow 'info-&gt;dev-&gt;hmc_fpm_misc.max_ceqs'? Parece que \"info-&gt;dev-&gt;hmc_fpm_misc.max_ceqs\" proviene del firmware en irdma_sc_parse_fpm_query_buf() así que, sí, existe la posibilidad de que sea cero. Incluso si confiamos en el firmware, es bastante fácil cambiar la condición como una medida de endurecimiento.","source":"nvd"}],"published":"2025-02-26T01:55:46.666Z","modified":"2026-06-17T05:17:23.187Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-191"],"affected":[{"ranges":[{"type":"git","introduced":"3f49d684256963d3f27dfb9d9ff228e2255be78d","fixed":"d52dab6e03550f9c97121b0c11c0a3ed78ee76a4","status":"affected"},{"type":"git","introduced":"3f49d684256963d3f27dfb9d9ff228e2255be78d","fixed":"f21056f15bbeacab7b4b87af232f5599d1f2bff1","status":"affected"},{"type":"git","introduced":"3f49d684256963d3f27dfb9d9ff228e2255be78d","fixed":"7340c3675d7ac946f4019b84cd7c64ed542dfe4c","status":"affected"},{"type":"git","introduced":"3f49d684256963d3f27dfb9d9ff228e2255be78d","fixed":"6f6dbb819dfc1a35bcb8b709b5c83a3ea8beff75","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.14","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d52dab6e03550f9c97121b0c11c0a3ed78ee76a4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f21056f15bbeacab7b4b87af232f5599d1f2bff1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7340c3675d7ac946f4019b84cd7c64ed542dfe4c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6f6dbb819dfc1a35bcb8b709b5c83a3ea8beff75","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:46:59.199Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49208","url":"https://www.cve.org/CVERecord?id=CVE-2022-49208","licence":"CVE Terms of Use","modified":"2026-05-11T18:55:14.183Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49208","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49208","licence":"Public domain","modified":"2026-06-17T05:17:23.187Z"}],"updatedAt":"2026-11-25T22:58:20.286Z","epss":{"score":0.00268,"percentile":0.20283,"date":"2026-12-01T12:00:22.000Z"}}