From mboxrd@z Thu Jan 1 00:00:00 1970 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 8EE923FB88 for ; Wed, 19 Jun 2024 14:58:30 +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=1718809110; cv=none; b=kb9fMyHtFGAVNyJ9Yo6mN1NpEyosdeTYfZTcMNBuRXz43PbSZQ4eM+X5Iy1F9vDjvlpS9bT9mJgyOJKIVX3EF/Pdf7OjakDgI4BsoyhXtSPqozpFX5EG/FFhYK8SpxBw5IHzdRw7HSJPC69JIzZL9rTx+uB1uyupXDp/F01J6NQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718809110; c=relaxed/simple; bh=wCx/13T8+ftowB8DhtaixBMsLkWZdPt9Ojf7vDYf/7M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iKn9tPcZo2FPtm5cTqeOmjzyeWXmAfjOtemCfmLR1TPAPR+ugtmJlZy3noQsRSEQIDGFAuRwR62WtqydHWOFymyF91XITWqpLvRA/Wd/owP2spIf7Hi06chbzfBEEDFyJvvtr+p2KA1Rib/tydAlVugvEMucDhZtO6vJBTFZRxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y9pz9Qrh; 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="Y9pz9Qrh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14D93C2BBFC; Wed, 19 Jun 2024 14:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718809110; bh=wCx/13T8+ftowB8DhtaixBMsLkWZdPt9Ojf7vDYf/7M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y9pz9Qrhe+R6Gl6FyK+rrdox81IA3DImu/Lu7coe23VsPvAAix6XHFNDMThvEd8l2 FLvoWlrERVQt12i/vrGYFFMXFmxW13JObH/K70mnxcRHI1B5AnO7JxxJm4gI3Ph/ll p4KXFpzNMuJIYMq5Gjz8L01KfBJ4GkNLCNKn71gA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47614: RDMA/irdma: Fix a user-after-free in add_pble_prm Date: Wed, 19 Jun 2024 16:58:13 +0200 Message-ID: <2024061908-CVE-2021-47614-6dd2@gregkh> X-Mailer: git-send-email 2.45.2 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=1848; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wCx/13T8+ftowB8DhtaixBMsLkWZdPt9Ojf7vDYf/7M=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFnxj83parSL58L1Z48+rOoGP33vfulL6mqCTsYmomN jW1rvJWRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk7VqGOZw/L5auEdVk38jF /yHtLYfnApZJ9gwL9gRdkG6+IZYb/E/g0/R25uY87ylHAA== 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/irdma: Fix a user-after-free in add_pble_prm When irdma_hmc_sd_one fails, 'chunk' is freed while its still on the PBLE info list. Add the chunk entry to the PBLE info list only after successful setting of the SD in irdma_hmc_sd_one. The Linux kernel CVE team has assigned CVE-2021-47614 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit e8c4dbc2fcac and fixed in 5.15.10 with commit 11eebcf63e98 Issue introduced in 5.14 with commit e8c4dbc2fcac and fixed in 5.16 with commit 1e11a39a82e9 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-47614 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/irdma/pble.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/11eebcf63e98fcf047a876a51d76afdabc3b8b9b https://git.kernel.org/stable/c/1e11a39a82e95ce86f849f40dda0d9c0498cebd9