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 1C20A1D416C for ; Tue, 30 Dec 2025 12:23:45 +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=1767097425; cv=none; b=gZ0X4+p7eVbd3jsr5Kr0YNxqc44UIxV/wwnk83O7jGX0mUq/lF/5yaVb5NLPVNReOzo9pO6zKI/eeAjmJiiGNIFHHJg1RCwWaGAEBJHxYjEqGCn12CqWaSnewVBAal1+YlFr9kJCwMeSEiffz02LZTKvDI46hnQjWOd+NpP870M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097425; c=relaxed/simple; bh=LjVhpvIiwtfrp7TqWs1QxmJ/iE7YY01mN3WKn0/eHEw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sZyGlhEC4yZm3s+IFRaG9uW+CuG3tHTmdJckkJXkyl2zH1wghyzDcSMR/RxLBdxPnjiJVYUHqvzE63NXbzWI9E/tZVlHP5Y6vg8MimseSGNKZR7wjH10srPT/dSqI32s2AjfmTGa+UE9KTcJcWlJ71/eBMcWzjS3V9eTF9V2bME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cWuy674r; 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="cWuy674r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A0AEC4CEFB; Tue, 30 Dec 2025 12:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097425; bh=LjVhpvIiwtfrp7TqWs1QxmJ/iE7YY01mN3WKn0/eHEw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=cWuy674rTFkv/8O3ys0QgzyNQMvgbLfkPCDTfhrMbxNXDYwD5DT4b4uczPHwYPzGv U2o6WhloIjX2HKja0G4emDCyguD/Lf7ydf5kR0nZsesSlDkkUXrRgJJCd/u3aVdBPZ TleIuDami7VFFeZLZkjuEYTQnWIiMVTSQJnYrj8Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50874: RDMA/erdma: Fix refcount leak in erdma_mmap Date: Tue, 30 Dec 2025 13:23:23 +0100 Message-ID: <2025123022-CVE-2022-50874-bd1d@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=2151; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SFDI0lxIku/NFWgeX+1XSQaWer7OtmaOzb7sMEY0Xzk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBR6zURew0tO33TbyfEXmxwCdi75L9tZd1U/+erfz1K o+z/61RRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwktpZhvkPzHstnHm0z1kid bPLbfissVo/1G8OCbo8/9rk5fxf5fWOWWDE55r62RMdeAA== 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/erdma: Fix refcount leak in erdma_mmap rdma_user_mmap_entry_get() take reference, we should release it when not need anymore, add the missing rdma_user_mmap_entry_put() in the error path to fix it. The Linux kernel CVE team has assigned CVE-2022-50874 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.1.16 with commit 8372207b009d6abdd60bb05624640bd86386599f Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.2.3 with commit 410f0f46ffca4d0102470c1e0c747ecfece4204c Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.3 with commit ee84146c05ad2316b9a7222d0ec4413e0bf30eeb 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-50874 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/erdma/erdma_verbs.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/8372207b009d6abdd60bb05624640bd86386599f https://git.kernel.org/stable/c/410f0f46ffca4d0102470c1e0c747ecfece4204c https://git.kernel.org/stable/c/ee84146c05ad2316b9a7222d0ec4413e0bf30eeb