Vulnerability · Published Jul 9, 2024 · Assigned by Linux

CVE-2024-39487bonding: Fix out-of-bounds read in bond_option_arp_ip_targets_set()

High 7.1

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 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.2%top 83.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: bonding: Fix out-of-bounds read in bond_option_arp_ip_targets_set() In function bond_option_arp_ip_targets_set(), if newval->string is an empty string, newval->string+1 will point to the byte after the string, causing an out-of-bound read. BUG: KASAN: slab-out-of-bounds in strlen+0x7d/0xa0 lib/string.c:418 Read of size 1 at addr ffff8881119c4781 by task syz-executor665/8107 CPU: 1 PID: 8107 Comm: syz-executor665 Not tainted 6.7.0-rc7 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc1/0x5e0 mm/kasan/report.c:475 kasan_report+0xbe/0xf0 mm/kasan/report.c:588 strlen+0x7d/0xa0 lib/string.c:418 __fortify_strlen include/linux/fortify-string.h:210 [inline] in4_pton+0xa3/0x3f0 net/core/utils.c:130 bond_option_arp_ip_targets_set+0xc2/0x910 drivers/net/bonding/bond_options.c:1201 __bond_opt_set+0x2a4/0x1030 drivers/net/bonding/bond_options.c:767 __bond_opt_set_notify+0x48/0x150 drivers/net/bonding/bond_options.c:792 bond_opt_tryset_rtnl+0xda/0x160 drivers/net/bonding/bond_options.c:817 bonding_sysfs_store_option+0xa1/0x120 drivers/net/bonding/bond_sysfs.c:156 dev_attr_store+0x54/0x80 drivers/base/core.c:2366 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x337/0x500 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x96a/0xd80 fs/read_write.c:584 ksys_write+0x122/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b ---[ end trace ]--- Fix it by adding a check of string length before using it.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9bpftool7.3.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-debug5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-debug-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-debug-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-debug-modules5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-devel-matched5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-modules5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-modules-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-64k-modules-extra5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-abi-stablelists5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-cross-headers5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug-devel-matched5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug-modules5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug-modules-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug-modules-extra5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-debug-uki-virt5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-devel-matched5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-doc5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-headers5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-modules5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-modules-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-modules-extra5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-debug5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-debug-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-debug-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-debug-modules5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-modules5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-modules-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-rt-modules-extra5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-tools5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-tools-libs5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-tools-libs-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-uki-virt5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-zfcpdump5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-zfcpdump-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-zfcpdump-devel5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-zfcpdump-modules5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9libperf5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9perf5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9python3-perf5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9rtla5.14.0-427.31.1.el9_4ALSA-2024:5363
AlmaLinux:9rv5.14.0-427.31.1.el9_4ALSA-2024:5363
Debian:12linux6.1.99-1DEBIAN-CVE-2024-39487
Debian:12linux6.1.99-1DSA-5731-1
Debian:13linux6.9.9-1DEBIAN-CVE-2024-39487
Debian:14linux6.9.9-1DEBIAN-CVE-2024-39487
Rocky Linux:9kernel0:5.14.0-427.31.1.el9_4RLSA-2024:5363
Ubuntu:22.04:LTSlinux5.15.0-121.131UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux6.8.0-48.48UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux6.8.0-48.48USN-7089-1
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-aws5.15.0-1069.75UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-aws6.8.0-1018.20UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-aws6.8.0-1018.20USN-7089-3
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1018.19~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1018.19~22.04.1USN-7089-3
Ubuntu:22.04:LTSlinux-azure5.15.0-1072.81UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-azure6.8.0-1017.20UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-azure6.8.0-1017.20USN-7089-2
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1017.20~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1017.20~22.04.1USN-7090-1
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1072.81.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-gcp5.15.0-1068.76UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-gcp6.8.0-1017.19USN-7089-2
Ubuntu:24.04:LTSlinux-gcp6.8.0-1017.19UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1017.19~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1017.19~22.04.1USN-7089-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1066.72UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-gke6.8.0-1013.17USN-7089-6
Ubuntu:24.04:LTSlinux-gke6.8.0-1013.17UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1052.59UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1002.4UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1002.4USN-7156-1
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-48.48~22.04.1USN-7089-1
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-48.48~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-ibm5.15.0-1062.65UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-ibm6.8.0-1015.15USN-7089-2
Ubuntu:24.04:LTSlinux-ibm6.8.0-1015.15UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1015.15~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1064.70UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-kvm5.15.0-1066.71UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-121.131UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-48.48.3UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-48.48.3USN-7089-7
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-48.48.3~22.04.1USN-7089-7
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-48.48.3~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1064.65UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1017.19UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1017.19USN-7095-1
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1017.19~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1017.19~22.04.1USN-7095-1
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1017.19.1UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1017.19.1USN-7095-1
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1028.28UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1016.16UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1016.16USN-7089-4
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1016.16UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-oracle5.15.0-1067.73UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-oracle6.8.0-1015.16UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-oracle6.8.0-1015.16USN-7089-3
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1015.15~22.04.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1015.15~22.04.1USN-7089-3
Ubuntu:22.04:LTSlinux-raspi5.15.0-1062.65UBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-raspi6.8.0-1014.16USN-7089-5
Ubuntu:24.04:LTSlinux-raspi6.8.0-1014.16UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-riscv6.8.0-48.48.1UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-48.48.1~22.04.2UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-39487
Ubuntu:24.04:LTSlinux-xilinx6.8.0-1009.10UBUNTU-CVE-2024-39487
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1035.39UBUNTU-CVE-2024-39487

Affected products (as reported)

VendorProductVersions
Linux Linux f9de11a165943a55e0fbda714caf60eaeb276a42 – before 6a8a4fd082c439e19fede027e80c79bc4c84bb8ef9de11a165943a55e0fbda714caf60eaeb276a42 – before 6b21346b399fd1336fe59233a17eb5ce73041ee1f9de11a165943a55e0fbda714caf60eaeb276a42 – before 707c85ba3527ad6aa25552033576b0f1ff835d7bf9de11a165943a55e0fbda714caf60eaeb276a42 – before bfd14e5915c2669f292a31d028e75dcd82f1e7e9f9de11a165943a55e0fbda714caf60eaeb276a42 – before c8eb8ab9a44ff0e73492d0a12a643c449f641a9ff9de11a165943a55e0fbda714caf60eaeb276a42 – before b75e33eae8667084bd4a63e67657c6a5a0f8d1e8f9de11a165943a55e0fbda714caf60eaeb276a42 – before 9f835e48bd4c75fdf6a9cff3f0b806a7abde78daf9de11a165943a55e0fbda714caf60eaeb276a42 – before e271ff53807e8f2c628758290f0e499dbe51cb3d
Linux Linux 3.13

References