FS#73275 - [exim] crash when authenticating users via pam

Attached to Project: Community Packages
Opened by Alan (lameventanas) - Thursday, 06 January 2022, 07:49 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 25 August 2022, 19:21 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Exim crashes every time a user tries to authenticate.

When running the server with:
/usr/bin/exim -bd -d

I can see:
...
21562 Running PAM authentication for user "username"
free(): invalid pointer
18673 child 21562 ended: status=0x86
18673 signal exit, signal 6 (core dumped)
...
And a core dump is produced

Additional info:
* package version: 4.95-2
* link to upstream bug report: https://bugs.exim.org/show_bug.cgi?id=2813

Steps to reproduce:
1. Configure exim with pam authentication
2. Try to authenticate
3. Crash
This task depends upon

Closed by  Felix Yan (felixonmars)
Thursday, 25 August 2022, 19:21 GMT
Reason for closing:  Fixed
Comment by Alan (lameventanas) - Thursday, 06 January 2022, 10:33 GMT
This patch fixes it for me:
https://git.exim.org/exim.git/patch/51be321b27825c01829dffd90f11bfff256f7e42

I added this to PKGBUILD:

prepare(){
patch -d $pkgname-$pkgver -p2 -i "$srcdir"/exim_fix_pam.patch
}
Comment by Felix Yan (felixonmars) - Thursday, 25 August 2022, 19:21 GMT
This should have been resolved in the current version. Sorry for the delay in response.

Loading...