{"id":"CVE-2025-9157","summary":"appneta tcpreplay tcprewrite edit_packet.c untrunc_packet use after free","details":"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.","modified":"2026-08-12T15:15:07.493533Z","published":"2025-08-19T20:02:08.552Z","related":["openSUSE-SU-2025:15728-1","openSUSE-SU-2025:20119-1"],"database_specific":{"cna_assigner":"VulDB","cwe_ids":["CWE-119","CWE-416"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9157.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9157.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9157"},{"type":"ADVISORY","url":"https://vuldb.com/?id.320537"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.630495"},{"type":"REPORT","url":"https://github.com/appneta/tcpreplay/issues/970"},{"type":"REPORT","url":"https://github.com/appneta/tcpreplay/issues/970#issuecomment-3198966053"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.320537"},{"type":"FIX","url":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da"},{"type":"EVIDENCE","url":"https://drive.google.com/file/d/1_aONM_TOF96JbnYviPyZhVk-7HObtX8H/view?usp=sharing"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/appneta/tcpreplay","events":[{"introduced":"0b0e72850228093c0864f270ea532da0f29498c6"},{"fixed":"73008f261f1cdf7a1087dc8759115242696d35da"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"4.5.2-beta1"},{"last_affected":"4.5.2-beta1"},{"introduced":"4.5.2-beta2"},{"last_affected":"4.5.2-beta2"}]}}],"versions":["4.5.2-beta1","4.5.2-beta2","v4.5.2-beta2","v4.5.2-beta1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9157.json","vanir_signatures_modified":"2026-08-12T15:15:07Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da","target":{"file":"src/common/sendpacket.h","function":"kick_tx"},"deprecated":false,"digest":{"function_hash":"328974087607412167336739022779689300187","length":635},"id":"CVE-2025-9157-02b2c0e6","signature_type":"Function"},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["19628962945387001136090884324675050071","113063468747715974689397983761155799458","101940827274302632927073457419324534871","66348440111304200964489554960775311010"]},"id":"CVE-2025-9157-0e30c689","signature_type":"Line","signature_version":"v1","source":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da","target":{"file":"src/common/sendpacket.h"}},{"deprecated":false,"digest":{"function_hash":"218537400204354682112518451400835951551","length":1925},"id":"CVE-2025-9157-19ae82a7","signature_type":"Function","signature_version":"v1","source":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da","target":{"file":"src/tcpedit/edit_packet.c","function":"untrunc_packet"}},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da","target":{"file":"src/tcpedit/edit_packet.c"},"deprecated":false,"digest":{"line_hashes":["311638448632200243448626576368432857809","262969340522840702234456712089739320088","29032276265835153425650451824912449775","304385322920033473258116721690707467852"],"threshold":0.9},"id":"CVE-2025-9157-7e369ec4"},{"signature_version":"v1","source":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da","target":{"file":"src/tcprewrite.c","function":"rewrite_packets"},"deprecated":false,"digest":{"length":2403,"function_hash":"68992610171752203025817196903415234098"},"id":"CVE-2025-9157-a5284362","signature_type":"Function"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da","target":{"file":"src/tcprewrite.c"},"deprecated":false,"digest":{"line_hashes":["91237455740800186492158709295618978963","248279307656741066594751877305855593064","263934966825246672697957659366178751789","212386188721125584022658031331624949494"],"threshold":0.9},"id":"CVE-2025-9157-d477aff5"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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/E:P"}]}