Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   OS (UNIX)  >   NetBSD Vendors:   NetBSD
NetBSD ARP Processing Flaws Let Remote Users Obtain Potentially Sensitive Information and Deny Service
SecurityTracker Alert ID:  1037859
SecurityTracker URL:
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Feb 21 2017
Impact:   Denial of service via network, Disclosure of system information, Disclosure of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 6.0 - 6.0.5, 6.1 - 6.1.4, 7.0 - 7.0.2
Description:   Two vulnerabilities were reported in NetBSD. A remote user can consume excessive memory on the target system. A remote user can obtain potentially sensitive information on the target system.

A remote user can send specially crafted ARP requests to the target system to trigger a memory leak and consume excessive memory on the target system. As a result, a kernel panic may eventually occur.

A remote user can send an ARP request with specially crafted hardware and protocol length values to cause the target system to respond with portions of uninitialized kernel data.

Maxime Villard reported these vulnerabilities.

Impact:   A remote user can consume excessive memory resources on the target system.

A remote user can obtain potentially sensitive information on the target system.

Solution:   The vendor has issue a fix.

The vendor advisory is available at:

Vendor URL: (Links to External Site)
Cause:   Access control error, Input validation error

Message History:   None.

 Source Message Contents

Subject:  NetBSD Security Advisory 2017-002: Several vulnerabilities in ARP

Hash: SHA1

		NetBSD Security Advisory 2017-002

Topic:		Several vulnerabilities in ARP

Version:	NetBSD-current:		source prior to Tue, Jan 24th 2017
		NetBSD 7.0 - 7.0.2:	affected
		NetBSD 6.1 - 6.1.4:	affected
		NetBSD 6.0 - 6.0.5:	affected

Severity:	Remote DoS, remote information disclosure

Fixed:		NetBSD-current:		Tue, Jan 24th 2017
		NetBSD-7-0 branch:	Sun, Feb 5th 2017
		NetBSD-7 branch:	Sun, Feb 5th 2017
		NetBSD-6-0 branch:	Sun, Feb 5th 2017
		NetBSD-6-1 branch:	Sun, Feb 5th 2017
		NetBSD-6 branch:	Sun, Feb 5th 2017

Teeny versions released later than the fix date will contain the fix.

Please note that NetBSD releases prior to 6.0 are no longer supported.
It is recommended that all users upgrade to a supported release.


Two vulnerabilities were found in NetBSD's ARP implementation:

 - A memory leak could allow an attacker to remotely cause the system to
   run out of memory and eventually panic.
 - Missing validation checks on a received ARP packet header could cause
   the system to reply with uninitialized kernel data which may lead to
   information disclosure.

Technical Details

 - When replying to an ARP request, a particular branch taken in the
   output code did not free the mbuf that was being sent. An attacker
   could send specially-crafted ARP requests that trigger this memory
 - When processing a received ARP request, the system did not properly
   check the hardware and protocol lengths in the ARP header. These fields
   being used to reply to the request in memcpys, an attacker could send
   an ARP packet with the highest encodable lengths and cause the kernel
   to copy in the reply packet more data than is available. It has been
   demonstrated that a remote machine can thereby retrieve 249 bytes of
   kernel memory over an Ethernet link.

Solutions and Workarounds

For all NetBSD versions, you need to obtain fixed kernel sources,
rebuild and install the new kernel, and reboot the system.

The fixed source may be obtained from the NetBSD CVS repository.
The following instructions briefly summarise how to upgrade your
kernel. In these instructions, replace:

  ARCH     with your architecture (from uname -m),
  KERNCONF with the name of your kernel configuration file and
  VERSION  with the file version below

File versions containing the fixes:

 FILE  HEAD   netbsd-7   netbsd-7-0    netbsd-6   netbsd-6-1    netbsd-6-0
 ----  ----   --------   ----------    --------   ----------    ----------

To update from CVS, re-build, and re-install the kernel:

	# cd src
	# cvs update -d -P -r VERSION sys/netinet/if_arp.c
	# cvs update -d -P -r VERSION sys/net/if_arcsubr.c
	# cvs update -d -P -r VERSION sys/net/if_ecosubr.c
	# cvs update -d -P -r VERSION sys/net/if_ethersubr.c
	# cvs update -d -P -r VERSION sys/net/if_fddisubr.c
	# cvs update -d -P -r VERSION sys/net/if_tokensubr.c
	# ./ kernel=KERNCONF
	# mv /netbsd /netbsd.old
	# cp sys/arch/ARCH/compile/obj/KERNCONF/netbsd /netbsd
	# shutdown -r now

For more information on how to do this, see:

Thanks To

Maxime Villard for finding the issues and writing fixes.

Revision History

	2017-02-17	Initial release

More Information

Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at

Information about NetBSD and NetBSD security can be found at and .

Copyright 2017, The NetBSD Foundation, Inc.  All Rights Reserved.
Redistribution permitted only in full, unmodified form.


Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, LLC