Bug 1395591 (CVE-2016-1249)

Summary: CVE-2016-1249 perl-DBD-MySQL: Out-of-bounds read when using server-side prepared statement support
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: briang, carnil, dkholia, hhorak, jorton, jplesnik, kanderso, perl-devel, perl-maint-list, ppisar, psabata, sardella
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20161115,reported=20161115,source=oss-security,cvss2=4.0/AV:N/AC:H/Au:N/C:P/I:N/A:P,cvss3=4.8/CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L,cwe=CWE-125,rhel-5/perl-DBD-MySQL=wontfix,rhel-6/perl-DBD-MySQL=wontfix,rhel-7/perl-DBD-MySQL=wontfix,rhscl-2/rh-perl520-perl-DBD-MySQL=wontfix,rhscl-2/rh-perl524-perl-DBD-MySQL=wontfix,fedora-all/perl-DBD-MySQL=affected
Fixed In Version: perl-DBD-MySQL 4.039 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-19 04:41:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1395592    
Bug Blocks: 1395597    

Description Andrej Nemec 2016-11-16 09:38:06 UTC
A vulnerability was discovered in perl-DBD-MySQL that can lead to an out-of-bounds read when using server side prepared statements with an unaligned number of placeholders in WHERE condition and output fields in SELECT expression.

This problem is only exposed when the user uses server-side prepared statement support, which is NOT default behavior and was turned off back for all drivers per MySQL AB decision in 2006 due to issues with server-side prepared statements in the server. The behavior of the driver is normally emulated.



Upstream patch:


Comment 1 Andrej Nemec 2016-11-16 09:38:57 UTC
Created perl-DBD-MySQL tracking bugs for this issue:

Affects: fedora-all [bug 1395592]