Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 576626 Details for
Bug 811402
pam segfaults on failing to check for crypt() returning NULL in fips mode
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch for crasher
pam-1.1.5-rhbz811402.patch (text/plain), 1.49 KB, created by
Paul Wouters
on 2012-04-10 22:56:53 UTC
(
hide
)
Description:
patch for crasher
Filename:
MIME Type:
Creator:
Paul Wouters
Created:
2012-04-10 22:56:53 UTC
Size:
1.49 KB
patch
obsolete
>diff -Naur Linux-PAM-1.1.5.old/modules/pam_unix/pam_unix_passwd.c Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c >--- Linux-PAM-1.1.5.old/modules/pam_unix/pam_unix_passwd.c 2012-04-10 18:28:21.730000001 -0400 >+++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c 2012-04-10 18:45:00.240974523 -0400 >@@ -798,7 +798,7 @@ > tpass = create_password_hash(pamh, pass_new, ctrl, rounds); > if (tpass == NULL) { > pam_syslog(pamh, LOG_CRIT, >- "out of memory for password"); >+ "crypt() failure or out of memory for password"); > pass_new = pass_old = NULL; /* tidy up */ > unlock_pwdf(); > return PAM_BUF_ERR; >diff -Naur Linux-PAM-1.1.5.old/modules/pam_unix/passverify.c Linux-PAM-1.1.5/modules/pam_unix/passverify.c >--- Linux-PAM-1.1.5.old/modules/pam_unix/passverify.c 2011-06-21 05:04:56.000000000 -0400 >+++ Linux-PAM-1.1.5/modules/pam_unix/passverify.c 2012-04-10 18:47:14.145010719 -0400 >@@ -424,7 +424,7 @@ > } > #endif > sp = crypt(password, salt); >- if (strncmp(algoid, sp, strlen(algoid)) != 0) { >+ if (!sp || strncmp(algoid, sp, strlen(algoid)) != 0) { > /* libxcrypt/libc doesn't know the algorithm, use MD5 */ > pam_syslog(pamh, LOG_ERR, > "Algo %s not supported by the crypto backend, " >@@ -432,7 +432,9 @@ > on(UNIX_BLOWFISH_PASS, ctrl) ? "blowfish" : > on(UNIX_SHA256_PASS, ctrl) ? "sha256" : > on(UNIX_SHA512_PASS, ctrl) ? "sha512" : algoid); >- memset(sp, '\0', strlen(sp)); >+ if(sp) { >+ memset(sp, '\0', strlen(sp)); >+ } > return crypt_md5_wrapper(password); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 811402
: 576626