[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022617-CVE-2022-49199-54e5@gregkh>
Date: Wed, 26 Feb 2025 02:56:44 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49199: RDMA/nldev: Prevent underflow in nldev_stat_set_counter_dynamic_doit()
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.
The Linux kernel CVE team has assigned CVE-2022-49199 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 3c3c1f1416392382faa0238e76a70d7810aab2ef and fixed in 5.16.19 with commit f6dd8669b8299a3a536cd92a7069152a7704da1d
Issue introduced in 5.16 with commit 3c3c1f1416392382faa0238e76a70d7810aab2ef and fixed in 5.17.2 with commit 2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771
Issue introduced in 5.16 with commit 3c3c1f1416392382faa0238e76a70d7810aab2ef and fixed in 5.18 with commit 87e0eacb176f9500c2063d140c0a1d7fa51ab8a5
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-49199
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/infiniband/core/nldev.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/f6dd8669b8299a3a536cd92a7069152a7704da1d
https://git.kernel.org/stable/c/2a495ef04d5f42e6f00eb2bec1ee9075e3d5a771
https://git.kernel.org/stable/c/87e0eacb176f9500c2063d140c0a1d7fa51ab8a5
Powered by blists - more mailing lists