blob: 077f7d504b12a7e0537e818d3367f1250553e380 [file] [log] [blame] [raw]
Index: UPDATING
===================================================================
--- UPDATING (版本 326722)
+++ UPDATING (版本 330566)
@@ -16,6 +16,19 @@
the tip of head, and then rebuild without this option. The bootstrap process
from older version of current across the gcc/clang cutover is a bit fragile.
+20180307 p7 FreeBSD-SA-18:01.ipsec
+ FreeBSD-SA-18:02.ntp
+ FreeBSD-EN-18:01.tzdata
+ FreeBSD-EN-18:02.file
+
+ Fix ipsec validation and use-after-free. [SA-18:01.ipsec]
+
+ Fix multiple vulnerabilities in ntp. [SA-18:02.ntp]
+
+ Update timezone database information. [EN-18:01.tzdata]
+
+ Update file(1) to new version with security update. [EN-18:02.file]
+
20171209 p6 FreeBSD-SA-17:12.openssl
Fix multiple vulnerabilities of OpenSSL.
Index: sys/conf/newvers.sh
===================================================================
--- sys/conf/newvers.sh (版本 326722)
+++ sys/conf/newvers.sh (版本 330566)
@@ -44,7 +44,7 @@
TYPE="FreeBSD"
REVISION="11.1"
-BRANCH="RELEASE-p6"
+BRANCH="RELEASE-p7"
if [ -n "${BRANCH_OVERRIDE}" ]; then
BRANCH=${BRANCH_OVERRIDE}
fi
Index: sys/netipsec/xform_ah.c
===================================================================
--- sys/netipsec/xform_ah.c (版本 326722)
+++ sys/netipsec/xform_ah.c (版本 330566)
@@ -598,6 +598,16 @@
error = EACCES;
goto bad;
}
+ if (skip + authsize + rplen > m->m_pkthdr.len) {
+ DPRINTF(("%s: bad mbuf length %u (expecting %lu)"
+ " for packet in SA %s/%08lx\n", __func__,
+ m->m_pkthdr.len, (u_long) (skip + authsize + rplen),
+ ipsec_address(&sav->sah->saidx.dst, buf, sizeof(buf)),
+ (u_long) ntohl(sav->spi)));
+ AHSTAT_INC(ahs_badauthl);
+ error = EACCES;
+ goto bad;
+ }
AHSTAT_ADD(ahs_ibytes, m->m_pkthdr.len - skip - hl);
/* Get crypto descriptors. */
@@ -642,6 +652,9 @@
/* Zeroize the authenticator on the packet. */
m_copyback(m, skip + rplen, authsize, ipseczeroes);
+ /* Save ah_nxt, since ah pointer can become invalid after "massage" */
+ hl = ah->ah_nxt;
+
/* "Massage" the packet headers for crypto processing. */
error = ah_massage_headers(&m, sav->sah->saidx.dst.sa.sa_family,
skip, ahx->type, 0);
@@ -664,7 +677,7 @@
/* These are passed as-is to the callback. */
xd->sav = sav;
- xd->nxt = ah->ah_nxt;
+ xd->nxt = hl;
xd->protoff = protoff;
xd->skip = skip;
xd->cryptoid = cryptoid;