[PATCH] SMB: fix memory leak in smb3_validate_negotiate

David Disseldorp ddiss at suse.de
Fri Oct 20 12:49:36 UTC 2017


> From: Shu Wang <shuwang at redhat.com>
> 
> Found the issue by kmemleak. The pointer pneg_rsp stores the
> pointer kmalloced from SMB2_ioctl, and should be release
> before function return.

Thanks for the patch, Shu Wang. A fix for this memory leak is already
queued at https://bugzilla.samba.org/show_bug.cgi?id=13092 , alongside
an extra fix for potential use of uninitialised memory. Patches to
follow...

Cheers, David



More information about the samba-technical mailing list