Tcpreplay Double Free Vulnerability in Dlt_Linuxsll2 Cleanup Function

Vulnerability

A double free vulnerability has been identified in the Tcpreplay utility, specifically in version 4.5.1. This issue arises within the DLT LinuxSLL2 cleanup function, located in the plugins/dlt_linuxsll2/linuxsll2.c file. The vulnerability is triggered when the tcpedit_dlt_cleanup function calls the cleanup routine multiple times on the same memory region, leading to memory corruption. A local attacker can exploit this flaw by supplying a crafted pcap file to the Tcprewrite binary, causing a denial-of-service condition through memory corruption.

Impact

Exploitation of this vulnerability causes a denial-of-service condition by leading to memory corruption and a process crash.

Reproduction

The vulnerability can be reproduced by building Tcpreplay 4.5.1 with AddressSanitizer enabled, and then using the Tcprewrite utility to process a crafted pcap file that triggers the double free. The AddressSanitizer will detect the double free error, indicating that the vulnerability has been successfully exploited.

Remediation

Users can upgrade to Tcpreplay version 4.5.2, where this vulnerability has been fixed.

Added: Sep 22, 2025, 4:55 PM
Updated: Sep 23, 2025, 12:37 AM

Vulnerability Rating

Custom Algorithm
spread
2.4
impact
2.5
exploitability
4.6
remediation
7.7
relevance
0.6
threat
6.4
urgency
2.9
incentive
0.8

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