| From bippy-1.0.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2021-47669: can: vxcan: vxcan_xmit: fix use after free bug |
| |
| 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 |