mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
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.
This commit is contained in:
@@ -35,6 +35,14 @@ version 2.78
|
|||||||
and Kevin Hamacher of the Google Security Team for
|
and Kevin Hamacher of the Google Security Team for
|
||||||
finding this.
|
finding this.
|
||||||
|
|
||||||
|
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.
|
||||||
|
CVE-2017-14492 applies.
|
||||||
|
Credit to Felix Wilhelm, Fermin J. Serna, Gabriel Campana
|
||||||
|
and Kevin Hamacher of the Google Security Team for
|
||||||
|
finding this.
|
||||||
|
|
||||||
|
|
||||||
version 2.77
|
version 2.77
|
||||||
|
|||||||
@@ -198,6 +198,9 @@ void icmp6_packet(time_t now)
|
|||||||
/* look for link-layer address option for logging */
|
/* look for link-layer address option for logging */
|
||||||
if (sz >= 16 && packet[8] == ICMP6_OPT_SOURCE_MAC && (packet[9] * 8) + 8 <= sz)
|
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);
|
print_mac(daemon->namebuff, &packet[10], (packet[9] * 8) - 2);
|
||||||
mac = daemon->namebuff;
|
mac = daemon->namebuff;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user