Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232907 - sys-auth/pam_ssh-1.92 segfaults on abort with empty password
Summary: sys-auth/pam_ssh-1.92 segfaults on abort with empty password
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL: https://sourceforge.net/tracker/?func...
Whiteboard:
Keywords:
Depends on: 266603
Blocks: 232693
  Show dependency tree
 
Reported: 2008-07-25 10:11 UTC by Dennis Schridde
Modified: 2010-11-01 00:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2008-07-25 10:11:35 UTC
$ su -
SSH passphrase:
Segmentation fault
$

The "passphrase" entered was ^D. (Immediate abort with empty password.)

Reproducible: Always
Comment 1 Stuart Shelton 2009-03-12 12:54:50 UTC
... also, should the prompt really be "SSH passphrase" at this point?  Surely, it's the root password (or user password with 'sudo su ...') that's required, nothing to do with SSH?
Comment 2 Dennis Schridde 2010-07-11 07:45:56 UTC
Issue persists in sys-auth/pam_ssh-1.97-r1:
---
Password: 

Program received signal SIGSEGV, Segmentation fault.
0x00007f501554c4e2 in strlen () from /lib/libc.so.6
(gdb) bt full
#0  0x00007f501554c4e2 in strlen () from /lib/libc.so.6
No symbol table info available.
#1  0x00007f501476dd68 in pam_get_pass () from /lib64/security/pam_ssh.so
No symbol table info available.
#2  0x00007f501476a2d2 in pam_sm_authenticate () from /lib64/security/pam_ssh.so
No symbol table info available.
#3  0x00007f5015a41a76 in ?? () from /lib/libpam.so.0
No symbol table info available.
#4  0x00007f5015a413a8 in pam_authenticate () from /lib/libpam.so.0
No symbol table info available.
#5  0x0000000000403047 in ?? ()
No symbol table info available.
#6  0x00007f50154e8b8d in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#7  0x00000000004021b9 in ?? ()
No symbol table info available.
#8  0x00007fffb03ac638 in ?? ()
No symbol table info available.
#9  0x000000000000001c in ?? ()
No symbol table info available.
#10 0x0000000000000002 in ?? ()
No symbol table info available.
#11 0x00007fffb03acdc3 in ?? ()
No symbol table info available.
#12 0x00007fffb03acdd5 in ?? ()
No symbol table info available.
#13 0x0000000000000000 in ?? ()
No symbol table info available.
---

I've been tought every segfault triggered by input data is a potential security problem. I assume this applies here, especially with /bin/su having mode u+s set and such?
Comment 3 Dennis Schridde 2010-07-11 07:51:36 UTC
Created upstream bug: https://sourceforge.net/tracker/?func=detail&aid=3027989&group_id=16000&atid=116000
Comment 4 Dennis Schridde 2010-11-01 00:34:51 UTC
Duplicated in bug #266603, which was fixed meanwhile.