[gnutls-devel] libtasn1 | Fix memory leak in asn1_array2tree() (#14)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Jul 23 10:14:38 CEST 2019

Tim Rühsen commented:

It's from fuzzing, so I can hardly tell (I wrote a tool to convert fuzzer data into the above array. In this case I hand-tuned the fields to have the smallest possible reproducer).

Since `asn1_array2tree()` is a public API, it should gracefully deal with any kind of input. The days of "please only serve proper input to my API" are over. The smallest glitches are meanwhile used for DOS attacks or (remote) code execution, directly or indirectly.

I couldn't find any obvious bugs in `asn1_array2tree()` yesterday (hey, it just build a tree), so maybe it's in `asn1_delete_structure()` !? Will have a look, but any help appreciated.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/issues/14#note_194671048
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190723/e0b29ffe/attachment.html>

More information about the Gnutls-devel mailing list