Vulnerability · Published Aug 19, 2025 · Assigned by VulDB
CVE-2025-9157appneta tcpreplay tcprewrite edit_packet.c untrunc_packet use after free
Medium 5.3
In plain English
A medium-severity use-after-free in tcpreplay from appneta. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability was determined in appneta tcpreplay up to 4.5.2-beta2. The impacted element is the function untrunc_packet of the file src/tcpedit/edit_packet.c of the component tcprewrite. Executing manipulation can lead to use after free. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. This patch is called 73008f261f1cdf7a1087dc8759115242696d35da. Applying a patch is advised to resolve this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | tcpreplay | no fix listed | DEBIAN-CVE-2025-9157 |
| Debian:13 | tcpreplay | no fix listed | DEBIAN-CVE-2025-9157 |
| Debian:14 | tcpreplay | 4.5.2-1 | DEBIAN-CVE-2025-9157 |
| Ubuntu:25.10 | tcpreplay | no fix listed | UBUNTU-CVE-2025-9157 |
| Ubuntu:26.04:LTS | tcpreplay | no fix listed | UBUNTU-CVE-2025-9157 |
| Ubuntu:26.10 | tcpreplay | no fix listed | UBUNTU-CVE-2025-9157 |
Affected products (as reported)
Weakness: CWE-416, CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
References
- VDB-320537 | appneta tcpreplay tcprewrite edit_packet.c untrunc_packet use after free vdb-entry, technical-description
- VDB-320537 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #630495 | tcpreplay tcprewrite tcpreplay version 6fcbf03 (the newest master in https://github.com/appneta/tcpreplay) Use-After-Free third-party-advisory
- https://github.com/appneta/tcpreplay/issues/970 issue-tracking
- https://github.com/appneta/tcpreplay/issues/970#issuecomment-3198966053 issue-tracking
- https://drive.google.com/file/d/1_aONM_TOF96JbnYviPyZhVk-7HObtX8H/view?usp=sharing exploit
- https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da patch