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 EEF41197543 for ; Tue, 16 Jul 2024 11:13:41 +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=1721128422; cv=none; b=BeL1qWaj/R0QwyPPymCajRBSjVDiYkmFOo9ZbHp1aPJtH5AEqkNGiDF03s4Uba8YcZISuUpDPEGcfHmd/GpPZ1KUqO4BjO/QRQ+pH4NT4MuyiLu0RGWsfgFUz+wMG2qsEurDk51ePaZ1kQtx/DwrCiVVhfJM10djPJ9vO1X35us= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721128422; c=relaxed/simple; bh=I+lfToYx1FzuQHd17/vnr45E87HOXN+lSKuimWq8I6k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cUfgvI/gxzoioR2uNloimfnJxnJN5NaFs4mDfsryCQg+wGs2bLtJx3cd5lQn31Bc0r040t82GA1vD18miMn7gphgtLasD7EnTiycaCRclZfT7zCMN/u0CyPlsIjir36gr9k81HwqJ4/L/affcJXKAoZS5qMyzocZfwpNHtadS10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yBqAmeum; 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="yBqAmeum" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D8AAC116B1; Tue, 16 Jul 2024 11:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721128421; bh=I+lfToYx1FzuQHd17/vnr45E87HOXN+lSKuimWq8I6k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yBqAmeumCHYRjgWfrUXwFl4vybJJEKLRlda6m22vOodd7o8Eyq+gKaTSGaZ4bFpuJ W+AkNRL92RK83lhtwsqTWPcvlGMZMzll4HXV1AKI75x12PXFs04eYMK/Ay/p7M2jl8 nQFW2Ei7L5MxQ162LZHLohabNkxRxuburku71IVY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48773: xprtrdma: fix pointer derefs in error cases of rpcrdma_ep_create Date: Tue, 16 Jul 2024 13:13:27 +0200 Message-ID: <2024071628-CVE-2022-48773-9563@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=1973; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=I+lfToYx1FzuQHd17/vnr45E87HOXN+lSKuimWq8I6k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTQm/ca4jgm8B83VSRi6t0esQ5mzrDEy69lTu3Hlvyl 09km/yvjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhItifDPJtiuRLu+f9dPnoK chS41Ry85hvpw7DgqukH9g/v3+3Jv1c36ame3OyDz3pXAAA= 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: xprtrdma: fix pointer derefs in error cases of rpcrdma_ep_create If there are failures then we must not leave the non-NULL pointers with the error value, otherwise `rpcrdma_ep_destroy` gets confused and tries free them, resulting in an Oops. The Linux kernel CVE team has assigned CVE-2022-48773 to this issue. Affected and fixed versions =========================== Fixed in 5.10.102 with commit 1e7433fb95cc Fixed in 5.15.25 with commit 9921c866dc36 Fixed in 5.16.11 with commit 2526d4d8b209 Fixed in 5.17 with commit a9c10b5b3b67 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-48773 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: net/sunrpc/xprtrdma/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/1e7433fb95ccc01629a5edaa4ced0cd8c98d0ae0 https://git.kernel.org/stable/c/9921c866dc369577c3ebb9adf2383b01b58c18de https://git.kernel.org/stable/c/2526d4d8b209dc5ac1fbeb468149774888b2a141 https://git.kernel.org/stable/c/a9c10b5b3b67b3750a10c8b089b2e05f5e176e33