Out-of-bounds read in Tcpreplay - CVE-2018-17974

 

Out-of-bounds read in Tcpreplay - CVE-2018-17974

Published: October 4, 2018 / Updated: June 1, 2021


Vulnerability identifier: #VU36562
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-17974
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.

An issue was discovered in Tcpreplay 4.3.0 beta1. A heap-based buffer over-read was triggered in the function dlt_en10mb_encode() of the file plugins/dlt_en10mb/en10mb.c, due to inappropriate values in the function memmove(). The length (pktlen + ctx -> l2len) can be larger than source value (packet + ctx->l2len) because the function fails to ensure the length of a packet is valid. This leads to Denial of Service.


Affected software

Tcpreplay
Fedora
tcpreplay

How to mitigate CVE-2018-17974

Install update from vendor's website.

Tcpreplay - update to 4.3.0
tcpreplay - addressed in versions 4.3.1-1.el7, 4.3.1-1.fc28, 4.3.1-1.fc29

External References

Related Security Bulletins