Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 124C5344046 for ; Wed, 24 Dec 2025 13:09:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581775; cv=none; b=IYpzShFOKf7ZPkPcDlwYC9aOei9UpiPsXyQLAJLwKrbhkL8AJIVxU8TmMvN9pHdPv4qxQkUznD5yNJbtDTjPRvYLEVvw4ZezVzEbUBufTUxGhIjf2Lwz8QObpsSjV6DtLMkgpclpIGxJivLTBiw0Z0ZWh79le8MQfxcIZg6LYqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581775; c=relaxed/simple; bh=GYKhGwSJvzYKyw74Pz0891cBQiZAqXKuPbMRtGpfotk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hc+gR+gK9JKsJz0ftYnCPXRWfv0EhUXd3Grqh1wSW0DMWId+UkXgJJzfxKkETP/KWx3/X6CyV25bKsK9sALWScAxdl4GKm46V/JFG6DknNjf394yffDMJqmprq8q6U6UaXSonL0aB3YPfDiaKBrGK7lWBgwTwBGkafQuYO1PMPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n/o64Z9d; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="n/o64Z9d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C42AC4CEFB; Wed, 24 Dec 2025 13:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581774; bh=GYKhGwSJvzYKyw74Pz0891cBQiZAqXKuPbMRtGpfotk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=n/o64Z9dkNBn5zANhu5AX+I91avU5R53xSo+aCyDYPPr+2uZrwSt/ycufZ3ZTn54A 8/Zq0Pqa/BRRrAZvt7seoKfMjVjpZSYZ+YOzr3PRC7FYYgdCssYZjCGa+r3dB3Xxcn ZQB79nuJb9Xv6HQq4tTKPDHwb9fOvQ7A/BxsKUdU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50775: RDMA/hns: Fix refcount leak in hns_roce_mmap Date: Wed, 24 Dec 2025 14:06:26 +0100 Message-ID: <2025122459-CVE-2022-50775-6733@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2162; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0dveLmctkDf2l1IF5jkTG0HPai9qSaaIVkopOi70zto=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTy2e6s8xuj+TJ630gLKQIJtlrdcOM0udpD1T2Lh+M enlcBzsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImoVzLMlTpUdNUkmfXp7m9m 7sGKXMZ8fxcsZZjvwtuZFGtjNlM35JZUlaHCW8NAZyMA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 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