Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libevent dns remote stack overread vulnerability #317

Closed
asn-d6 opened this issue Jan 27, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@asn-d6
Copy link

commented Jan 27, 2016

Hello,

the name_parse() function in libevent's DNS code is vulnerable to a buffer overread.

971         if (cp != name_out) {
972             if (cp + 1 >= end) return -1;
973             *cp++ = '.';
974         }
975         if (cp + label_len >= end) return -1;
976         memcpy(cp, packet + j, label_len);
977         cp += label_len;
978         j += label_len;

No check is made against length before the memcpy occurs.

This was found through the Tor bug bounty program and the discovery should be credited to 'Guido Vranken'.

@azat azat self-assigned this Feb 1, 2016

@azat azat closed this in 96f64a0 Feb 1, 2016

@azat

This comment has been minimized.

Copy link
Member

commented Feb 1, 2016

@lfam

This comment has been minimized.

Copy link

commented Feb 2, 2017

This was assigned CVE-2016-10195:

http://seclists.org/oss-sec/2017/q1/282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.