[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD Security Advisory 2017-002: Several vulnerabilities in ARP
-----BEGIN PGP SIGNED MESSAGE-----
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
- 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
---- ---- -------- ---------- -------- ---------- ----------
1.239 188.8.131.52 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124
1.76 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11.2.1 18.104.22.168
1.50 22.214.171.124 126.96.36.199.2.1 188.8.131.52 184.108.40.206 220.127.116.11
1.236 18.104.22.168 22.214.171.124 126.96.36.199 188.8.131.52.2.2 184.108.40.206.4.2
1.104 220.127.116.11 18.104.22.168 22.214.171.124 126.96.36.199.2.1 188.8.131.52
1.81 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 126.96.36.199
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
# ./build.sh 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:
Maxime Villard for finding the issues and writing fixes.
2017-02-17 Initial release
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
http://www.NetBSD.org/ and http://www.NetBSD.org/Security/ .
Copyright 2017, The NetBSD Foundation, Inc. All Rights Reserved.
Redistribution permitted only in full, unmodified form.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
Main Index |
Thread Index |