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 80C2312C559 for ; Fri, 24 May 2024 15:11:58 +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=1716563518; cv=none; b=Hgzvl2iW+kTOXVzDaw0s+/G5P5AKYj1prPoJQgoTRckDFHV6VjzQFW3//VoUvJ4ocDhk/t9jad3lOyPQwnzqiCA6GoTzkSY/mtgCz57bubFZKc2jArvKEB4xgemeksB+5aerM38egYJAT9hwZ9vMIffJr5gI2FgIILVYiQA9xGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563518; c=relaxed/simple; bh=Ncgx8wbcMSxQF9CxcPm8HH1rwDBgPlgxV5Sq/Ik5NK8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EFyRAtBQ4XEble8yUAzKV+wlYUXtlyr3eGz1PNEP9erf3n7bspSCNzgrpmuJOBO9bFbtnoVqf64T7rEzYhGfFLvXLWGwoGFTodU9192NwW77L3SrD6CjKEi6/fM/tETAGM71mAShurFVh5gXEJ7kDQUaW4OXHMoI3UJDvdJZMOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yb1wuqRc; 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="Yb1wuqRc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09FBDC2BBFC; Fri, 24 May 2024 15:11:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563518; bh=Ncgx8wbcMSxQF9CxcPm8HH1rwDBgPlgxV5Sq/Ik5NK8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Yb1wuqRcVAPV3xg/gBsjlIef5390qOJiafzbBVY/AdK20pehbgSG+4Lz3+uy0QIFN 3xYMpXf20DKlw7i2MHgYmKFfRPsoBKfTCPJZWTp2QZNFxU3/Gp6ciZ7gRDH9qIhPHb eS2SUwdUqe2m2U4jaf6CqIDg4Lygf16EtGD73nIo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47538: rxrpc: Fix rxrpc_local leak in rxrpc_lookup_peer() Date: Fri, 24 May 2024 17:09:58 +0200 Message-ID: <2024052438-CVE-2021-47538-5639@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=2391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ncgx8wbcMSxQF9CxcPm8HH1rwDBgPlgxV5Sq/Ik5NK8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBazdJ3o0rWCVnN9v9xD7ZzwLp/4ouJ/2I0jq2/iL77 4MaPkvsO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAix+UY5udH6iQkpdZUcGRV H7lV/Gj6h57j3xjmexruFXo2N3zZyw3hfQv0j7vfPJK7CwA= 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: rxrpc: Fix rxrpc_local leak in rxrpc_lookup_peer() Need to call rxrpc_put_local() for peer candidate before kfree() as it holds a ref to rxrpc_local. [DH: v2: Changed to abstract the peer freeing code out into a function] The Linux kernel CVE team has assigned CVE-2021-47538 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.82 with commit e8e51ce79c15 and fixed in 4.19.220 with commit 913c24af2d13 Issue introduced in 5.4 with commit 9ebeddef58c4 and fixed in 5.4.164 with commit 3e70e3a72d80 Issue introduced in 5.4 with commit 9ebeddef58c4 and fixed in 5.10.84 with commit 60f0b9c42cb8 Issue introduced in 5.4 with commit 9ebeddef58c4 and fixed in 5.15.7 with commit 9469273e616c Issue introduced in 5.4 with commit 9ebeddef58c4 and fixed in 5.16 with commit beacff50edbd Issue introduced in 5.3.9 with commit 9b7fc03b4cdb 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-47538 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/rxrpc/peer_object.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/913c24af2d13a3fd304462916ee98e298d56bdce https://git.kernel.org/stable/c/3e70e3a72d80b16094faccbe438cd53761c3503a https://git.kernel.org/stable/c/60f0b9c42cb80833a03ca57c1c8b078d716e71d1 https://git.kernel.org/stable/c/9469273e616ca8f1b6e3773c5019f21b4c8d828c https://git.kernel.org/stable/c/beacff50edbd6c9659a6f15fc7f6126909fade29