-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heap overflow in dlt_en10mb_encode() #486
Labels
Comments
CVE-2018-17974 was assigned to this issue. |
fklassen
added a commit
that referenced
this issue
Oct 18, 2018
Also added check for packet size > cap len, although this may be never be hit since #484
fklassen
added a commit
that referenced
this issue
Oct 19, 2018
* increase MAX_SNAPLEN from 65535 to 262144 * increase MAXPACKET from 65549 to 262158 * exit on buffer overflow for adding VLAN tag (as opposed to realloc)
fklassen
added a commit
that referenced
this issue
Oct 19, 2018
* Enhancement_#493_codacy_fixes: (26 commits) Enhancement #493 - fixes for Codacy identified issues Bug #486 Enforce max snaplen rather than doing realloc Bug #486 CVE-2018-17974 realloc memory if packet size increases Bug #484 CVE-2018-17582 Check for corrupt PCAP files 4.3 - revert travis updates from merge Remove dead code resolve possible null pointer dereference travis-ci: add autogen package Bug #461 build warnings (#462) #412 fix gcc 6.3 compiler warning #421 fix ms to ns conversion Bug #423 remove commented code Bug #423 Remove limit for tcpprep -S Bug #398 Rewrite of tcpdump.c (#457) Bug #402 memset dlt radiotap get 80211 (#454) #404 fix check_list return values (#453) #406 fix zero-length IP headers #416 apply STDIN restore to all programs #416 fix compile issue introduced by downstream PR #416 update CHANGELOG [ci skip] ...
fklassen
added a commit
that referenced
this issue
Oct 19, 2018
* Bug #486 CVE-2018-17974 realloc memory if packet size increases Also added check for packet size > cap len, although this may be never be hit since #484 * Bug #486 Enforce max snaplen rather than doing realloc * increase MAX_SNAPLEN from 65535 to 262144 * increase MAXPACKET from 65549 to 262158 * exit on buffer overflow for adding VLAN tag (as opposed to realloc)
fixed in #492 |
fklassen
added a commit
that referenced
this issue
Oct 19, 2018
* 4.3: Bug #486 CVE-2018-17974 realloc memory if packet size increases (#492)
fklassen
added a commit
that referenced
this issue
Oct 23, 2018
* 4.3: (22 commits) Bug #418 don't ignore 2nd packet timing Bug #411 allow TAP on all platforms Bug #174 ensure --with-testnic does not affect replay Bug #406 change packet length to network order Bug #413 fix manpage typos Bug #485 Heap overflow fixed in #484 Enhancement_#482 update CHANGELOG/CREDITS Enhancement_#482 test Makefile merge error fixup Enhancement_#482 test Makefile cleanup Bug #489 free after memcpy Bug #488 heap overflow csum replace4 (#496) Bug #486 CVE-2018-17974 realloc memory if packet size increases (#492) Enhancement #493 - fixes for Codacy identified issues Bug #486 Enforce max snaplen rather than doing realloc Bug #486 CVE-2018-17974 realloc memory if packet size increases Bug #484 CVE-2018-17582 Check for corrupt PCAP files 4.3 - revert travis updates from merge Simplify plugin Makefiles allow out-of-tree build Remove dead code ...
fklassen
added a commit
that referenced
this issue
Oct 23, 2018
…ging * 4.3: (36 commits) Enhancement #506 disable C99 and fix warnings (#507) Bug #418 don't ignore 2nd packet timing Bug #411 allow TAP on all platforms Bug #174 ensure --with-testnic does not affect replay Bug #406 change packet length to network order Bug #413 fix manpage typos Bug #485 Heap overflow fixed in #484 Enhancement_#482 update CHANGELOG/CREDITS Enhancement_#482 test Makefile merge error fixup Enhancement_#482 test Makefile cleanup Bug #489 free after memcpy Bug #488 heap overflow csum replace4 (#496) Bug #486 CVE-2018-17974 realloc memory if packet size increases (#492) Enhancement #493 - fixes for Codacy identified issues Bug #486 Enforce max snaplen rather than doing realloc Bug #486 CVE-2018-17974 realloc memory if packet size increases Bug #484 CVE-2018-17582 Check for corrupt PCAP files 4.3 - revert travis updates from merge Simplify plugin Makefiles allow out-of-tree build ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An heap overflow was triggered in function
dlt_en10mb_encode()
at fileen10mb.c
, due to inappropriate values in the function memmove(). The length (pktlen + ctx -> l2len) is larger than source value (packet + ctx->l2len) as the function failed to ensure the length of a packet is valid, causing segmentation fault.Affected version:
4.3 branch
Command:
sudo tcpreplay-edit --cachefile=example.cache --intf1=ens33 --intf2=lo --enet-vlan=add --enet-vlan-tag=40 $POC
Debugging:
ASAN output
Please check if you are able to reproduce the issue via the Reproducer file
The text was updated successfully, but these errors were encountered: