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 1BB6325F995 for ; Thu, 17 Apr 2025 18:58:09 +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=1744916289; cv=none; b=qEvjlv9J0s80BI9RYeuB8KA20vfJif9ZutLRwc0pE8rnljtrlFhhfzC/ZxKSs2tZRkeUzqMA/sP+RNC0X1j4QdZC/kWKctUL4GTyTsRCem4VLMVp+5ozkKPIm2Opqi7HzzLsprO6IOEtxn30roJcwPKZgwMj2OMGUlDPjBPmI4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744916289; c=relaxed/simple; bh=tNNttVBAQ3HSJHSsHpFdydQpfJP71lq8zbQSgYNL6rQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ptRzcWwmEurfHS8E7Z1/5e7edxFl+3vjKCHh3swmtY6BNTnUxbw3zTdK+klkE+wvdDApUeOduWiH4NiZt87o6jKyxsxsPrB82n1hkxyzu39tEQhxUtY1ttrd2T38z1oYUYA72KgGyfV4cIKEeiHi3AyrN6Ds9VLQw/8+syvLHbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e0lasaHG; 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="e0lasaHG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A59A7C4CEEC; Thu, 17 Apr 2025 18:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744916289; bh=tNNttVBAQ3HSJHSsHpFdydQpfJP71lq8zbQSgYNL6rQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=e0lasaHG5hRg06TGc46/TebBz9GOGOaukKqAUYMt3nYmUGR5knaiiwzdpPCv3uw3+ tjnZhigGfDIE1HQz9MP5/djgBCEYZ01JQqkYUgm13rHM9tNcKjyrYDv50qONPRRx6a 9SmC5vpXVeMkYO8kI+sjI/yhACREfvbbYBx6Pjho= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47670: can: peak_usb: fix use after free bugs Date: Thu, 17 Apr 2025 20:01:36 +0200 Message-ID: <2025041734-CVE-2021-47670-2b77@gregkh> X-Mailer: git-send-email 2.49.0 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=2432; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d0hwK9fg9NRL6jvi7uR410mjTGWvqyTnCL9BdaJpNfA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmMjv8zt4R5MrF+UppgWTxbVzSztKXkY1ib6qzYimer0 y7GvN/UEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpEWWYnzGr50BztOGN1Rkr HzXfPHPv5F7mNob5vvmzBN64Hpmf+8ro0WmhwsPqYX8kAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: can: peak_usb: fix use after free bugs After calling peak_usb_netif_rx_ni(skb), dereferencing skb is unsafe. Especially, the can_frame cf which aliases skb memory is accessed after the peak_usb_netif_rx_ni(). Reordering the lines solves the issue. The Linux kernel CVE team has assigned CVE-2021-47670 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit 0a25e1f4f18566b750ebd3ae995af64e23111e63 and fixed in 4.19.171 with commit 5408824636fa0dfedb9ecb0d94abd573131bfbbe Issue introduced in 4.0 with commit 0a25e1f4f18566b750ebd3ae995af64e23111e63 and fixed in 5.4.93 with commit ddd1416f44130377798c1430b76503513b7497c2 Issue introduced in 4.0 with commit 0a25e1f4f18566b750ebd3ae995af64e23111e63 and fixed in 5.10.11 with commit ec939c13c3fff2114479769c8380b7f1a54feca9 Issue introduced in 4.0 with commit 0a25e1f4f18566b750ebd3ae995af64e23111e63 and fixed in 5.11 with commit 50aca891d7a554db0901b245167cd653d73aaa71 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-47670 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/can/usb/peak_usb/pcan_usb_fd.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/5408824636fa0dfedb9ecb0d94abd573131bfbbe https://git.kernel.org/stable/c/ddd1416f44130377798c1430b76503513b7497c2 https://git.kernel.org/stable/c/ec939c13c3fff2114479769c8380b7f1a54feca9 https://git.kernel.org/stable/c/50aca891d7a554db0901b245167cd653d73aaa71