bugzilla-daemon at mindrot.org
2025-Oct-13 10:10 UTC
[Bug 3882] New: When sshpam_handle is set, sshpam_init() leaks memory
https://bugzilla.mindrot.org/show_bug.cgi?id=3882
Bug ID: 3882
Summary: When sshpam_handle is set, sshpam_init() leaks memory
Product: Portable OpenSSH
Version: 10.1p1
Hardware: Other
OS: Solaris
Status: NEW
Severity: enhancement
Priority: P5
Component: PAM support
Assignee: unassigned-bugs at mindrot.org
Reporter: chsdik at gmail.com
In OpenSSH 10.0 and earlier, when sshpam_handle is
set in shhpam_init(), we either return 0 (same user) or we call
pam_end() and we ca;; pam_start/
In OpenSSH 10.1 or later, when sshpam_handle is set,
we either call fatal (different user) or continue
to pam_start().
I believe we should be returning 0 instead; but we
certainly leak a pam handle.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2025-Oct-13 23:55 UTC
[Bug 3882] When sshpam_handle is set, sshpam_init() leaks memory
https://bugzilla.mindrot.org/show_bug.cgi?id=3882
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned-bugs at mindrot.org |djm at mindrot.org
CC| |djm at mindrot.org,
| |dtucker at dtucker.net
Attachment #3913| |ok?(dtucker at dtucker.net)
Flags| |
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Created attachment 3913
--> https://bugzilla.mindrot.org/attachment.cgi?id=3913&action=edit
don't leak pam handles
Good catch. I think this should fix it
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2025-Oct-13 23:55 UTC
[Bug 3882] When sshpam_handle is set, sshpam_init() leaks memory
https://bugzilla.mindrot.org/show_bug.cgi?id=3882
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |3880
Referenced Bugs:
https://bugzilla.mindrot.org/show_bug.cgi?id=3880
[Bug 3880] Tracking bug for openssh-10.3
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2025-Oct-14 01:22 UTC
[Bug 3882] When sshpam_handle is set, sshpam_init() leaks memory
https://bugzilla.mindrot.org/show_bug.cgi?id=3882
Darren Tucker <dtucker at dtucker.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #3913|ok?(dtucker at dtucker.net) |ok+
Flags| |
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2025-Oct-14 03:54 UTC
[Bug 3882] When sshpam_handle is set, sshpam_init() leaks memory
https://bugzilla.mindrot.org/show_bug.cgi?id=3882
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
This has been committed.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.