diff options
author | delphij <delphij@FreeBSD.org> | 2017-08-10 06:59:07 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2017-08-10 06:59:07 +0000 |
commit | 91baad1bb58bfa59793d9421521a9faf7df0edca (patch) | |
tree | 42938bf2e6e785a0b129322177b5ff0a1ddeeba9 /crypto | |
parent | 2f4b735c66deb54490042a818e8fd26fa46818f1 (diff) | |
download | FreeBSD-src-releng/11.1.zip FreeBSD-src-releng/11.1.tar.gz |
Fix OpenSSH Denial of Service vulnerability. [SA-17:06]releng/11.1
Fix VNET kernel panic with asynchronous I/O. [EN-17:07]
Fix pf(4) housekeeping thread causes kernel panic. [EN-17:08]
Approved by: so
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/openssh/auth-passwd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/openssh/auth-passwd.c b/crypto/openssh/auth-passwd.c index 63ccf3c..f6825ec 100644 --- a/crypto/openssh/auth-passwd.c +++ b/crypto/openssh/auth-passwd.c @@ -66,6 +66,8 @@ extern login_cap_t *lc; #define DAY (24L * 60 * 60) /* 1 day in seconds */ #define TWO_WEEKS (2L * 7 * DAY) /* 2 weeks in seconds */ +#define MAX_PASSWORD_LEN 1024 + void disable_forwarding(void) { @@ -87,6 +89,9 @@ auth_password(Authctxt *authctxt, const char *password) static int expire_checked = 0; #endif + if (strlen(password) > MAX_PASSWORD_LEN) + return 0; + #ifndef HAVE_CYGWIN if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) ok = 0; |