CVE-2022-49199: RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()
In the Linux kernel, the following vulnerability has been resolved:
RDMA/nldev: Prevent underflow in nldevstatsetcounterdynamicdoit()
This code checks "index" for an upper bound but it does not check for negatives. Change the type to unsigned to prevent underflows.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.17.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Configuration
Change the index type in nldev_stat_set_counter_dynamic_doit() to unsigned to prevent negative values from causing an underflow.
Linux kernel RDMA/nldev index type = unsigned