https://bugzilla.redhat.com/show_bug.cgi?id=1360279
Bug ID: 1360279 Summary: perl-DBD-MySQL: Use after free when my_login fails Product: Security Response Component: vulnerability Keywords: Security Severity: medium Priority: medium Assignee: security-response-team@redhat.com Reporter: amaris@redhat.com CC: hhorak@redhat.com, jorton@redhat.com, jplesnik@redhat.com, perl-devel@lists.fedoraproject.org, perl-maint-list@redhat.com, ppisar@redhat.com, psabata@redhat.com
A use-after-free vulnerability in perl-DBD-MySQL was found. When my_login fails, the code tries to call mysql_errno on the mysql connection. However, my_login has already free'd that connection variable, which causes use-after-free error.
Upstream bug:
https://github.com/perl5-dbi/DBD-mysql/pull/45
Upstream patch:
https://github.com/perl5-dbi/DBD-mysql/commit/cf0aa7751f6ef8445e9310a64b14dc...
CVE request:
http://seclists.org/oss-sec/2016/q3/150