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 12F8012D767 for ; Fri, 24 May 2024 15:13:27 +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=1716563607; cv=none; b=D0LUWeL/cMkW/Ur28d0/az7dOfW1mLDP1A+fLNVk2s67q2bgto1IE3gN2kq2At8JDbt4RPtwg4z1zCr/mlkqPrVK+J+N/JKOkVVsbyir7G7M74f5W07LBDMi15TMjUHJJlghTAIgFOLXXgUpebwn8p/4dJRbbUmKgDuFQZaHE/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563607; c=relaxed/simple; bh=RURg5eol3Ok9Hrc9p09554AoyQsPhGxY5urPYq0lwrI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OyyR2GlEjKv/6A3bOwAd2OFciE4gYAT9pc7kTC2k6bFHGXMsXtIxL9FB4UutSfwozrCFjuoD5+lF50QNorPhfhx0O2HNceYksiYfAhbqoPf3bGL148PPztZ1roWTkCvjAB0cNIIzGe3E78UhPb+PcZxAFUQLHDjD8pEbOG08BoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RkpiFve5; 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="RkpiFve5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E470C2BBFC; Fri, 24 May 2024 15:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563606; bh=RURg5eol3Ok9Hrc9p09554AoyQsPhGxY5urPYq0lwrI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RkpiFve5nYaxZK5f58m7+SB76lVjzkX8IFkIgE2LGmBuHsMkA8arIAoKmuzxkaQN6 VXmtklFNRPjetfck/4mmynxBA0HKSGr4JZBE1HR7SHllUrUZ35GwxzINXQW01LF5ch gHP83mi176WFDm31VdaOJgsSOuQdE4bZXif1E1yk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47564: net: marvell: prestera: fix double free issue on err path Date: Fri, 24 May 2024 17:12:56 +0200 Message-ID: <2024052452-CVE-2021-47564-2e3b@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=2778; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RURg5eol3Ok9Hrc9p09554AoyQsPhGxY5urPYq0lwrI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkB60oeuEXcj6lskerfuljxygehH7YvNuhp9B3LOGn5/ stlLo+YjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI9+UM8+OmMsm+fqFidr1Y 9LCrIueNb5WZdxnmCp6L6ZpdHijcq1ervUo8fkZWzuv7AA== 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: net: marvell: prestera: fix double free issue on err path fix error path handling in prestera_bridge_port_join() that cases prestera driver to crash (see below). Trace: Internal error: Oops: 96000044 [#1] SMP Modules linked in: prestera_pci prestera uio_pdrv_genirq CPU: 1 PID: 881 Comm: ip Not tainted 5.15.0 #1 pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : prestera_bridge_destroy+0x2c/0xb0 [prestera] lr : prestera_bridge_port_join+0x2cc/0x350 [prestera] sp : ffff800011a1b0f0 ... x2 : ffff000109ca6c80 x1 : dead000000000100 x0 : dead000000000122 Call trace: prestera_bridge_destroy+0x2c/0xb0 [prestera] prestera_bridge_port_join+0x2cc/0x350 [prestera] prestera_netdev_port_event.constprop.0+0x3c4/0x450 [prestera] prestera_netdev_event_handler+0xf4/0x110 [prestera] raw_notifier_call_chain+0x54/0x80 call_netdevice_notifiers_info+0x54/0xa0 __netdev_upper_dev_link+0x19c/0x380 The Linux kernel CVE team has assigned CVE-2021-47564 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit e1189d9a5fbe and fixed in 5.10.83 with commit 5dca8eff4627 Issue introduced in 5.10 with commit e1189d9a5fbe and fixed in 5.15.6 with commit 03e5203d2161 Issue introduced in 5.10 with commit e1189d9a5fbe and fixed in 5.16 with commit e8d032507cb7 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-47564 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/net/ethernet/marvell/prestera/prestera_switchdev.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/5dca8eff4627315df98feec09fff9dfe3356325e https://git.kernel.org/stable/c/03e5203d2161a00afe4d97d206d2293e40b2f253 https://git.kernel.org/stable/c/e8d032507cb7912baf1d3e0af54516f823befefd