[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025122459-CVE-2022-50775-6733@gregkh>
Date: Wed, 24 Dec 2025 14:06:26 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50775: RDMA/hns: Fix refcount leak in hns_roce_mmap
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix refcount leak in hns_roce_mmap
rdma_user_mmap_entry_get_pgoff() takes the reference.
Add missing rdma_user_mmap_entry_put() to release the reference.
Acked-by Haoyue Xu <xuhaoyue1@...ilicon.com>
The Linux kernel CVE team has assigned CVE-2022-50775 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.17 with commit 0045e0d3f42ed7d05434bb5bc16acfc793ea4891 and fixed in 6.1.16 with commit fa87cf2e756efe809ee8683d4f282f4de962dab6
Issue introduced in 5.17 with commit 0045e0d3f42ed7d05434bb5bc16acfc793ea4891 and fixed in 6.2.3 with commit 8abd2ff2256a2a99c11c7ecdcb5512429933620f
Issue introduced in 5.17 with commit 0045e0d3f42ed7d05434bb5bc16acfc793ea4891 and fixed in 6.3 with commit cf6a05c8494a8ae7fec8e5f1229b45ca5b4bcd30
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-50775
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/hw/hns/hns_roce_main.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/fa87cf2e756efe809ee8683d4f282f4de962dab6
https://git.kernel.org/stable/c/8abd2ff2256a2a99c11c7ecdcb5512429933620f
https://git.kernel.org/stable/c/cf6a05c8494a8ae7fec8e5f1229b45ca5b4bcd30
Powered by blists - more mailing lists