Red Hat Bugzilla – Bug 1277102
ip neighbour segfaults if bad mac address is used
Last modified: 2016-05-10 20:20:24 EDT
The same issue on rhel-6.
+++ This bug was initially created as a clone of Bug #1277094 +++
Description of problem:
ip neighbour segfaults if bad mac address is used.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
# ip link add test-iface type dummy
# ip link set test-iface up
# ip neigh add 192.168.100.3 lladdr 00:c0:7b:7d:00:c10 dev test-iface nud reachable
"c10" is invalid lladdr.
# ip link del test-iface
There is segfaults.
Successfully reproduced in my local RHEL6 VM.
The following upstream commit fixes the issue:
Author: Stephen Hemminger <firstname.lastname@example.org>
Date: Tue Jan 13 18:06:16 2015 -0800
neighbor: check return values
Need to check for invalid address and buffer overrun in ip neigh
command with invalid paramters.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.