mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
SSH-01-012: Fix information leak via uninitialized stack buffer
Fixes T190
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 9d67ca251c)
This commit is contained in:
@@ -108,8 +108,8 @@ static int pki_private_key_decrypt(ssh_string blob,
|
|||||||
{
|
{
|
||||||
struct ssh_cipher_struct *ciphers = ssh_get_ciphertab();
|
struct ssh_cipher_struct *ciphers = ssh_get_ciphertab();
|
||||||
struct ssh_cipher_struct cipher;
|
struct ssh_cipher_struct cipher;
|
||||||
uint8_t key_material[128];
|
uint8_t key_material[128] = {0};
|
||||||
char passphrase_buffer[128];
|
char passphrase_buffer[128] = {0};
|
||||||
size_t key_material_len;
|
size_t key_material_len;
|
||||||
ssh_buffer buffer;
|
ssh_buffer buffer;
|
||||||
ssh_string salt;
|
ssh_string salt;
|
||||||
|
|||||||
Reference in New Issue
Block a user