Linux Kernel Use-After-Free Vulnerability in RPL Header Processing

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's RPL (Routing Protocol for Low-Power and Lossy Networks) header processing function, rpl_do_srh_inline(). This vulnerability occurs in versions of the kernel prior to 6.16.0-rc5-01302-gfadd1e6231b1. The issue arises when the function accesses the IPv6 header after a certain operation that can free the header, leading to illegal memory access. The vulnerability can be triggered by running a specific self-test script, lwt_dst_cache_ref_loop.sh, with KASAN (Kernel Address Sanitizer) enabled, which will produce a kernel error message indicating the use-after-free condition.

Impact

Exploitation of this vulnerability leads to a use-after-free condition, allowing for potential memory corruption.

Reproduction

The vulnerability can be reproduced by running the lwt_dst_cache_ref_loop.sh self-test script with KASAN enabled. This script will trigger the use-after-free vulnerability in the rpl_do_srh_inline() function, which processes RPL headers and can access freed memory, causing a kernel error.

Added: Jul 28, 2025, 1:07 PM
Updated: Jul 28, 2025, 1:07 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
7.7
relevance
0.3
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.