CVE-2021-47238
Fixed in a distro release EPSS <1%CVSS 5.5
In the Linux kernel, the following vulnerability has been resolved: net: ipv4: fix memory leak in ip_mc_add1_src BUG: memory leak unreferenced object 0xffff888101bc4c00 (size 32): comm "syz-executor527", pid 360, jiffies 4294807421 (age 19.329s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 01 00 00 00 00 00 00 00 ac 14 14 bb 00 00 02 00 ................ backtrace: [<00000000f17c5244>] kmalloc include/linux/slab.h:558 [inline] [<00000000f17c5244>] kzalloc include/linux/slab.h:688 [inline] [<00000000f17c5244>] ip_mc_add1_src net/ipv4/igmp.c:1971 [inline] [<00000000f17c5244>] ip_mc_add_src+0x95f/0xdb0 net/ipv4/igmp.c:2095 [<000000001cb99709>] ip_mc_source+0x84c/0xea0 net/ipv4/igmp.c:2416 [<0000000052cf19ed>] do_ip_setsockopt net/ipv4/ip_sockglue.c:1294 [inline] [<0000000052cf19ed>] ip_setsockopt+0x114b/0x30c0 net/ipv4/ip_sockglue.c:1423 [<00000000477edfbc>] raw_setsockopt+0x13d/0x170 net/ipv4/raw.c:857 [<00000000e75ca9bb>] __sys_setsockopt+0x158/0x270 net/socket.c:2117 [<00000000bdb993a8>] __do_sys_setsockopt net/socket.c:2128 [inline] [<00000000bdb993a8>] __se_sys_setsockopt net/socket.c:2125 [inline] [<00000000bdb993a8>] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2125 [<000000006a1ffdbd>] do_syscall_64+0x40/0x80 arch/x86/entry/common.c:47 [<00000000b11467c4>] entry_SYSCALL_64_after_hwframe+0x44/0xae In commit 24803f38a5c0 ("igmp: do not remove igmp souce list info when set link down"), the ip_mc_clear_src() in ip_mc_destroy_dev() was removed, because it was also called in igmpv3_clear_delrec(). Rough callgraph: inetdev_destroy -> ip_mc_destroy_dev -> igmpv3_clear_delrec -> ip_mc_clear_src -> RCU_INIT_POINTER(dev->ip_ptr, NULL) However, ip_mc_clear_src() called in igmpv3_clear_delrec() doesn't release in_dev->mc_list->sources. And RCU_INIT_POINTER() assigns the NULL to dev->ip_ptr. As a result, in_dev cannot be obtained through inetdev_by_index() and then in_dev->mc_list->sources cannot be released by ip_mc_del1_src() in the sock_close. Rough call sequence goes like: sock_close -> __sock_release -> inet_release -> ip_mc_drop_socket -> inetdev_by_index -> ip_mc_leave_src -> ip_mc_del_src -> ip_mc_del1_src So we still need to call ip_mc_clear_src() in ip_mc_destroy_dev() to free in_dev->mc_list->sources.
Products: Linux, linux_kernel
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Debian 12 | linux | 5.10.46-1 |
| Debian 13 | linux | 5.10.46-1 |
| Debian 14 | linux | 5.10.46-1 |
| SUSE Linux Enterprise High Availability Extension 12 SP5 | kernel-default | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Live Patching 12 SP5 | kernel-default | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_57 | 1-8.3.1 |
| SUSE Linux Enterprise Real Time 12 SP5 | kernel-rt | 4.12.14-10.188.1 |
| SUSE Linux Enterprise Real Time 12 SP5 | kernel-rt_debug | 4.12.14-10.188.1 |
| SUSE Linux Enterprise Real Time 12 SP5 | kernel-source-rt | 4.12.14-10.188.1 |
| SUSE Linux Enterprise Real Time 12 SP5 | kernel-syms-rt | 4.12.14-10.188.1 |
| SUSE Linux Enterprise Server 12 SP5 | kernel-azure | 4.12.14-16.188.1 |
| SUSE Linux Enterprise Server 12 SP5 | kernel-default | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Server 12 SP5 | kernel-source | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Server 12 SP5 | kernel-source-azure | 4.12.14-16.188.1 |
| SUSE Linux Enterprise Server 12 SP5 | kernel-syms | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Server 12 SP5 | kernel-syms-azure | 4.12.14-16.188.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-azure | 4.12.14-16.188.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-default | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-source | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-source-azure | 4.12.14-16.188.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-syms | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | kernel-syms-azure | 4.12.14-16.188.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | kernel-docs | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | kernel-obs-build | 4.12.14-122.219.1 |
| SUSE Linux Enterprise Workstation Extension 12 SP5 | kernel-default | 4.12.14-122.219.1 |
| Ubuntu 16.04 LTS | linux-hwe-edge | no fix |
| Ubuntu 18.04 LTS | linux | 4.15.0-156.163 |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1111.118 |
| Ubuntu 18.04 LTS | linux-aws-5.0 | no fix |
| Ubuntu 18.04 LTS | linux-aws-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1055.58~18.04.1 |
| Ubuntu 18.04 LTS | linux-azure | no fix |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1123.136 |
| Ubuntu 18.04 LTS | linux-azure-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1056.58~18.04.1 |
| Ubuntu 18.04 LTS | linux-azure-edge | no fix |
| Ubuntu 18.04 LTS | linux-gcp | no fix |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1108.122 |
| Ubuntu 18.04 LTS | linux-gcp-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1051.55~18.04.1 |
| Ubuntu 18.04 LTS | linux-gke-4.15 | no fix |
| Ubuntu 18.04 LTS | linux-gke-5.4 | no fix |
| Ubuntu 18.04 LTS | linux-gkeop-5.4 | no fix |
| Ubuntu 18.04 LTS | linux-hwe | no fix |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-81.91~18.04.1 |
| Ubuntu 18.04 LTS | linux-hwe-edge | no fix |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1099.101 |
| Ubuntu 18.04 LTS | linux-oem | no fix |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1080.88 |
| Ubuntu 18.04 LTS | linux-oracle-5.0 | no fix |
| Ubuntu 18.04 LTS | linux-oracle-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1053.57~18.04.1 |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1042.46~18.04.3 |
| Ubuntu 20.04 LTS | linux | 5.4.0-81.91 |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1055.58 |
| Ubuntu 20.04 LTS | linux-aws-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1056.58 |
| Ubuntu 20.04 LTS | linux-azure-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-azure-fde | no fix |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1019.22 |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1051.55 |
| Ubuntu 20.04 LTS | linux-gcp-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-gke | no fix |
| Ubuntu 20.04 LTS | linux-gke-5.15 | no fix |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1022.23 |
| Ubuntu 20.04 LTS | linux-hwe-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-intel-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1045.47 |
| Ubuntu 20.04 LTS | linux-oem-5.10 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.14 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.6 | no fix |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1053.57 |
| Ubuntu 20.04 LTS | linux-oracle-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1042.46 |
| Ubuntu 20.04 LTS | linux-raspi2 | no fix |
| Ubuntu 20.04 LTS | linux-riscv | no fix |
| Ubuntu 20.04 LTS | linux-riscv-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-riscv-5.8 | no fix |
| Ubuntu 22.04 LTS | linux-allwinner-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-aws-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-aws-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-azure-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-azure-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-azure-fde-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-azure-fde-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-intel-iot-realtime | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-nvidia-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-oem-5.17 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.0 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.1 | no fix |
| Ubuntu 22.04 LTS | linux-realtime | no fix |
| Ubuntu 22.04 LTS | linux-riscv | no fix |
| Ubuntu 22.04 LTS | linux-riscv-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-6.2 | no fix |
| Ubuntu 24.04 LTS | linux-raspi-realtime | no fix |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1123.136~14.04.1 |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1111.118~16.04.1 |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1123.136~16.04.1 |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1108.122~16.04.1 |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-156.163~16.04.1 |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1080.88~16.04.1 |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2053.55 |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2035.39 |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1069.78 |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-gcp-fips | 4.15.0-2018.20 |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1069.73+fips2 |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1073.76+fips1 |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1032.37 |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1067.71~20.04.1 |
| Ubuntu Pro FIPS 18.04 LTS | linux-aws-fips | no fix |
| Ubuntu Pro FIPS 18.04 LTS | linux-azure-fips | no fix |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips | no fix |
| Ubuntu Pro FIPS 18.04 LTS | linux-gcp-fips | no fix |
| Ubuntu Pro FIPS 20.04 LTS | linux-aws-fips | no fix |
| Ubuntu Pro FIPS 20.04 LTS | linux-azure-fips | no fix |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips | no fix |
| Ubuntu Pro FIPS 20.04 LTS | linux-gcp-fips | no fix |