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 E58FD146A97 for ; Tue, 21 May 2024 15:39:50 +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=1716305991; cv=none; b=aX7qA1GphyThxW1nzYnw4xeo6yUGO/ZdkegD03KklLFFkksfD3l9bIgmC4S4KHwsZunqAZDJHZwXOf+DoCWkAxls0BNGC4soLOObSOCdNOEd1lhtGZQcMCHb02b4jKa7olG3s1FUln3w162YNpfQi57QMCIrO/tJGU7uYLVCvmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305991; c=relaxed/simple; bh=BYTDWT53j4/cfF7XMl/TuRhxZUHbeuiGY7XJisfFIIk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AOtOS5Gxm3xBlAWKpvehwJ0OtraYl5BXZJrzLVlBQY4UnYan+Y65VBWwNICSv8+c83BIW2Kxau2bfpsyEh773Qx5i89BS3LNNpeYMEvdMEE5VSB2ECQCQP61I6ggvsnyV8Bm+REhAyPQH1QBMlIAsu7KkENpNOXEjoYnifQO3Kg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PFBrc287; 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="PFBrc287" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E872C2BD11; Tue, 21 May 2024 15:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305990; bh=BYTDWT53j4/cfF7XMl/TuRhxZUHbeuiGY7XJisfFIIk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PFBrc287EH1/S+MyEDGNnwppHHQ7mFYLB5WeqzVgdeskeW1m27rt+ygJSUITOHZQF OLVOf9vAjAqa17RjZJm9432p72QWs08nJbKbbvJ917StvdbNXwzj55WzxaUNmksjM3 UC8I4unOcF9x6/wXYY/ayFaSLAhzaT8cvk1pZFFI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52846: hsr: Prevent use after free in prp_create_tagged_frame() Date: Tue, 21 May 2024 17:32:22 +0200 Message-ID: <2024052113-CVE-2023-52846-c0ec@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=2555; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BYTDWT53j4/cfF7XMl/TuRhxZUHbeuiGY7XJisfFIIk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++xyP2i/MZtebkd9/cxdzguSsPVutYs0/GBT+bTBLv PB4jhV/RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkHCfD/Pzn759ycJ2Xn6k3 +XetoqIv55ayBoYFsz10LPzLM1ifPKysCZFosO54p/QHAA== 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: hsr: Prevent use after free in prp_create_tagged_frame() The prp_fill_rct() function can fail. In that situation, it frees the skb and returns NULL. Meanwhile on the success path, it returns the original skb. So it's straight forward to fix bug by using the returned value. The Linux kernel CVE team has assigned CVE-2023-52846 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 451d8123f897 and fixed in 5.10.201 with commit ddf4e04e946a Issue introduced in 5.9 with commit 451d8123f897 and fixed in 5.15.139 with commit a1a485e45d24 Issue introduced in 5.9 with commit 451d8123f897 and fixed in 6.1.63 with commit 6086258bd5ea Issue introduced in 5.9 with commit 451d8123f897 and fixed in 6.5.12 with commit 1787b9f0729d Issue introduced in 5.9 with commit 451d8123f897 and fixed in 6.6.2 with commit d103fb672690 Issue introduced in 5.9 with commit 451d8123f897 and fixed in 6.7 with commit 876f8ab52363 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-2023-52846 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/hsr/hsr_forward.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/ddf4e04e946aaa6c458b8b6829617cc44af2bffd https://git.kernel.org/stable/c/a1a485e45d24b1cd8fe834fd6f1b06e2903827da https://git.kernel.org/stable/c/6086258bd5ea7b5c706ff62da42b8e271b2401db https://git.kernel.org/stable/c/1787b9f0729d318d67cf7c5a95f0c3dba9a7cc18 https://git.kernel.org/stable/c/d103fb6726904e353b4773188ee3d3acb4078363 https://git.kernel.org/stable/c/876f8ab52363f649bcc74072157dfd7adfbabc0d