mainGnuTLS - Support: sr #107606, Use of uninitialized variable kid...

 
 

sr #107606: Use of uninitialized variable kid in _gnutls_check_key_cert_match

Submitter:  Vitaly Kruglikov <vitalyk>
Submitted:  Sat 26 Feb 2011 02:54:34 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 26 Feb 2011 02:54:34 AM UTC, original submission:  

Found in version gnutls v2.10.4

Likely to be a problem in the future when something besides RSA and DSA is supported.

kid is declared uninitialized:

>>

202  _gnutls_check_key_cert_match (gnutls_certificate_credentials_t res)
203  {
...
205    gnutls_datum_t kid;
<<

If "pk" is neither GNUTLS_PK_RSA nor GNUTLS_PK_DSA, then kid remains uninitialized.

Then, subsequently used uninitialized here:

>>

239    if (cid.size != kid.size)

...

242        _gnutls_free_datum (&kid);

...

247    if (memcmp (kid.data, cid.data, kid.size) != 0)
<<

Vitaly Kruglikov <vitalyk>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nmav (Updated the item)
  • -email is unavailable- added by vitalyk (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-04-10 nmav StatusNone Done
        Assigned toNone nmav
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code