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 1C02E25F7A6 for ; Thu, 17 Apr 2025 18:58:06 +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=1744916286; cv=none; b=HnB25pvqu3Ogm5zV+GsRagCGeHRvHlZ4AwOoFGF6fxf96g/2fuqaaaCAHjOA5GqXDmhaGMqL/ys8HG508aqBfvCF0IRTDLozHl3kSUnn3b6O9La/qmGY3AHAcAe6AdtLqDa3PRkJcF2vWMl8k0/KVZdgKC20i3ineW72Snre68I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744916286; c=relaxed/simple; bh=Nfgofy1UjG0bb4KcKpsGB9oEH1s8+dCV7LUunjZJBXo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KG5rPx7mA6xtCdrEybQLUdB1bCRhSFmK3LUD+wbgupn/E2fTatyj/smhp/E7JHi0yDVtIrj3/BDiudiV4+unthQk1m4tobMSECPU2HHfNxR1826LZrmlb86db/RBYoLIrgHELc/3pUQM19zMFXf5w5pk1mw4ZTCtRrb/ZUCqIsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aiLoeABl; 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="aiLoeABl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F1DBC4CEEA; Thu, 17 Apr 2025 18:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744916286; bh=Nfgofy1UjG0bb4KcKpsGB9oEH1s8+dCV7LUunjZJBXo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aiLoeABlXki0UWp9m3/U9yBJXzNZzxikWCpVgzD2TWW5RIluxrIWMxzrvfLS26pJQ VB3JY90XjBF0+JeUYwbt/jOSOg4zN5AOXYQkczx80YtqSDtykxU/7UI6Tppwwh4hZ/ 5iP9ekw5MwwxzNM6s01qNPAF9hVtiuPuCcTpo/EY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47669: can: vxcan: vxcan_xmit: fix use after free bug Date: Thu, 17 Apr 2025 20:01:35 +0200 Message-ID: <2025041734-CVE-2021-47669-f268@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=2598; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XU4QGo5Q5ntmg2JIhhvnbH1KidXseeocDunhqSTHLsk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmMjv/yGcyK1G4khitLmpgqPAmz0lsnx3z+67rnl3lLy 35vuWPREcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJSWGYp/5mz2auvQ/5ckv2 Jz9vb3SfrPriOMP8oDmGfG2shfKXg6f3lHmwVdYlzP0AAA== 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: vxcan: vxcan_xmit: fix use after free bug After calling netif_rx_ni(skb), dereferencing skb is unsafe. Especially, the canfd_frame cfd which aliases skb memory is accessed after the netif_rx_ni(). The Linux kernel CVE team has assigned CVE-2021-47669 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit a8f820a380a2a06fc4fe1a54159067958f800929 and fixed in 4.14.218 with commit 6d6dcf2399cdd26f7f5426ca8dd8366b7f2ca105 Issue introduced in 4.12 with commit a8f820a380a2a06fc4fe1a54159067958f800929 and fixed in 4.19.171 with commit 9b820875a32a3443d67bfd368e93038354e98052 Issue introduced in 4.12 with commit a8f820a380a2a06fc4fe1a54159067958f800929 and fixed in 5.4.93 with commit a24476b37167816e6352ca1a2cf3769847774f70 Issue introduced in 4.12 with commit a8f820a380a2a06fc4fe1a54159067958f800929 and fixed in 5.10.11 with commit e771a874076115df8bff27d325edfd2340e4ec69 Issue introduced in 4.12 with commit a8f820a380a2a06fc4fe1a54159067958f800929 and fixed in 5.11 with commit 75854cad5d80976f6ea0f0431f8cedd3bcc475cb 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-47669 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/vxcan.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/6d6dcf2399cdd26f7f5426ca8dd8366b7f2ca105 https://git.kernel.org/stable/c/9b820875a32a3443d67bfd368e93038354e98052 https://git.kernel.org/stable/c/a24476b37167816e6352ca1a2cf3769847774f70 https://git.kernel.org/stable/c/e771a874076115df8bff27d325edfd2340e4ec69 https://git.kernel.org/stable/c/75854cad5d80976f6ea0f0431f8cedd3bcc475cb