Vulnerability · Published Mar 18, 2024 · Assigned by Linux
CVE-2024-26640tcp: add sanity checks to rx zerocopy
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: tcp: add sanity checks to rx zerocopy TCP rx zerocopy intent is to map pages initially allocated from NIC drivers, not pages owned by a fs. This patch adds to can_map_frag() these additional checks: - Page must not be a compound one. - page->mapping must be NULL. This fixes the panic reported by ZhangPeng. syzbot was able to loopback packets built with sendfile(), mapping pages owned by an ext4 file to TCP rx zerocopy. r3 = socket$inet_tcp(0x2, 0x1, 0x0) mmap(&(0x7f0000ff9000/0x4000)=nil, 0x4000, 0x0, 0x12, r3, 0x0) r4 = socket$inet_tcp(0x2, 0x1, 0x0) bind$inet(r4, &(0x7f0000000000)={0x2, 0x4e24, @multicast1}, 0x10) connect$inet(r4, &(0x7f00000006c0)={0x2, 0x4e24, @empty}, 0x10) r5 = openat$dir(0xffffffffffffff9c, &(0x7f00000000c0)='./file0\x00', 0x181e42, 0x0) fallocate(r5, 0x0, 0x0, 0x85b8) sendfile(r4, r5, 0x0, 0x8ba0) getsockopt$inet_tcp_TCP_ZEROCOPY_RECEIVE(r4, 0x6, 0x23, &(0x7f00000001c0)={&(0x7f0000ffb000/0x3000)=nil, 0x3000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, &(0x7f0000000440)=0x40) r6 = openat$dir(0xffffffffffffff9c, &(0x7f00000000c0)='./file0\x00', 0x181e42, 0x0)
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | bpftool | 7.3.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-uki-virt | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-doc | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-headers | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-debug | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-debug-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-debug-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-debug-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-debug-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-debug-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-tools | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-tools-libs | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-tools-libs-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-uki-virt | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | libperf | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | perf | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | python3-perf | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | rtla | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | rv | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| Debian:12 | linux | 6.1.82-1 | DEBIAN-CVE-2024-26640 |
| Debian:13 | linux | 6.7.7-1 | DEBIAN-CVE-2024-26640 |
| Debian:14 | linux | 6.7.7-1 | DEBIAN-CVE-2024-26640 |
| Rocky Linux:9 | kernel | 0:5.14.0-427.42.1.el9_4 | RLSA-2024:8617 |
| Ubuntu:22.04:LTS | linux | 5.15.0-106.116 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1061.67 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1063.72 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1022.23~22.04.1 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1063.72.1 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1059.67 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1022.24~22.04.1 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1058.63 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1044.51 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | 6.5.0-41.41~22.04.2 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1054.57 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1057.63 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1058.63 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-106.116 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-41.41.1~22.04.1 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1054.55 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1021.22 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1026.26 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1015.15 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1024.25 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1059.65 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1024.24~22.04.1 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1054.57 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | 6.5.0-40.40.1~22.04.1 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1015.16~22.04.1 | UBUNTU-CVE-2024-26640 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1030.34 | UBUNTU-CVE-2024-26640 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 93ab6cc69162775201587cc9da00d5016dc890e2 – before f48bf9a83b1666d934247cb58a9887d7b3127b6f93ab6cc69162775201587cc9da00d5016dc890e2 – before 718f446e60316bf606946f7f42367d691d21541e93ab6cc69162775201587cc9da00d5016dc890e2 – before b383d4ea272fe5795877506dcce5aad1f6330e5e93ab6cc69162775201587cc9da00d5016dc890e2 – before d15cc0f66884ef2bed28c7ccbb11c102aa3a076093ab6cc69162775201587cc9da00d5016dc890e2 – before 1b8adcc0e2c584fec778add7777fe28e20781e6093ab6cc69162775201587cc9da00d5016dc890e2 – before 577e4432f3ac810049cb7e6b71f4d96ec7c6e894 |
| Linux | Linux | 4.18 |
References
- https://git.kernel.org/stable/c/f48bf9a83b1666d934247cb58a9887d7b3127b6f
- https://git.kernel.org/stable/c/718f446e60316bf606946f7f42367d691d21541e
- https://git.kernel.org/stable/c/b383d4ea272fe5795877506dcce5aad1f6330e5e
- https://git.kernel.org/stable/c/d15cc0f66884ef2bed28c7ccbb11c102aa3a0760
- https://git.kernel.org/stable/c/1b8adcc0e2c584fec778add7777fe28e20781e60
- https://git.kernel.org/stable/c/577e4432f3ac810049cb7e6b71f4d96ec7c6e894
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html x_transferred