Vulnerability · Published Apr 17, 2024 · Assigned by Linux
CVE-2024-26852net/ipv6: avoid possible UAF in ip6_route_mpath_notify()
High 7.8
In plain English
A high-severity use-after-free 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.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: net/ipv6: avoid possible UAF in ip6_route_mpath_notify() syzbot found another use-after-free in ip6_route_mpath_notify() [1] Commit f7225172f25a ("net/ipv6: prevent use after free in ip6_route_mpath_notify") was not able to fix the root cause. We need to defer the fib6_info_release() calls after ip6_route_mpath_notify(), in the cleanup phase. [1] BUG: KASAN: slab-use-after-free in rt6_fill_node+0x1460/0x1ac0 Read of size 4 at addr ffff88809a07fc64 by task syz-executor.2/23037 CPU: 0 PID: 23037 Comm: syz-executor.2 Not tainted 6.8.0-rc4-syzkaller-01035-gea7f3cfaa588 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0x167/0x540 mm/kasan/report.c:488 kasan_report+0x142/0x180 mm/kasan/report.c:601 rt6_fill_node+0x1460/0x1ac0 inet6_rt_notify+0x13b/0x290 net/ipv6/route.c:6184 ip6_route_mpath_notify net/ipv6/route.c:5198 [inline] ip6_route_multipath_add net/ipv6/route.c:5404 [inline] inet6_rtm_newroute+0x1d0f/0x2300 net/ipv6/route.c:5517 rtnetlink_rcv_msg+0x885/0x1040 net/core/rtnetlink.c:6597 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2543 netlink_unicast_kernel net/netlink/af_netlink.c:1341 [inline] netlink_unicast+0x7ea/0x980 net/netlink/af_netlink.c:1367 netlink_sendmsg+0xa3b/0xd70 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f73dd87dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f73de6550c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f73dd9ac050 RCX: 00007f73dd87dda9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000005 RBP: 00007f73dd8ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f73dd9ac050 R15: 00007ffdbdeb7858 </TASK> Allocated by task 23037: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:372 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:3981 [inline] __kmalloc+0x22e/0x490 mm/slub.c:3994 kmalloc include/linux/slab.h:594 [inline] kzalloc include/linux/slab.h:711 [inline] fib6_info_alloc+0x2e/0xf0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x445/0x12b0 net/ipv6/route.c:3758 ip6_route_multipath_add net/ipv6/route.c:5298 [inline] inet6_rtm_newroute+0x744/0x2300 net/ipv6/route.c:5517 rtnetlink_rcv_msg+0x885/0x1040 net/core/rtnetlink.c:6597 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2543 netlink_unicast_kernel net/netlink/af_netlink.c:1341 [inline] netlink_unicast+0x7ea/0x980 net/netlink/af_netlink.c:1367 netlink_sendmsg+0xa3b/0xd70 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 Freed by task 16: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x4e/0x60 mm/kasan/generic.c:640 poison_slab_object+0xa6/0xe0 m ---truncated---
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | bpftool | 7.3.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug-modules-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug-modules-extra | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-debug-uki-virt | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-devel-matched | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-doc | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-headers | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-modules | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-modules-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-modules-extra | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-debug | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-debug-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-debug-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-debug-modules | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-debug-modules-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-debug-modules-extra | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-modules | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-modules-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-rt-modules-extra | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-tools | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-tools-libs | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-tools-libs-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-uki-virt | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-zfcpdump | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-zfcpdump-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-zfcpdump-devel | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-zfcpdump-devel-matched | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-zfcpdump-modules | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-zfcpdump-modules-core | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | kernel-zfcpdump-modules-extra | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | libperf | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | perf | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | python3-perf | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | rtla | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| AlmaLinux:9 | rv | 5.14.0-427.28.1.el9_4 | ALSA-2024:4928 |
| Debian:12 | linux | 6.1.82-1 | DEBIAN-CVE-2024-26852 |
| Debian:13 | linux | 6.7.12-1 | DEBIAN-CVE-2024-26852 |
| Debian:14 | linux | 6.7.12-1 | DEBIAN-CVE-2024-26852 |
| Rocky Linux:9 | kernel | 0:5.14.0-427.28.1.el9_4.cloud.1.0 | RXSA-2024:4928 |
| Rocky Linux:9 | kernel | 0:5.14.0-427.28.1.el9_4 | RLSA-2024:4928 |
| Ubuntu:22.04:LTS | linux | 5.15.0-112.122 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1063.69 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1066.75 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1067.76.1 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1062.70 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1060.66 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1046.53 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1056.59 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1058.64 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1060.65 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-110.120 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1058.59 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1026.26 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1015.15 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1061.67 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1058.61 | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-26852 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1030.34 | UBUNTU-CVE-2024-26852 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3b1137fe74829e021f483756a648cbb87c8a1b4a – before 31ea5bcc7d4cd1423de6be327a2c0347257041363b1137fe74829e021f483756a648cbb87c8a1b4a – before 664f9c647260cc9d68b4e31d9899530d89dd045e3b1137fe74829e021f483756a648cbb87c8a1b4a – before 79ce2e54cc0ae366f45516c00bf1b19aa43e9abe3b1137fe74829e021f483756a648cbb87c8a1b4a – before cae3303257950d03ffec2df4a45e836f10d26c243b1137fe74829e021f483756a648cbb87c8a1b4a – before 394334fe2ae3b9f1e2332b873857e84cb28aac183b1137fe74829e021f483756a648cbb87c8a1b4a – before ed883060c38721ed828061f6c0c30e5147326c9a3b1137fe74829e021f483756a648cbb87c8a1b4a – before 61b34f73cdbdb8eaf9ea12e9e2eb3b29716c4dda3b1137fe74829e021f483756a648cbb87c8a1b4a – before 685f7d531264599b3f167f1e94bbd22f120e5fab |
| Linux | Linux | 4.11 |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/stable/c/31ea5bcc7d4cd1423de6be327a2c034725704136
- https://git.kernel.org/stable/c/664f9c647260cc9d68b4e31d9899530d89dd045e
- https://git.kernel.org/stable/c/79ce2e54cc0ae366f45516c00bf1b19aa43e9abe
- https://git.kernel.org/stable/c/cae3303257950d03ffec2df4a45e836f10d26c24
- https://git.kernel.org/stable/c/394334fe2ae3b9f1e2332b873857e84cb28aac18
- https://git.kernel.org/stable/c/ed883060c38721ed828061f6c0c30e5147326c9a
- https://git.kernel.org/stable/c/61b34f73cdbdb8eaf9ea12e9e2eb3b29716c4dda
- https://git.kernel.org/stable/c/685f7d531264599b3f167f1e94bbd22f120e5fab
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html x_transferred
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html