Description
Use-after-free vulnerability in the my_login function in DBD::mysql before 4.033_01 allows attackers to have unspecified impact by leveraging a call to mysql_errno after a failure of my_login.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libdbd-mysql-perl | 4.035-1 | — |
| Debian 13 | libdbd-mysql-perl | 4.035-1 | — |
| Debian 12 | libdbd-mysql-perl | 4.035-1 | — |
| Debian 8 | libdbd-mysql-perl | 4.028-2+deb8u1 | DSA-3635-1 |
| Debian 7 | libdbd-mysql-perl | 4.021-1+deb7u1 | DLA-576-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libdbd-mysql-perl | 4.033-1ubuntu0.1 | — |
| Ubuntu 14.04 LTS | libdbd-mysql-perl | 4.025-1ubuntu0.1 | USN-3103-1 |
Advisories 3
- DLA-576-1 libdbd-mysql-perl - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3635-1 libdbd-mysql-perl - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3103-1 libdbd-mysql-perl vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
References
- https://github.com/perl5-dbi/DBD-mysql/commit/cf0aa7751f6ef8445e9310a64b14dc81460ca156
- https://blog.fuzzing-project.org/50-Use-after-free-in-my_login-function-of-DBDmysql-Perl-module.html
- https://github.com/perl5-dbi/DBD-mysql/blob/4.033_01/Changes
- https://github.com/perl5-dbi/DBD-mysql/pull/45
- DSA-3635 vendor-advisory
- [oss-security] 20160726 Re: Use after free in my_login() function of DBD::mysql (Perl module) mailing-list
- [oss-security] 20160725 Use after free in my_login() function of DBD::mysql (Perl module) mailing-list
- 92118 vdb-entry
- GLSA-201701-51 vendor-advisory