blob: d5bf740e843f6040d90f67f89a2b443ba3781718 [file] [log] [blame]
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001a buffer size check can cause denial of service under certain circumstances
2
3[security]
4The following flaw in BIND was reported by ISC:
5
6A buffer size check used to guard against overflow could cause named to exit with an INSIST failure In apl_42.c.
7
8A server could exit due to an INSIST failure in apl_42.c when performing certain string formatting operations.
9
10Upstream-Status: Backport
11CVE: CVE-2015-8704
12
13[The patch is taken from BIND 9.10.3:
14https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2015-8704]
15
16Signed-off-by: Derek Straka <derek@asterius.io>
17diff --git a/lib/dns/rdata/in_1/apl_42.c b/lib/dns/rdata/in_1/apl_42.c
18index bedd38e..28eb7f2 100644
19--- a/lib/dns/rdata/in_1/apl_42.c
20+++ b/lib/dns/rdata/in_1/apl_42.c
21@@ -116,7 +116,7 @@ totext_in_apl(ARGS_TOTEXT) {
22 isc_uint8_t len;
23 isc_boolean_t neg;
24 unsigned char buf[16];
25- char txt[sizeof(" !64000")];
26+ char txt[sizeof(" !64000:")];
27 const char *sep = "";
28 int n;