Security Advisory Important: postgresql92-postgresql security update

Advisory: RHSA-2014:0221-1
Type: Security Advisory
Severity: Important
Issued on: 2014-02-27
Last updated on: 2014-02-27
Affected Products: Red Hat Software Collections 1 for RHEL 6
CVEs (cve.mitre.org): CVE-2014-0060
CVE-2014-0061
CVE-2014-0062
CVE-2014-0063
CVE-2014-0064
CVE-2014-0065
CVE-2014-0066
CVE-2014-2669

Details

Updated postgresql92-postgresql packages that fix multiple security issues
are now available for Red Hat Software Collections 1.

The Red Hat Security Response Team has rated this update as having
Important security impact. Common Vulnerability Scoring System (CVSS) base
scores, which give detailed severity ratings, are available for each
vulnerability from the CVE links in the References section.

PostgreSQL is an advanced object-relational database management system
(DBMS).

Multiple stack-based buffer overflow flaws were found in the date/time
implementation of PostgreSQL. An authenticated database user could provide
a specially crafted date/time value that, when processed, could cause
PostgreSQL to crash or, potentially, execute arbitrary code with the
permissions of the user running PostgreSQL. (CVE-2014-0063)

Multiple integer overflow flaws, leading to heap-based buffer overflows,
were found in various type input functions in PostgreSQL. An authenticated
database user could possibly use these flaws to crash PostgreSQL or,
potentially, execute arbitrary code with the permissions of the user
running PostgreSQL. (CVE-2014-0064)

Multiple potential buffer overflow flaws were found in PostgreSQL.
An authenticated database user could possibly use these flaws to crash
PostgreSQL or, potentially, execute arbitrary code with the permissions of
the user running PostgreSQL. (CVE-2014-0065)

It was found that granting an SQL role to a database user in a PostgreSQL
database without specifying the "ADMIN" option allowed the grantee to
remove other users from their granted role. An authenticated database user
could use this flaw to remove a user from an SQL role which they were
granted access to. (CVE-2014-0060)

A flaw was found in the validator functions provided by PostgreSQL's
procedural languages (PLs). An authenticated database user could possibly
use this flaw to escalate their privileges. (CVE-2014-0061)

A race condition was found in the way the CREATE INDEX command performed
multiple independent lookups of a table that had to be indexed. An
authenticated database user could possibly use this flaw to escalate their
privileges. (CVE-2014-0062)

It was found that the chkpass extension of PostgreSQL did not check the
return value of the crypt() function. An authenticated database user could
possibly use this flaw to crash PostgreSQL via a null pointer dereference.
(CVE-2014-0066)

Red Hat would like to thank the PostgreSQL project for reporting these
issues. Upstream acknowledges Noah Misch as the original reporter of
CVE-2014-0060 and CVE-2014-0063, Heikki Linnakangas and Noah Misch as the
original reporters of CVE-2014-0064, Peter Eisentraut and Jozef Mlich as
the original reporters of CVE-2014-0065, Andres Freund as the original
reporter of CVE-2014-0061, Robert Haas and Andres Freund as the original
reporters of CVE-2014-0062, and Honza Horak and Bruce Momjian as the
original reporters of CVE-2014-0066.

These updated packages upgrade PostgreSQL to version 9.2.7, which fixes
these issues as well as several non-security issues. Refer to the
PostgreSQL Release Notes for a full list of changes:

http://www.postgresql.org/docs/9.2/static/release-9-2-7.html

All PostgreSQL users are advised to upgrade to these updated packages,
which contain backported patches to correct these issues. If the postgresql
service is running, it will be automatically restarted after installing
this update.


Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to use the
Red Hat Network to apply this update are available at
https://access.redhat.com/site/articles/11258

Updated packages

Red Hat Software Collections 1 for RHEL 6

SRPMS:
postgresql92-postgresql-9.2.7-1.1.el6.src.rpm
File outdated by:  RHSA-2015:0699
    MD5: 9699528f8d3bca76120e3f9e92be5b36
SHA-256: b18315010ccd452fc549b1238a66987996d6bf02cb22b2149da5540eb4c89968
 
x86_64:
postgresql92-postgresql-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: e049d43d4acbf2739138cdcfdd55aafb
SHA-256: 0879a18262600e840bcb074e325b130ba2421220ec55c64215041568e86b97fb
postgresql92-postgresql-contrib-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 2cc1b559774c88b678b23acc1c041db3
SHA-256: 82f86de0c9b46997f025fb8ada14f50dd95f746f62281219135133c9ecbe0c83
postgresql92-postgresql-debuginfo-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 5065718726c2c10a212db4003467c7b9
SHA-256: d5f7fb5df8a3f73ea80b6409ff61b05504f1ae2472da15a3b1623cc5409d655f
postgresql92-postgresql-devel-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 92b3d7dc2cc809023ca5fb7ceb7a7ebe
SHA-256: a97cd5f6001b7866153fc12df62886508b4141c14d3310ce38f69e1b9272a7dd
postgresql92-postgresql-docs-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: d25591f1aed88359d00877e030d1f195
SHA-256: 0ac1997d5adc772e117aa493ce2201d279af2d0890dec34ac07ca28c20db7bdd
postgresql92-postgresql-libs-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: e346c4e79cdb7ee63bdee17b7955128a
SHA-256: 58e653a029781e76a05b41a39971af644446e45bdb7a6e0b25943d7bedf87b6c
postgresql92-postgresql-plperl-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 3d040b5e288bae05ca392efbf52f0faa
SHA-256: 1fe1105cbd61738fb0e445090fd6888bad21a6c7ab960762219acde2a0912d0b
postgresql92-postgresql-plpython-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: a144366a234838fe490471d8f52a256a
SHA-256: 037446e6c73415183179c9e95532bdcc071f37190382b66b9e4b585198d23dd3
postgresql92-postgresql-pltcl-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 4b30dcbda9da4007f5dd39441b146c0b
SHA-256: 3757aa6d843bdb1197373a587787177843b6b05c5957cd930a5d67babf2372a5
postgresql92-postgresql-server-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 6878b89deb0946912d7f7855b014470a
SHA-256: e76db63db0ac6a1fa4e9ae366a323a10c062bf7830189497a8d3e74bf1b2cb2a
postgresql92-postgresql-test-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 770265f1531fd0885b88eda444dddfb4
SHA-256: f7d1d6fe208c7232d9bc090cbd22868d1ac7010e67d884615b6de4c46a2d78d0
postgresql92-postgresql-upgrade-9.2.7-1.1.el6.x86_64.rpm
File outdated by:  RHBA-2014:0616
    MD5: 930b0317856b25d5715ef90a83475e12
SHA-256: 7fbde2b39bcfbce7373fff2d3d61fc7131256394ac28464174ca537faf52714f
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

1065219 - CVE-2014-0060 postgresql: SET ROLE without ADMIN OPTION allows adding and removing group members
1065220 - CVE-2014-0061 postgresql: privilege escalation via procedural language validator functions
1065222 - CVE-2014-0062 postgresql: CREATE INDEX race condition possibly leading to privilege escalation
1065226 - CVE-2014-0063 postgresql: stack-based buffer overflow in datetime input/output
1065230 - CVE-2014-0064 postgresql: integer overflows leading to buffer overflows
1065235 - CVE-2014-0065 postgresql: possible buffer overflow flaws
1065236 - CVE-2014-0066 postgresql: NULL pointer dereference


References



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/