--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ multiple weaknesses CWE-665: Improper Initialization vulnerability in VNC client code that allows attacker to read stack memory and can be abuse for information disclosure. Combined with another vulnerability, it can be used to leak stack memory layout and in bypassing ASLR --- --- a/vnc_unixsrc/vncviewer/rfbproto.c +++ b/vnc_unixsrc/vncviewer/rfbproto.c @@ -2447,6 +2447,7 @@ } } + memset(&ke, 0, sizeof(ke)); ke.type = rfbKeyEvent; ke.down = down ? 1 : 0; ke.key = Swap32IfLE(key); @@ -2480,6 +2481,7 @@ return True; } + memset(&cct, 0, sizeof(cct)); cct.type = rfbClientCutText; cct.length = Swap32IfLE((unsigned int) len); currentMsg = rfbClientCutText;