Created attachment 1581 [details] fix double-free if parsing forwarding specification fails Arthur de Jong reported that ssh can be made to crash with a double-free as follows: % ssh somehost [...] % ~C ssh> -L *.80:localhost:80 Bad forwarding specification. *** glibc detected *** ssh: double free or corruption (fasttop): 0xb95431b0 *** This is because parse_forward frees fwd->connect_host and fwd->listen_host but doesn't set them to NULL, and so process_cmdline tries to free them again. Patch attached.
on the 5.2 list
patch applied, will be in openssh-5.2 - thanks!
*** Bug 1548 has been marked as a duplicate of this bug. ***
Close bugs fixed/reviewed for openssh-5.2 release