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 CFD9521D3E2 for ; Tue, 30 Dec 2025 12:09:52 +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=1767096592; cv=none; b=IcsmGgFud3jDfeilkPwRBVIrj1wYGAD73MnNowAWHFOqVpT3CykWgYgn2nGDzLB93JTg6awXv+HyF3ws+mk3kkO33np4p9VQ/h63hdcMR2jP+HwZwNhg7gQEEb4jrN8NoB3GRPMyHunAJbFnePnizyls7EnW9gMxLZNFWY6o2O4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096592; c=relaxed/simple; bh=xsvCAP6i9a+CZR0QLgy1mBqMTCvFbxQ5OiHaYHQfvEk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oHmZMk+BdkkCf5u4z/IGVElcMtgDFKhMX3P9gJvYwDMwE+ZUw+kGWUPyYPT9wgsMIztQDZOexav/WeD9YeFB7ID4QiLfOUx52ixhcox0pPWlfERuMwGEhlqWSz3w/PCAHwBQmFsQ4cGdFDvdVEnes7Vat8LXQz+zKJ3hqQYTp84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A+BmhUvd; 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="A+BmhUvd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3B98C4CEFB; Tue, 30 Dec 2025 12:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096592; bh=xsvCAP6i9a+CZR0QLgy1mBqMTCvFbxQ5OiHaYHQfvEk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=A+BmhUvdTuU4jE2Tk8r9D+8WXkW9UHOp5GC076qmc/IMJ8p34ev2VnN+PuMvCNE+t mn/5uEXASiQ/kl+2VrtRDesZthn3+yMzDXl+Gh/OPXhXlF2jiaYzgxiN+7olQq5+9u UkUR17AiUW4vALptJJbK2Xr7sbZWrcsNpjQ/TyPk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50822: RDMA/restrack: Release MR restrack when delete Date: Tue, 30 Dec 2025 13:09:26 +0100 Message-ID: <2025123016-CVE-2022-50822-2187@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=2346; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rzYXqgX80d88lRrckar60YJMYkXZ6ybFQ9kuuAOA72k=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB96wzLCIu2Pd/s/finHji4nuXb0nZl0Km1+yNXTi+ zCh2bfVO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAigTwMC9bPD7v04tTmiAZH hSP6Cl/3K2oeVGKYXxHourw38sbsF47sXn7Hg2dPlRY7CwA= 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/restrack: Release MR restrack when delete The MR restrack also needs to be released when delete it, otherwise it cause memory leak as the task struct won't be released. The Linux kernel CVE team has assigned CVE-2022-50822 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 13ef5539def732dc7b9c58c320d97a0a95b52634 and fixed in 5.15.86 with commit 13586753ae55146269a6dc8b216f17d86b81560c Issue introduced in 5.10 with commit 13ef5539def732dc7b9c58c320d97a0a95b52634 and fixed in 6.0.16 with commit 37c90753079fc95d93cc31b79796dd2ae57ad018 Issue introduced in 5.10 with commit 13ef5539def732dc7b9c58c320d97a0a95b52634 and fixed in 6.1.2 with commit 8731cb5c7820bef577bab4ff17691fbf61c671cb Issue introduced in 5.10 with commit 13ef5539def732dc7b9c58c320d97a0a95b52634 and fixed in 6.2 with commit dac153f2802db1ad46207283cb9b2aae3d707a45 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-50822 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/restrack.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/13586753ae55146269a6dc8b216f17d86b81560c https://git.kernel.org/stable/c/37c90753079fc95d93cc31b79796dd2ae57ad018 https://git.kernel.org/stable/c/8731cb5c7820bef577bab4ff17691fbf61c671cb https://git.kernel.org/stable/c/dac153f2802db1ad46207283cb9b2aae3d707a45