Skip to content
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

[Bug] SEGV on unknown address has occurred when running program tcprewrite in function tcpedit_dlt_getplugin at src/tcpedit/plugins/dlt_utils.c:58 #902

Open
Du4t opened this issue Sep 20, 2024 · 0 comments
Assignees
Labels

Comments

@Du4t
Copy link

Du4t commented Sep 20, 2024

Describe the bug
SEGV on unknown address has occurred when running program tcprewrite in function tcpedit_dlt_getplugin at src/tcpedit/plugins/dlt_utils.c:58

To Reproduce
Steps to reproduce the behavior:

  1. ./configure
  2. make -j
  3. ./src/tcprewrite --dlt=enet --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 --enet-smac=00:12:13:14:15:16,00:22:33:44:55:66 -i PoC1 -o /dev/null

Screenshots

=================================================================
==214509==ERROR: AddressSanitizer: SEGV on unknown address 0x161514131210 (pc 0x5ae23ec15d6f bp 0x161514131200 sp 0x7ffdd08b8520 T0)
==214509==The signal is caused by a READ memory access.
    #0 0x5ae23ec15d6f in tcpedit_dlt_getplugin src/tcpedit/plugins/dlt_utils.c:58:16
    #1 0x5ae23ec15391 in tcpedit_dlt_proto src/tcpedit/plugins/dlt_plugins.c:328:19
    #2 0x5ae23ebfb179 in tcpedit_packet src/tcpedit/tcpedit.c:96:20
    #3 0x5ae23ebfa958 in rewrite_packets src/tcprewrite.c:296:22
    #4 0x5ae23ebf9c22 in main src/tcprewrite.c:137:9
    #5 0x756a46c29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #6 0x756a46c29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
    #7 0x5ae23eb3a694 in _start (tcprewrite+0x43694) (BuildId: de8c68b499d5e7b8a1e795b2979a835e1d28ab42)

AddressSanitizer can not provide additional info.

Additional context
You can download PoC in here

@fklassen fklassen self-assigned this Sep 21, 2024
@fklassen fklassen added the bug label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants