CVE-2025-9157 appneta tcpreplay tcprewrite edit_packet.c untrunc_packet use after free
A use-after-free vulnerability in tcprewrite allows local attackers to potentially execute arbitrary code or cause a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-9157?
CVE-2025-9157 is a medium-severity use after free vulnerability in appneta tcpreplay, published on 19 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.
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.
Which versions are affected by CVE-2025-9157?
How do I fix CVE-2025-9157?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-9157 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-9157 exists.
Sources
Also known as DEBIAN-CVE-2025-9157, GHSA-9v49-c9x8-3hm2, UBUNTU-CVE-2025-9157.