# CVE-2022-49199: RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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 19% of CVEs (2026-12-02)
- Published: 2025-02-26T01:55:42.120Z
- Modified: 2026-06-17T05:17:21.737Z
- Weaknesses: CWE-191
- Assigned by: Linux

## Description

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

RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()

This code checks "index" for an upper bound but it does not check for
negatives.  Change the type to unsigned to prevent underflows.

(As written by CVE List.)

## Affected

- Linux Linux: from 3c3c1f1416392382faa0238e76a70d7810aab2ef before f6dd8669b8299a3a536cd92a7069152a7704da1d; from 3c3c1f1416392382faa0238e76a70d7810aab2ef before 2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771; from 3c3c1f1416392382faa0238e76a70d7810aab2ef before 87e0eacb176f9500c2063d140c0a1d7fa51ab8a5; 5.16 (not affected: before 5.16; 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.16 before 5.16.19; from 5.17 before 5.17.2

## References

- <https://git.kernel.org/stable/c/f6dd8669b8299a3a536cd92a7069152a7704da1d> (patch)
- <https://git.kernel.org/stable/c/2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771> (patch)
- <https://git.kernel.org/stable/c/87e0eacb176f9500c2063d140c0a1d7fa51ab8a5> (patch)

## Sources

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

---

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