Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-39487 Overview
CVE-2024-39487 is an out-of-bounds read vulnerability in the Linux kernel's bonding driver, specifically within the bond_option_arp_ip_targets_set() function in drivers/net/bonding/bond_options.c. When a user supplies an empty string to this option, the code dereferences newval->string+1, pointing to memory beyond the allocated string buffer. KASAN detected the issue as a slab-out-of-bounds read in strlen+0x7d/0xa0. The flaw is classified under [CWE-125] (Out-of-Bounds Read) and affects multiple Linux kernel versions, including 6.10 release candidates. Downstream vendors including Debian and Siemens have issued advisories referencing this fix.
Critical Impact
A local, authenticated user with permission to write bonding sysfs attributes can trigger a kernel out-of-bounds read, potentially leaking adjacent slab memory or causing a kernel crash resulting in denial of service.
Affected Products
- Linux kernel (multiple stable branches prior to the fix commits)
- Linux kernel 6.10-rc1 through 6.10-rc6
- Debian LTS distributions and Siemens industrial products shipping affected kernels
Discovery Timeline
- 2024-07-09 - CVE-2024-39487 published to the National Vulnerability Database
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2024-39487
Vulnerability Analysis
The defect resides in the Linux bonding driver, which aggregates multiple network interfaces into a single logical link. The bond_option_arp_ip_targets_set() function processes a list of ARP target IP addresses supplied via sysfs. The function reads the first character of the input to determine whether to add (+) or remove (-) a target, then advances the pointer with newval->string+1 and passes the result to in4_pton() for parsing.
When the supplied string is empty (zero length), advancing past the single terminating byte places the pointer in unallocated or unrelated slab memory. The subsequent strlen() call inside in4_pton() reads bytes beyond the valid buffer. KASAN confirmed the issue with a slab-out-of-bounds report at strlen+0x7d/0xa0 in lib/string.c:418.
Successful exploitation can disclose adjacent kernel heap contents to the attacker or trigger a kernel panic when the read crosses unmapped memory. The impact scope is limited to local, authenticated contexts because sysfs writes to bonding attributes require privileges.
Root Cause
The root cause is missing input length validation. The function assumed newval->string contained at least one meaningful character followed by payload bytes, but did not check strlen(newval->string) before incrementing the pointer. The remediation adds an explicit length check before dereferencing the advanced pointer.
Attack Vector
Exploitation requires local access and the ability to write to /sys/class/net/bondX/bonding/arp_ip_target. An attacker with root or CAP_NET_ADMIN on the network namespace can write an empty string to the sysfs attribute to trigger the out-of-bounds read. No remote vector exists. Verified proof-of-concept code is not published; the KASAN trace in the upstream commit message serves as the authoritative reproducer.
Detection Methods for CVE-2024-39487
Indicators of Compromise
- KASAN reports in dmesg referencing slab-out-of-bounds in strlen with the call chain in4_pton → bond_option_arp_ip_targets_set
- Kernel oops or panic traces originating from drivers/net/bonding/bond_options.c:1201
- Unexpected writes to /sys/class/net/*/bonding/arp_ip_target with zero-length payloads
Detection Strategies
- Enable KASAN on test and staging kernels to surface out-of-bounds reads during fuzzing or regression runs
- Audit kernel ring buffer logs for bond_option_arp_ip_targets_set stack frames combined with memory sanitizer warnings
- Monitor process execution that writes to bonding sysfs attributes from unexpected users or containers
Monitoring Recommendations
- Collect /var/log/kern.log and dmesg output into a centralized logging pipeline for pattern matching on KASAN signatures
- Instrument auditd rules on /sys/class/net/*/bonding/arp_ip_target write operations to attribute the originating process and user
- Track installed kernel package versions across the fleet to identify hosts still running pre-patch builds
How to Mitigate CVE-2024-39487
Immediate Actions Required
- Apply the upstream kernel fix or vendor-provided patched kernel package and reboot affected hosts
- Restrict write access to bonding sysfs attributes by removing unnecessary CAP_NET_ADMIN grants and privileged container configurations
- Review systems running kernel 6.10 release candidates and roll back or upgrade to a patched stable release
Patch Information
The fix adds a length check on newval->string before advancing the pointer. It landed across multiple stable branches in commits 6a8a4fd, 6b21346, 707c85b, 9f835e4, b75e33e, bfd14e5, c8eb8ab, and e271ff5. Distribution patches are available in the Debian LTS Announcement January 2025 and Siemens advisories SSA-355557, SSA-398330, and SSA-613116.
Workarounds
- Unload or disable the bonding kernel module on systems that do not require link aggregation using modprobe -r bonding
- Add the module to the kernel blacklist to prevent reload across reboots on hosts with no bonding requirement
- Enforce mandatory access control policies (SELinux, AppArmor) that deny untrusted processes write access to /sys/class/net/*/bonding/*
# Blacklist the bonding module on systems that do not need it
echo 'blacklist bonding' | sudo tee /etc/modprobe.d/disable-bonding.conf
sudo modprobe -r bonding 2>/dev/null || true
# Verify the installed kernel version includes the fix
uname -r
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

