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-26852 Overview
CVE-2024-26852 is a use-after-free [CWE-416] vulnerability in the Linux kernel's IPv6 networking stack. The flaw resides in the ip6_route_mpath_notify() function within net/ipv6/route.c. A previous fix (commit f7225172f25a) addressed a related issue but did not eliminate the root cause. The syzbot fuzzer identified the residual condition, where fib6_info_release() calls executed before ip6_route_mpath_notify() freed structures still referenced during route notification. A local, authenticated attacker with the ability to send rtnetlink messages can trigger memory corruption, leading to privilege escalation or denial of service.
Critical Impact
Local exploitation of the IPv6 multipath route notification path can corrupt kernel memory, enabling privilege escalation to root or kernel panic conditions on affected Linux systems.
Affected Products
- Linux kernel versions prior to the fix commits, including 6.8-rc1 through 6.8-rc6
- Debian Linux 10.0 (via Debian LTS backports)
- Siemens industrial products referenced in advisory SSA-265688
Discovery Timeline
- 2024-04-17 - CVE-2024-26852 published to the National Vulnerability Database
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2024-26852
Vulnerability Analysis
The vulnerability is a slab use-after-free detected by Kernel Address Sanitizer (KASAN) in the rt6_fill_node() function. When userspace issues an inet6_rtm_newroute netlink request to add an IPv6 multipath route, the kernel invokes ip6_route_multipath_add(). During cleanup, the kernel calls fib6_info_release() on route entries before ip6_route_mpath_notify() finishes building and sending notifications to listeners.
Because reference counts on fib6_info structures reach zero prematurely, the backing memory is returned to the slab allocator. The subsequent notification path dereferences the freed structure through inet6_rt_notify() and rt6_fill_node(), producing an out-of-bounds read on freed memory and potential arbitrary memory corruption.
Root Cause
The root cause is incorrect ordering of release operations in the IPv6 multipath route cleanup path. The earlier remediation in commit f7225172f25a addressed a symptom but did not restructure the release sequence. The upstream fix defers all fib6_info_release() calls until after ip6_route_mpath_notify() completes, ensuring the notification path operates on live objects.
Attack Vector
Exploitation requires local access and the CAP_NET_ADMIN capability (or equivalent namespace privileges) to send RTM_NEWROUTE netlink messages. An attacker crafts a multipath IPv6 route configuration designed to trigger the premature release during cleanup. Successful exploitation can produce kernel memory disclosure, write primitives through slab reuse, or system crashes. See the upstream commits referenced in the Linux stable tree for the exact code path affected.
Detection Methods for CVE-2024-26852
Indicators of Compromise
- Unexpected kernel oops or panic messages referencing rt6_fill_node, inet6_rt_notify, or ip6_route_mpath_notify in dmesg or /var/log/kern.log.
- KASAN slab-use-after-free reports in kernel logs on instrumented builds.
- Processes without legitimate network administration roles invoking sendmsg on AF_NETLINK sockets with RTM_NEWROUTE messages carrying multipath attributes.
Detection Strategies
- Audit rtnetlink activity using auditd with rules targeting netlink_sendmsg system call patterns from non-root or non-network-management processes.
- Monitor kernel ring buffer entries for unexpected faults in the IPv6 routing subsystem through centralized log aggregation.
- Correlate privilege-escalation indicators (unexpected UID 0 shells, new SUID files) with preceding kernel warnings in the network stack.
Monitoring Recommendations
- Enable persistent kernel log collection and forward kern.* facility messages to a SIEM for retention and anomaly detection.
- Track container and namespace creation events, since CAP_NET_ADMIN within an unprivileged user namespace can expose this code path.
- Review inventory of Linux hosts running kernel 6.8 release candidates and legacy LTS branches lacking the backported fix.
How to Mitigate CVE-2024-26852
Immediate Actions Required
- Apply the vendor-supplied kernel update that includes the upstream fix deferring fib6_info_release() calls after ip6_route_mpath_notify().
- For Debian systems, install the kernel package referenced in the Debian LTS announcement and reboot.
- For Siemens industrial systems, follow the remediation steps in Siemens Security Advisory SSA-265688.
Patch Information
The fix is distributed across multiple stable branches. Reference commits include 31ea5bcc7d4c, 394334fe2ae3, 61b34f73cdbd, 664f9c647260, 685f7d531264, 79ce2e54cc0a, cae330325795, and ed883060c387 in the Linux stable tree. Verify the running kernel version after update with uname -r and confirm the backport is present through the distribution changelog.
Workarounds
- Restrict CAP_NET_ADMIN by disabling unprivileged user namespaces where feasible: set kernel.unprivileged_userns_clone=0 via sysctl.
- Disable IPv6 on hosts that do not require it by setting net.ipv6.conf.all.disable_ipv6=1, understanding the operational impact before deployment.
- Limit which local users and containers can invoke rtnetlink by auditing capability grants and seccomp profiles.
# Configuration example
# Verify current kernel version
uname -r
# Harden user namespace creation (reduces local attack surface)
sudo sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' | sudo tee -a /etc/sysctl.d/99-hardening.conf
# Optional: disable IPv6 if not required
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
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

