Use-after-free in Tcpreplay - CVE-2025-9157
Published: September 2, 2025
Vulnerability identifier: #VU114679
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-9157
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the untrunc_packet() function in src/tcpedit/edit_packet.c of the component tcprewrite. A local user can execute arbitrary code with elevated privileges.
Affected software
Tcpreplay
Fedora
tcpreplay
Fedora
tcpreplay
How to mitigate CVE-2025-9157
Install updates from vendor's website.
Tcpreplay - update to 4.5.2
tcpreplay - addressed in versions 4.5.2-1.el8, 4.5.2-1.el9, 4.5.2-1.el10_2, 4.5.2-1.fc41, 4.5.2-1.fc42, 4.5.2-1.fc43
tcpreplay - addressed in versions 4.5.2-1.el8, 4.5.2-1.el9, 4.5.2-1.el10_2, 4.5.2-1.fc41, 4.5.2-1.fc42, 4.5.2-1.fc43
External References
- https://drive.google.com/file/d/1_aONM_TOF96JbnYviPyZhVk-7HObtX8H/view?usp=sharing
- https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da
- https://github.com/appneta/tcpreplay/issues/970
- https://github.com/appneta/tcpreplay/issues/970#issuecomment-3198966053
- https://vuldb.com/?ctiid.320537
- https://vuldb.com/?id.320537
- https://vuldb.com/?submit.630495