kumquat-buildroot/package/busybox/0005-ntpd.patch
Gustavo Zacarias 39750198fc busybox: add upstream fixes for 1.25.0
Add upstream patches to fix gzip (bug #9131 - incorrect compression
levels), ip (route add bug) and ntpd (CVE-2016-6301 - NTP server denial
of service).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-08-17 15:02:35 +02:00

21 lines
531 B
Diff

From upstream: https://busybox.net/downloads/fixes-1.25.0/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
--- busybox-1.25.0/networking/ntpd.c
+++ busybox-1.25.0-ntpd/networking/ntpd.c
@@ -2051,6 +2051,13 @@ recv_and_process_client_pkt(void /*int f
goto bail;
}
+ /* Respond only to client and symmetric active packets */
+ if ((msg.m_status & MODE_MASK) != MODE_CLIENT
+ && (msg.m_status & MODE_MASK) != MODE_SYM_ACT
+ ) {
+ goto bail;
+ }
+
query_status = msg.m_status;
query_xmttime = msg.m_xmttime;