bugzilla-daemon at mindrot.org
2012-Dec-17  15:06 UTC
[Bug 2052] New: Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
            Bug ID: 2052
           Summary: Memory leak when SSH login and logout
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 6.1p1
          Hardware: MIPS
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: vijay.m at aricent.com
Created attachment 2200
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2200&action=edit
Memory allocation and deallocation information
We are using openSSH version release-5.1.
When we do ssh login and logout we notice memory leak, we noticed this
memory leak in the following functions.
1, match_list (from Line no 287) function allocated memory using
xstrdup call and this was not freeed.
2, In function input_userauth_request(from line no 299) we allocate
memory using xstrdup call and this was not freeed.
3, In Function list_hostkey_types (from line no 825) we allocate memory
using xstrdup call and this was not freeed.
4, In function kex_setup (line no : 246) we allocate memory using
buffer_init call and this was not freeed.
5, In Function channel_new (line no :332) allocate memory using xstrdup
call and this was not freeed.
6, In function channel_new (line no:317) we allocate memory using
buffer_init call and this was not freeed.
If this issue was fixed in the later release, can you please help us
with the patch.
I am attaching the logs for you reference.
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2012-Dec-17  15:08 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052 --- Comment #1 from vijay <vijay.m at aricent.com> --- Created attachment 2201 --> https://bugzilla.mindrot.org/attachment.cgi?id=2201&action=edit functions allocating and deallocating memory. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2013-Jun-05  00:58 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Darren Tucker <dtucker at zip.com.au> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au
             Blocks|                            |2076
--- Comment #2 from Darren Tucker <dtucker at zip.com.au> ---
We can take a look, however since the sshd process goes away once the
session is complete the OS should return all resources allocated by the
process.
-- 
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
2013-Jul-25  02:18 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |2130
--- Comment #3 from Damien Miller <djm at mindrot.org> ---
Retarget to openssh-6.4
-- 
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
2013-Jul-25  02:21 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|2076                        |
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
Retarget 6.3 -> 6.4
-- 
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
2014-Feb-05  23:18 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |2188
--- Comment #5 from Damien Miller <djm at mindrot.org> ---
Retarget incomplete bugs / feature requests to 6.6 release
-- 
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
2014-Feb-05  23:20 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|2130                        |
--- Comment #6 from Damien Miller <djm at mindrot.org> ---
Retarget incomplete bugs / feature requests to 6.6 release
-- 
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
2014-Apr-12  04:48 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |2226
--- Comment #7 from Damien Miller <djm at mindrot.org> ---
Retarget to 6.7 release, since 6.6 was mostly bugfixing.
-- 
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
2014-Apr-12  04:54 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|2188                        |
--- Comment #8 from Damien Miller <djm at mindrot.org> ---
Remove from 6.6 tracking bug
-- 
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
2014-Aug-29  18:38 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |2266
--- Comment #9 from Damien Miller <djm at mindrot.org> ---
Retarget incomplete bugs to 6.8 release.
-- 
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
2014-Aug-29  18:39 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|2226                        |
--- Comment #10 from Damien Miller <djm at mindrot.org> ---
These bugs are no longer targeted at the imminent 6.7 release
-- 
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
2015-Mar-02  20:59 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|2266                        |
--- Comment #11 from Damien Miller <djm at mindrot.org> ---
OpenSSH 6.8 is approaching release and closed for major work. Retarget
these bugs for the next release.
-- 
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
2015-Mar-02  21:01 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |2360
--- Comment #12 from Damien Miller <djm at mindrot.org> ---
Retarget to 6.9
-- 
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
2015-Jun-05  04:41 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|2360                        |
                 CC|                            |djm at mindrot.org
--- Comment #13 from Damien Miller <djm at mindrot.org> ---
detarget for 6.9 release, until we do the massive valgrind memleak
cleanup
-- 
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
2022-Jan-14  04:37 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
--- Comment #14 from Damien Miller <djm at mindrot.org> ---
closing a very stale bug. We've done a fair bit of work on leaks since
2012. If you have a more recent report then feel free to reopen
-- 
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
2022-Feb-25  02:56 UTC
[Bug 2052] Memory leak when SSH login and logout
https://bugzilla.mindrot.org/show_bug.cgi?id=2052
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
--- Comment #15 from Damien Miller <djm at mindrot.org> ---
closing bugs resolved before openssh-8.9
-- 
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.
Seemingly Similar Threads
- [Bug 2163] New: unchecked returned value from pam_get_item()
 - [Bug 2152] New: Simplify handling of sftp(1) command flags
 - [Bug 2185] New: Allow entering the PIN via reader pinpad
 - [Bug 2071] New: sshd closes stderr but not stdout when child process exits
 - [Bug 2106] New: When TZ isn't explicitly set ls can give different time stamps