untrusted comment: verify with openbsd-80-base.pub RWSMSt0erHTctRXpt1N3GM1jp0oER7Kf8+0LIMfnYWhJ6IKiENkahViI6M7Tfwd5Ekx7JwdSfOM+LbVqvVAnazh9oA9OXOR4GAg= OpenBSD 8.0 errata 027, December 3, 2026: In sppp(4), insufficient checks of packets from the PPP peer could lead to an out-of-bounds write or a NULL pointer dereference. Apply by doing: signify -Vep /etc/signify/openbsd-80-base.pub -x 027_sppp.patch.sig \ -m - | (cd /usr/src && patch -p0) And then rebuild and install a new kernel: KK=`sysctl -n kern.osversion | cut -d# -f1` cd /usr/src/sys/arch/`machine`/compile/$KK make obj make config make make install Index: sys/net/if_spppsubr.c =================================================================== RCS file: /cvs/src/sys/net/if_spppsubr.c,v diff -u -p -r1.202 if_spppsubr.c --- sys/net/if_spppsubr.c 14 Jun 2026 05:39:23 -0000 1.202 +++ sys/net/if_spppsubr.c 22 Nov 2026 22:53:36 -0000 @@ -1829,7 +1829,7 @@ sppp_lcp_RCR(struct sppp *sp, struct lcp addlog("[invalid] "); break; case LCP_OPT_AUTH_PROTO: - if (len < 4) { + if (len < 4 || p[1] < 4) { if (debug) addlog("[invalid] "); break; @@ -3388,6 +3388,9 @@ sppp_chap_input(struct sppp *sp, struct h = mtod (m, struct lcp_header*); if (len > ntohs (h->len)) len = ntohs (h->len); + if ((h->type == CHAP_RESPONSE && sp->hisauth.proto != PPP_CHAP) || + (h->type != CHAP_RESPONSE && sp->myauth.proto != PPP_CHAP)) + return; switch (h->type) { /* challenge, failure and success are his authproto */ @@ -3781,6 +3784,9 @@ sppp_pap_input(struct sppp *sp, struct m h = mtod (m, struct lcp_header*); if (len > ntohs (h->len)) len = ntohs (h->len); + if ((h->type == PAP_REQ && sp->hisauth.proto != PPP_PAP) || + (h->type != PAP_REQ && sp->myauth.proto != PPP_PAP)) + return; switch (h->type) { /* PAP request is my authproto */ case PAP_REQ: