aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-11-27 16:40:03 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-11-27 16:40:03 +0000
commit060c8fc778311f36505375c49d748b82cddc027e (patch)
treed2b84d1d508ce2eed5aa793428a831d320903a46
parent1c66fa79154aa88e16ecade770a69be5c7b9582b (diff)
downloadsrc-releng/4.5.tar.gz
src-releng/4.5.zip
Correct a remote denial-of-service attack in named(8).releng/4.5
Notes
Notes: svn path=/releng/4.5/; revision=123008
-rw-r--r--UPDATING3
-rw-r--r--contrib/bind/Version2
-rw-r--r--contrib/bind/bin/named/ns_resp.c12
-rw-r--r--sys/conf/newvers.sh2
4 files changed, 14 insertions, 5 deletions
diff --git a/UPDATING b/UPDATING
index 5214ac72939a..10a45d8610cf 100644
--- a/UPDATING
+++ b/UPDATING
@@ -18,6 +18,9 @@ minimal number of processes, if possible, for that patch. For those
updates that don't have an advisory, or to be safe, you can do a full
build and install as described in the COMMON ITEMS section.
+20031126: p37 FreeBSD-SA-03:19.bind
+ Corrected remote denial-of-service vulnerability in named(8).
+
20031003: p36 FreeBSD-SA-03:17.procfs
Correct integer underflows/overflows in procfs(5) and linprocfs(5).
diff --git a/contrib/bind/Version b/contrib/bind/Version
index e99a6add5fbb..b4a709b025d3 100644
--- a/contrib/bind/Version
+++ b/contrib/bind/Version
@@ -1 +1 @@
-8.3.3-REL
+8.3.3-REL-p1
diff --git a/contrib/bind/bin/named/ns_resp.c b/contrib/bind/bin/named/ns_resp.c
index c371fba842af..21c4095b2048 100644
--- a/contrib/bind/bin/named/ns_resp.c
+++ b/contrib/bind/bin/named/ns_resp.c
@@ -272,7 +272,7 @@ ns_resp(u_char *msg, int msglen, struct sockaddr_in from, struct qstream *qsp)
u_int qtype, qclass;
int restart; /* flag for processing cname response */
int validanswer, dbflags;
- int cname, lastwascname, externalcname;
+ int cname, lastwascname, externalcname, cachenegative;
int count, founddata, foundname;
int buflen;
int newmsglen;
@@ -912,6 +912,7 @@ tcp_retry:
cname = 0;
lastwascname = 0;
externalcname = 0;
+ cachenegative = 1;
strcpy(aname, qname);
if (count) {
@@ -981,6 +982,7 @@ tcp_retry:
name);
db_detach(&dp);
validanswer = 0;
+ cachenegative = 0;
continue;
}
if (type == T_CNAME &&
@@ -1011,6 +1013,7 @@ tcp_retry:
"last was cname, ignoring auth. and add.");
db_detach(&dp);
validanswer = 0;
+ cachenegative = 0;
break;
}
if (i < arfirst) {
@@ -1026,6 +1029,7 @@ tcp_retry:
sin_ntoa(from));
db_detach(&dp);
validanswer = 0;
+ cachenegative = 0;
continue;
} else if (!ns_samedomain(name,
qp->q_domain)) {
@@ -1039,6 +1043,7 @@ tcp_retry:
sin_ntoa(from));
db_detach(&dp);
validanswer = 0;
+ cachenegative = 0;
continue;
}
if (type == T_NS) {
@@ -1231,8 +1236,9 @@ tcp_retry:
)
)
{
- cache_n_resp(msg, msglen, from, qp->q_name,
- qp->q_class, qp->q_type);
+ if (cachenegative)
+ cache_n_resp(msg, msglen, from, qp->q_name,
+ qp->q_class, qp->q_type);
if (!qp->q_cmsglen && validanswer) {
ns_debug(ns_log_default, 3,
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 25b9d9ac6b62..85d338d544a2 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -36,7 +36,7 @@
TYPE="FreeBSD"
REVISION="4.5"
-BRANCH="RELEASE-p36"
+BRANCH="RELEASE-p37"
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"