Security fix, CVE-2017-14492, DHCPv6 RA heap overflow.
Fix heap overflow in IPv6 router advertisement code. This is a potentially serious security hole, as a crafted RA request can overflow a buffer and crash or control dnsmasq. Attacker must be on the local network. Signed-off-by: Petr Menšík <pemensik@redhat.com>
This commit is contained in:
parent
bd80bf435e
commit
2daf3ff20f
30
dnsmasq-2.77-CVE-2017-14492.patch
Normal file
30
dnsmasq-2.77-CVE-2017-14492.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 24036ea507862c7b7898b68289c8130f85599c10 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Kelley <simon@thekelleys.org.uk>
|
||||
Date: Mon, 25 Sep 2017 18:47:15 +0100
|
||||
Subject: [PATCH 3/9] Security fix, CVE-2017-14492, DHCPv6 RA heap overflow.
|
||||
|
||||
Fix heap overflow in IPv6 router advertisement code.
|
||||
This is a potentially serious security hole, as a
|
||||
crafted RA request can overflow a buffer and crash or
|
||||
control dnsmasq. Attacker must be on the local network.
|
||||
---
|
||||
src/radv.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/radv.c b/src/radv.c
|
||||
index 1032189..9b7e52c 100644
|
||||
--- a/src/radv.c
|
||||
+++ b/src/radv.c
|
||||
@@ -198,6 +198,9 @@ void icmp6_packet(time_t now)
|
||||
/* look for link-layer address option for logging */
|
||||
if (sz >= 16 && packet[8] == ICMP6_OPT_SOURCE_MAC && (packet[9] * 8) + 8 <= sz)
|
||||
{
|
||||
+ if ((packet[9] * 8 - 2) * 3 - 1 >= MAXDNAME) {
|
||||
+ return;
|
||||
+ }
|
||||
print_mac(daemon->namebuff, &packet[10], (packet[9] * 8) - 2);
|
||||
mac = daemon->namebuff;
|
||||
}
|
||||
--
|
||||
2.9.5
|
||||
|
@ -24,6 +24,7 @@ Source1: %{name}.service
|
||||
|
||||
Patch1: dnsmasq-2.77-CVE-2017-13704.patch
|
||||
Patch2: dnsmasq-2.77-CVE-2017-14491.patch
|
||||
Patch3: dnsmasq-2.77-CVE-2017-14492.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
@ -60,6 +61,7 @@ query/remove a DHCP server's leases.
|
||||
%setup -q -n %{name}-%{version}%{?extraversion}
|
||||
%patch1 -p1 -b .CVE-2017-13704
|
||||
%patch2 -p1 -b .CVE-2017-14491
|
||||
%patch3 -p1 -b .CVE-2017-14492
|
||||
|
||||
# use /var/lib/dnsmasq instead of /var/lib/misc
|
||||
for file in dnsmasq.conf.example man/dnsmasq.8 man/es/dnsmasq.8 src/config.h; do
|
||||
@ -148,6 +150,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%changelog
|
||||
* Mon Oct 02 2017 Petr Menšík <pemensik@redhat.com> - 2.77-8
|
||||
- Security fix, CVE-2017-14491 DNS heap buffer overflow
|
||||
- Security fix, CVE-2017-14492 DHCPv6 RA heap overflow
|
||||
|
||||
* Thu Sep 14 2017 Petr Menšík <pemensik@redhat.com> - 2.77-7
|
||||
- Fix CVE-2017-13704
|
||||
|
Loading…
Reference in New Issue
Block a user