Bug 907892 (CVE-2013-0255)

Summary: CVE-2013-0255 postgresql: array indexing error in enum_recv()
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: devrim, hhorak, praiskup, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20130207,reported=20130204,source=upstream,cvss2=5.5/AV:N/AC:L/Au:S/C:P/I:N/A:P,rhel-5/postgresql=notaffected,rhel-5/postgresql84=affected,rhel-6/postgresql=affected,fedora-all/postgresql=affected
Fixed In Version: PostgreSQL 9.2.3, PostgreSQL 9.1.8, PostgreSQL 9.0.12, PostgreSQL 8.4.16, PostgreSQL 8.3.23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 908722, 1017833, 1017835, 1017836, 1017837    
Bug Blocks: 907896    

Description Jan Lieskovsky 2013-02-05 08:33:34 EST
An array index error, leading to out of heap-based buffer bounds read flaw was found in the way PostgreSQL, an advanced Object-Relational database management system (DBMS), performed retrieval of textual form of error message representation when processing certain enumeration types. An unprivileged database user could issue a specially-crafted SQL query that, when processed by the server component of the PostgreSQL service, would lead to denial of service (daemon crash) or disclosure (of certain portions of) server memory.
Comment 2 Jan Lieskovsky 2013-02-05 08:39:13 EST
This issue did NOT affect the versions of the postgresql package, as shipped with Red Hat Enterprise Linux 5.

--

This issue affects the version of the postgresql84 package, as shipped with Red Hat Enterprise Linux 5 and the version of postgresql package, as shipped with Red Hat Enterprise Linux 6.

--

This issue affects the versions of the postgresql package, as shipped with Fedora release of 16, 17, and 18.
Comment 3 Jan Lieskovsky 2013-02-05 08:41:04 EST
Acknowledgements:

Red Hat would like to thank the PostgreSQL project for reporting this issue. Upstream acknowledges Sumit Soni via Secunia SVCRP as the original issue reporter.
Comment 7 Jan Lieskovsky 2013-02-07 06:35:35 EST
Public via:
  http://www.postgresql.org/support/security/
Comment 8 Jan Lieskovsky 2013-02-07 06:36:21 EST
Created postgresql tracking bugs for this issue

Affects: fedora-all [bug 908722]
Comment 9 Jan Lieskovsky 2013-02-07 06:41:16 EST
Statement:

This issue did not affect the version of postgresql, as shipped with Red Hat Enterprise Linux 5. This issue affects the version of postgresql84, as shipped with Red Hat Enterprise Linux 5 and the version of postgresql, as shipped with Red Hat Enterprise Linux 6. Red Hat Security Response Team has rated this issue as having moderate security impact. A future update might address this flaw. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Comment 11 Fedora Update System 2013-02-10 23:53:41 EST
postgresql-9.2.3-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 12 Fedora Update System 2013-02-16 22:29:56 EST
postgresql-9.1.8-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 16 errata-xmlrpc 2013-10-29 15:44:45 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 5

Via RHSA-2013:1475 https://rhn.redhat.com/errata/RHSA-2013-1475.html