-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2016.2064
           Moderate: rh-postgresql94-postgresql security update
                             1 September 2016

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           rh-postgresql94-postgresql
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 6
                   Red Hat Enterprise Linux WS/Desktop 6
                   Red Hat Enterprise Linux Server 7
                   Red Hat Enterprise Linux WS/Desktop 7
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
                   Increased Privileges            -- Existing Account
                   Denial of Service               -- Existing Account
                   Access Confidential Data        -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2016-5424 CVE-2016-5423 

Reference:         ASB-2016.0083

Original Bulletin: 
   https://rhn.redhat.com/errata/RHSA-2016-1781.html

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Moderate: rh-postgresql94-postgresql security update
Advisory ID:       RHSA-2016:1781-01
Product:           Red Hat Software Collections
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2016-1781.html
Issue date:        2016-08-31
CVE Names:         CVE-2016-5423 CVE-2016-5424 
=====================================================================

1. Summary:

An update for rh-postgresql94-postgresql is now available for Red Hat
Software Collections.

Red Hat Product Security has rated this update as having a security impact
of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which
gives a detailed severity rating, is available for each vulnerability from
the CVE link(s) in the References section.

2. Relevant releases/architectures:

Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) - x86_64

3. Description:

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

The following packages have been upgraded to a newer upstream version:
rh-postgresql94-postgresql (9.4.9)

Security Fix(es):

* A flaw was found in the way PostgreSQL server handled certain SQL
statements containing CASE/WHEN commands. A remote, authenticated attacker
could use a specially crafted SQL statement to cause PostgreSQL to crash or
disclose a few bytes of server memory or possibly execute arbitrary code.
(CVE-2016-5423)

* A flaw was found in the way PostgreSQL client programs handled database
and role names containing newlines, carriage returns, double quotes, or
backslashes. By crafting such an object name, roles with the CREATEDB or
CREATEROLE option could escalate their privileges to superuser when a
superuser next executes maintenance with a vulnerable client program.
(CVE-2016-5424)

Red Hat would like to thank the PostgreSQL project for reporting these
issues. Upstream acknowledges Heikki Linnakangas as the original reporter
of CVE-2016-5423; and Nathan Bossart as the original reporter of
CVE-2016-5424.

4. Solution:

For details on how to apply this update, which includes the changes
described in this advisory, refer to:

https://access.redhat.com/articles/11258

If the postgresql service is running, it will be automatically restarted
after installing this update.

5. Bugs fixed (https://bugzilla.redhat.com/):

1364001 - CVE-2016-5423 postgresql: CASE/WHEN with inlining can cause untrusted pointer dereference
1364002 - CVE-2016-5424 postgresql: privilege escalation via crafted database and role names

6. Package List:

Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6):

Source:
rh-postgresql94-postgresql-9.4.9-1.el6.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6):

Source:
rh-postgresql94-postgresql-9.4.9-1.el6.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7):

Source:
rh-postgresql94-postgresql-9.4.9-1.el6.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6):

Source:
rh-postgresql94-postgresql-9.4.9-1.el6.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el6.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7):

Source:
rh-postgresql94-postgresql-9.4.9-1.el7.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el7.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1):

Source:
rh-postgresql94-postgresql-9.4.9-1.el7.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el7.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2):

Source:
rh-postgresql94-postgresql-9.4.9-1.el7.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el7.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7):

Source:
rh-postgresql94-postgresql-9.4.9-1.el7.src.rpm

x86_64:
rh-postgresql94-postgresql-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-contrib-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-debuginfo-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-devel-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-docs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-libs-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plperl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-plpython-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-pltcl-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-server-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-static-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-test-9.4.9-1.el7.x86_64.rpm
rh-postgresql94-postgresql-upgrade-9.4.9-1.el7.x86_64.rpm

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

7. References:

https://access.redhat.com/security/cve/CVE-2016-5423
https://access.redhat.com/security/cve/CVE-2016-5424
https://access.redhat.com/security/updates/classification/#moderate
https://www.postgresql.org/about/news/1644/
https://www.postgresql.org/docs/current/static/release-9-4-6.html

8. Contact:

The Red Hat security contact is <secalert@redhat.com>. More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2016 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFXxnVAXlSAg2UNWIIRAsN3AKC6gcgXEBHRg/ou4VNmfBy4Nxh/FQCfbuEr
y0yhdKD/urkt+1lG1I34sxo=
=qiqO
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBV8d89ox+lLeg9Ub1AQjk7A//dCjDIkqndrTOepCE8m0Yqe9eejX1dBYE
lYNABCW1xSU/n7sd35f2q+bUjnQSsfqlXuzCQEd5uxizK5WYdBLdvxe6FJALD+Dj
hZL/TeTOv8RFn5VNfSCJEorsoT0LsMEHL8071dP6hhiMF8sCdsJHjw/IpjX++Lkm
O/4HhdJGbtgLnkOQTNHXMevht+zzqnShb/bTBYzLwm2NKxl3YnbTS0TSevzhudUt
J3FXyB+q3iLlIuMd8mh3AWCSQ/53QqJXTATFKlSkOXppsxEXpcn1J3PyZngpXOE6
xjLPaXRoPs9cX4FZNHLKfbgFJnZLpedMC0SIBgMT5pN2m2fTPJJ8r2WwquaH1UOX
Fzm25fVOkzbycJ8JyFmwRgsSiqXEE99djLLTsr3aV6T61CXCab/7ArdNB4LEOT88
vSdnv+oALQmg/3iU3nd1RpTzHlRReVDqqeHUYGxe/QrCh/qqM8MrFLhB2ggpMWmz
Tj3EWfO/L0xmamRvs9ruc1LoO3pBQiOkz7gk32HqSzXvLsXHCkXlPbgjZRSdLTK/
ecqx2AZF9ej+aGHs3m6h/QPUFoSp5lRbMsUlOpkW1OpMfKQ5sYY1uCQ0yPoW6+H6
FIoqEc3FLNvklRYjqFvE6lZic0vBcCP6/nyIH+iaC/3SjB4cFYzDcWxCS1jNWG6I
E8N3OorI0vw=
=HNv4
-----END PGP SIGNATURE-----