CVE-2022-48830
EUVD-2022-5370916.07.2024, 12:15
In the Linux kernel, the following vulnerability has been resolved: can: isotp: fix potential CAN frame reception race in isotp_rcv() When receiving a CAN frame the current code logic does not consider concurrently receiving processes which do not show up in real world usage. Ziyang Xuan writes: The following syz problem is one of the scenarios. so->rx.len is changed by isotp_rcv_ff() during isotp_rcv_cf(), so->rx.len equals 0 before alloc_skb() and equals 4096 after alloc_skb(). That will trigger skb_over_panic() in skb_put(). ======================================================= CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 5.16.0-rc8-syzkaller #0 RIP: 0010:skb_panic+0x16c/0x16e net/core/skbuff.c:113 Call Trace: <TASK> skb_over_panic net/core/skbuff.c:118 [inline] skb_put.cold+0x24/0x24 net/core/skbuff.c:1990 isotp_rcv_cf net/can/isotp.c:570 [inline] isotp_rcv+0xa38/0x1e30 net/can/isotp.c:668 deliver net/can/af_can.c:574 [inline] can_rcv_filter+0x445/0x8d0 net/can/af_can.c:635 can_receive+0x31d/0x580 net/can/af_can.c:665 can_rcv+0x120/0x1c0 net/can/af_can.c:696 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5465 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5579 Therefore we make sure the state changes and data structures stay consistent at CAN frame reception time by adding a spin_lock in isotp_rcv(). This fixes the issue reported by syzkaller but does not affect real world operation.
Affected Products (NVD)
| Vendor | Product | Version |
|---|---|---|
| linux | linux_kernel | 5.10 ≤ 𝑥 < 5.10.101 |
| linux | linux_kernel | 5.11 ≤ 𝑥 < 5.15.24 |
| linux | linux_kernel | 5.16 ≤ 𝑥 < 5.16.10 |
| linux | linux_kernel | 5.17:rc1 |
| linux | linux_kernel | 5.17:rc2 |
| linux | linux_kernel | 5.17:rc3 |
𝑥
= Vulnerable software versions
Debian Releases
Ubuntu Releases
Ubuntu Product | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| linux |
| ||||||||||||
| linux-allwinner-5.19 |
| ||||||||||||
| linux-aws |
| ||||||||||||
| linux-aws-5.0 |
| ||||||||||||
| linux-aws-5.11 |
| ||||||||||||
| linux-aws-5.13 |
| ||||||||||||
| linux-aws-5.15 |
| ||||||||||||
| linux-aws-5.19 |
| ||||||||||||
| linux-aws-5.3 |
| ||||||||||||
| linux-aws-5.4 |
| ||||||||||||
| linux-aws-5.8 |
| ||||||||||||
| linux-aws-6.2 |
| ||||||||||||
| linux-aws-6.5 |
| ||||||||||||
| linux-aws-fips |
| ||||||||||||
| linux-aws-hwe |
| ||||||||||||
| linux-azure |
| ||||||||||||
| linux-azure-4.15 |
| ||||||||||||
| linux-azure-5.11 |
| ||||||||||||
| linux-azure-5.13 |
| ||||||||||||
| linux-azure-5.15 |
| ||||||||||||
| linux-azure-5.19 |
| ||||||||||||
| linux-azure-5.3 |
| ||||||||||||
| linux-azure-5.4 |
| ||||||||||||
| linux-azure-5.8 |
| ||||||||||||
| linux-azure-6.2 |
| ||||||||||||
| linux-azure-6.5 |
| ||||||||||||
| linux-azure-edge |
| ||||||||||||
| linux-azure-fde |
| ||||||||||||
| linux-azure-fde-5.15 |
| ||||||||||||
| linux-azure-fde-5.19 |
| ||||||||||||
| linux-azure-fde-6.2 |
| ||||||||||||
| linux-azure-fips |
| ||||||||||||
| linux-bluefield |
| ||||||||||||
| linux-fips |
| ||||||||||||
| linux-gcp |
| ||||||||||||
| linux-gcp-4.15 |
| ||||||||||||
| linux-gcp-5.11 |
| ||||||||||||
| linux-gcp-5.13 |
| ||||||||||||
| linux-gcp-5.15 |
| ||||||||||||
| linux-gcp-5.19 |
| ||||||||||||
| linux-gcp-5.3 |
| ||||||||||||
| linux-gcp-5.4 |
| ||||||||||||
| linux-gcp-5.8 |
| ||||||||||||
| linux-gcp-6.2 |
| ||||||||||||
| linux-gcp-6.5 |
| ||||||||||||
| linux-gcp-fips |
| ||||||||||||
| linux-gke |
| ||||||||||||
| linux-gke-4.15 |
| ||||||||||||
| linux-gke-5.15 |
| ||||||||||||
| linux-gke-5.4 |
| ||||||||||||
| linux-gkeop |
| ||||||||||||
| linux-gkeop-5.15 |
| ||||||||||||
| linux-gkeop-5.4 |
| ||||||||||||
| linux-hwe |
| ||||||||||||
| linux-hwe-5.11 |
| ||||||||||||
| linux-hwe-5.13 |
| ||||||||||||
| linux-hwe-5.15 |
| ||||||||||||
| linux-hwe-5.19 |
| ||||||||||||
| linux-hwe-5.4 |
| ||||||||||||
| linux-hwe-5.8 |
| ||||||||||||
| linux-hwe-6.2 |
| ||||||||||||
| linux-hwe-6.5 |
| ||||||||||||
| linux-hwe-6.8 |
| ||||||||||||
| linux-hwe-edge |
| ||||||||||||
| linux-ibm |
| ||||||||||||
| linux-ibm-5.15 |
| ||||||||||||
| linux-ibm-5.4 |
| ||||||||||||
| linux-intel |
| ||||||||||||
| linux-intel-5.13 |
| ||||||||||||
| linux-intel-iot-realtime |
| ||||||||||||
| linux-intel-iotg |
| ||||||||||||
| linux-intel-iotg-5.15 |
| ||||||||||||
| linux-iot |
| ||||||||||||
| linux-kvm |
| ||||||||||||
| linux-lowlatency |
| ||||||||||||
| linux-lowlatency-hwe-5.15 |
| ||||||||||||
| linux-lowlatency-hwe-5.19 |
| ||||||||||||
| linux-lowlatency-hwe-6.2 |
| ||||||||||||
| linux-lowlatency-hwe-6.5 |
| ||||||||||||
| linux-lowlatency-hwe-6.8 |
| ||||||||||||
| linux-lts-xenial |
| ||||||||||||
| linux-nvidia |
| ||||||||||||
| linux-nvidia-6.2 |
| ||||||||||||
| linux-nvidia-6.5 |
| ||||||||||||
| linux-nvidia-6.8 |
| ||||||||||||
| linux-nvidia-lowlatency |
| ||||||||||||
| linux-oem |
| ||||||||||||
| linux-oem-5.10 |
| ||||||||||||
| linux-oem-5.13 |
| ||||||||||||
| linux-oem-5.14 |
| ||||||||||||
| linux-oem-5.17 |
| ||||||||||||
| linux-oem-5.6 |
| ||||||||||||
| linux-oem-6.0 |
| ||||||||||||
| linux-oem-6.1 |
| ||||||||||||
| linux-oem-6.5 |
| ||||||||||||
| linux-oem-6.8 |
| ||||||||||||
| linux-oracle |
| ||||||||||||
| linux-oracle-5.0 |
| ||||||||||||
| linux-oracle-5.11 |
| ||||||||||||
| linux-oracle-5.13 |
| ||||||||||||
| linux-oracle-5.15 |
| ||||||||||||
| linux-oracle-5.3 |
| ||||||||||||
| linux-oracle-5.4 |
| ||||||||||||
| linux-oracle-5.8 |
| ||||||||||||
| linux-oracle-6.5 |
| ||||||||||||
| linux-raspi |
| ||||||||||||
| linux-raspi-5.4 |
| ||||||||||||
| linux-raspi-realtime |
| ||||||||||||
| linux-raspi2 |
| ||||||||||||
| linux-realtime |
| ||||||||||||
| linux-riscv |
| ||||||||||||
| linux-riscv-5.11 |
| ||||||||||||
| linux-riscv-5.15 |
| ||||||||||||
| linux-riscv-5.19 |
| ||||||||||||
| linux-riscv-5.8 |
| ||||||||||||
| linux-riscv-6.5 |
| ||||||||||||
| linux-riscv-6.8 |
| ||||||||||||
| linux-starfive-5.19 |
| ||||||||||||
| linux-starfive-6.2 |
| ||||||||||||
| linux-starfive-6.5 |
| ||||||||||||
| linux-xilinx-zynqmp |
|
openSUSE / SLES Releases
openSUSE Product | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| kernel-64kb |
| ||||||||
| kernel-azure |
| ||||||||
| kernel-default |
| ||||||||
| kernel-default-base |
| ||||||||
| kernel-docs |
| ||||||||
| kernel-macros |
| ||||||||
| kernel-obs-build |
| ||||||||
| kernel-source |
| ||||||||
| kernel-source-azure |
| ||||||||
| kernel-syms |
| ||||||||
| kernel-syms-azure |
| ||||||||
| kernel-zfcpdump |
| ||||||||
| reiserfs-kmp-default |
|
Red Hat Enterprise Linux Releases
Red Hat Product | |||
|---|---|---|---|
| kernel |
| ||
| kernel-64k |
| ||
| kernel-64k-core |
| ||
| kernel-64k-debug |
| ||
| kernel-64k-debug-core |
| ||
| kernel-64k-debug-devel |
| ||
| kernel-64k-debug-devel-matched |
| ||
| kernel-64k-debug-modules |
| ||
| kernel-64k-debug-modules-core |
| ||
| kernel-64k-debug-modules-extra |
| ||
| kernel-64k-devel |
| ||
| kernel-64k-devel-matched |
| ||
| kernel-64k-modules |
| ||
| kernel-64k-modules-core |
| ||
| kernel-64k-modules-extra |
| ||
| kernel-abi-stablelists |
| ||
| kernel-core |
| ||
| kernel-debug |
| ||
| kernel-debug-core |
| ||
| kernel-debug-devel |
| ||
| kernel-debug-devel-matched |
| ||
| kernel-debug-modules |
| ||
| kernel-debug-modules-core |
| ||
| kernel-debug-modules-extra |
| ||
| kernel-debug-uki-virt |
| ||
| kernel-devel |
| ||
| kernel-devel-matched |
| ||
| kernel-doc |
| ||
| kernel-modules |
| ||
| kernel-modules-core |
| ||
| kernel-modules-extra |
| ||
| kernel-rt |
| ||
| kernel-rt-64k |
| ||
| kernel-rt-64k-core |
| ||
| kernel-rt-64k-debug |
| ||
| kernel-rt-64k-debug-core |
| ||
| kernel-rt-64k-debug-devel |
| ||
| kernel-rt-64k-debug-modules |
| ||
| kernel-rt-64k-debug-modules-core |
| ||
| kernel-rt-64k-debug-modules-extra |
| ||
| kernel-rt-64k-devel |
| ||
| kernel-rt-64k-modules |
| ||
| kernel-rt-64k-modules-core |
| ||
| kernel-rt-64k-modules-extra |
| ||
| kernel-rt-core |
| ||
| kernel-rt-debug |
| ||
| kernel-rt-debug-core |
| ||
| kernel-rt-debug-devel |
| ||
| kernel-rt-debug-modules |
| ||
| kernel-rt-debug-modules-core |
| ||
| kernel-rt-debug-modules-extra |
| ||
| kernel-rt-devel |
| ||
| kernel-rt-modules |
| ||
| kernel-rt-modules-core |
| ||
| kernel-rt-modules-extra |
| ||
| kernel-tools |
| ||
| kernel-tools-libs |
| ||
| kernel-tools-libs-devel |
| ||
| kernel-uki-virt |
| ||
| kernel-uki-virt-addons |
| ||
| kernel-zfcpdump |
| ||
| kernel-zfcpdump-core |
| ||
| kernel-zfcpdump-devel |
| ||
| kernel-zfcpdump-devel-matched |
| ||
| kernel-zfcpdump-modules |
| ||
| kernel-zfcpdump-modules-core |
| ||
| kernel-zfcpdump-modules-extra |
| ||
| libperf |
| ||
| perf |
| ||
| python3-perf |
| ||
| rtla |
| ||
| rv |
|
References