Bug 2003

Summary: [mux.c] fix memory leaks when new session message is malformed
Product: Portable OpenSSH Reporter: Bert Wesarg <Bert.Wesarg>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: critical CC: djm
Priority: P2    
Version: 6.0p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1986    
Attachments:
Description Flags
Patch fixing memory leak none

Description Bert Wesarg 2012-05-03 04:10:07 AEST
Created attachment 2148 [details]
Patch fixing memory leak

The malf: exception block is also used when extracting the environments
for the new session, therefor we need also to free those if it fails.

Also free the context object in two cleanup blocks.

I set the severity to critical because this could be used to DOS the muxserver by leaking memory in them.
Comment 1 Damien Miller 2012-07-06 11:37:36 AEST
patch applied - thanks.
Comment 2 Damien Miller 2015-08-11 23:03:55 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1