{"id":"UBUNTU-CVE-2025-9157","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-05-20T16:11:32.190478206Z","published":"2025-08-19T20:15:00Z","upstream":["CVE-2025-9157"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-9157"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-9157"},{"type":"REPORT","url":"https://github.com/appneta/tcpreplay/issues/970"},{"type":"REPORT","url":"https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da"},{"type":"REPORT","url":"https://drive.google.com/file/d/1_aONM_TOF96JbnYviPyZhVk-7HObtX8H/view?usp=sharing"},{"type":"REPORT","url":"https://github.com/appneta/tcpreplay/issues/970#issuecomment-3198966053"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.320537"},{"type":"REPORT","url":"https://vuldb.com/?id.320537"},{"type":"REPORT","url":"https://vuldb.com/?submit.630495"}],"affected":[{"package":{"name":"tcpreplay","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/tcpreplay?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.4-2","3.4.4-2+deb8u1build0.16.04.1","3.4.4-2+deb8u1ubuntu0.1~esm1","3.4.4-2+deb8u1ubuntu0.1~esm2","3.4.4-2+deb8u1ubuntu0.1~esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"3.4.4-2+deb8u1ubuntu0.1~esm3","binary_name":"tcpreplay"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-9157.json"}},{"package":{"name":"tcpreplay","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/tcpreplay?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.6-1","4.2.6-1ubuntu0.1~esm1","4.2.6-1ubuntu0.1~esm2","4.2.6-1ubuntu0.1~esm3","4.2.6-1ubuntu0.1~esm4","4.2.6-1ubuntu0.1~esm5"],"ecosystem_specific":{"binaries":[{"binary_version":"4.2.6-1ubuntu0.1~esm5","binary_name":"tcpreplay"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-9157.json"}},{"package":{"name":"tcpreplay","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/tcpreplay?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.2-1build1","4.3.2-1ubuntu0.1~esm1","4.3.2-1ubuntu0.1~esm2","4.3.2-1ubuntu0.1~esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"4.3.2-1ubuntu0.1~esm3","binary_name":"tcpreplay"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-9157.json"}},{"package":{"name":"tcpreplay","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/tcpreplay?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.3-2","4.3.4-1","4.3.4-1ubuntu0.1~esm1","4.3.4-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"4.3.4-1ubuntu0.1~esm2","binary_name":"tcpreplay"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-9157.json"}},{"package":{"name":"tcpreplay","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/tcpreplay?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.3-1","4.4.4-1","4.4.4-1build1","4.4.4-1build2","4.4.4-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.4.4-1ubuntu0.1~esm1","binary_name":"tcpreplay"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-9157.json"}},{"package":{"name":"tcpreplay","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/tcpreplay?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.1-1","4.5.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.5.2-1","binary_name":"tcpreplay"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-9157.json"}},{"package":{"name":"tcpreplay","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/tcpreplay?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.2-1","4.5.2-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.5.2-1build1","binary_name":"tcpreplay"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-9157.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},{"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"},{"type":"Ubuntu","score":"medium"}]}