Bug ID 978596
Summary arp-scan is terminated by SIGSEGV when run as normal user
Classification openSUSE
Product openSUSE Distribution
Version Leap 42.1
Hardware x86-64
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Network
Assignee bnc-team-screening@forge.provo.novell.com
Reporter thebenj808@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Hello,

The arp-scan package crashes and burns when run as a regular user:
    `arp-scan -I eth0 --localnet terminated by signal SIGSEGV (Address boundary
error)`

Initially I thought this was an issue with the program itself, maybe something
had gone wrong during the build process, but I noticed the following with
strace.

--- snip ---

socket(PF_PACKET, SOCK_RAW, 0)          = -1 EPERM (Operation not permitted)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++

--- snip ---

This looked to be a permission error, so I ran arp-scan as root and everything
was fine. The command executed successfully.

Now, I'm not too familiar with this program, but wouldn't it be better to
complain of insufficient privileges rather than SIGSEGV?

Steps to reproduce:
1) Install arp-scan package from official repositories or the Security project.
2) Run arp-scan as an unprivileged user

I was able to reproduce the error in both Leap 42.1 and Tumbleweed.


You are receiving this mail because: