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 B9D7A14264C for ; Tue, 21 May 2024 14:40:03 +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=1716302403; cv=none; b=EqTKKuEMdhtRTpDncvAGsb4TQDbltEkQEaSAf5FflDF7rTzaVVA5lydURsbG9icMHiN6qtuJazimMJ8TzgvJrf4r0zTQ33pwwrazMNzkkw3ZUIdn6JgOQsNh893fOuT45x34vNM+iUJWcodDwtGqrA9LhixjRHYN/+TBewVvd6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302403; c=relaxed/simple; bh=nngbPhvtMrIXkWMQTNvWb77fx82mVQNdCIGM+O5PvKo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QG/Xjy5umK2h3oheDQG4z4oUqTUs2a848OvWr8qPmq/6h8TbUTu8uf06jSKqehY8PRFlcrtj4gaZUz/bqHdHbS6FkV2ZKfUTptPDAXnZRhS1kN8mtPcPIfNsjXzHD1nTZetYcLCzytvZEc81DUDnGp9AhVdw4IUdHgwrpq7BG3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iZI54Aot; 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="iZI54Aot" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43E53C2BD11; Tue, 21 May 2024 14:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302403; bh=nngbPhvtMrIXkWMQTNvWb77fx82mVQNdCIGM+O5PvKo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iZI54AotwRqoVo/g76/jdKt5NSNqJhKkANr11i29BbaBceqnZI73y/WVTVtDZB8ay zy2cVOSpolbfbaacHmhD8s+SCNWPLSStp6y0g6ie5H5YhRh6Kk59DRG9A+04HK6D8r Z5uuHWcUUmdqidj/BSj+0WMu5j0mUg3ALag7Lz/o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47345: RDMA/cma: Fix rdma_resolve_route() memory leak Date: Tue, 21 May 2024 16:36:19 +0200 Message-ID: <2024052139-CVE-2021-47345-8da7@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2644; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nngbPhvtMrIXkWMQTNvWb77fx82mVQNdCIGM+O5PvKo=; b=kA0DAAIRMUfUDdst+ykByyZiAGZMsTujE6h3B65YajlULzFKf6OAqsE2WOHSkhgpMukpKcrDT ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmZMsTsACgkQMUfUDdst+ykF8gCgkxd3 vhXm0m8YuVrL/XRO0AL7RwAAoMtyRRngXbl54EWDCxSJIm0I+cCd X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: RDMA/cma: Fix rdma_resolve_route() memory leak Fix a memory leak when "mda_resolve_route() is called more than once on the same "rdma_cm_id". This is possible if cma_query_handler() triggers the RDMA_CM_EVENT_ROUTE_ERROR flow which puts the state machine back and allows rdma_resolve_route() to be called again. The Linux kernel CVE team has assigned CVE-2021-47345 to this issue. Affected and fixed versions =========================== Fixed in 4.4.276 with commit 40b613db3a95 Fixed in 4.9.276 with commit e2da8ce2a954 Fixed in 4.14.240 with commit e4e062da082a Fixed in 4.19.198 with commit 4893c938f2a1 Fixed in 5.4.133 with commit 032c68b4f5be Fixed in 5.10.51 with commit 3d08b5917984 Fixed in 5.12.18 with commit f4f553d67236 Fixed in 5.13.3 with commit 07583ba2e2d8 Fixed in 5.14 with commit 74f160ead74b 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-2021-47345 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/cma.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/40b613db3a95bc27998e4097d74c2f7e5d083a0b https://git.kernel.org/stable/c/e2da8ce2a9543f3ca5c93369bd1fe6eeb572101a https://git.kernel.org/stable/c/e4e062da082a199357ba4911145f331d40139ad8 https://git.kernel.org/stable/c/4893c938f2a140a74be91779e45e4a7fa111198f https://git.kernel.org/stable/c/032c68b4f5be128a2167f35b558b7cec88fe4972 https://git.kernel.org/stable/c/3d08b5917984f737f32d5bee9737b9075c3895c6 https://git.kernel.org/stable/c/f4f553d67236145fa5fd203ed7b35b9377e19939 https://git.kernel.org/stable/c/07583ba2e2d8947c3d365d97608cb436510885ac https://git.kernel.org/stable/c/74f160ead74bfe5f2b38afb4fcf86189f9ff40c9