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

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

                               ESB-2021.1881
                  USN-4972-1: PostgreSQL vulnerabilities
                                2 June 2021

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

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

Product:           PostgreSQL
Publisher:         Ubuntu
Operating System:  Ubuntu
Impact/Access:     Increased Privileges      -- Existing Account
                   Overwrite Arbitrary Files -- Existing Account
                   Access Confidential Data  -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-32029 CVE-2021-32028 CVE-2021-32027

Reference:         ESB-2021.1845
                   ESB-2021.1658
                   ESB-2021.1643

Original Bulletin: 
   https://ubuntu.com/security/notices/USN-4972-1

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

USN-4972-1: PostgreSQL vulnerabilities
01 June 2021

Several security issues were fixed in PostgreSQL.
Releases

  o Ubuntu 21.04
  o Ubuntu 20.10
  o Ubuntu 20.04 LTS
  o Ubuntu 18.04 LTS

Packages

  o postgresql-10 - Object-relational SQL database
  o postgresql-12 - Object-relational SQL database
  o postgresql-13 - Object-relational SQL database

Details

Tom Lane discovered that PostgreSQL incorrect handled certain array
subscripting calculations. An authenticated attacker could possibly use
this issue to overwrite server memory and escalate privileges.
( CVE-2021-32027 )

Andres Freund discovered that PostgreSQL incorrect handled certain
INSERT ... ON CONFLICT ... DO UPDATE commands. A remote attacker could
possibly use this issue to read server memory and obtain sensitive
information. ( CVE-2021-32028 )

Tom Lane discovered that PostgreSQL incorrect handled certain UPDATE ...
RETURNING commands. A remote attacker could possibly use this issue to read
server memory and obtain sensitive information. This issue only affected
Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. ( CVE-2021-32029 )

Update instructions

The problem can be corrected by updating your system to the following package
versions:

Ubuntu 21.04

  o postgresql-13 - 13.3-0ubuntu0.21.04.1

Ubuntu 20.10

  o postgresql-12 - 12.7-0ubuntu0.20.10.1

Ubuntu 20.04

  o postgresql-12 - 12.7-0ubuntu0.20.04.1

Ubuntu 18.04

  o postgresql-10 - 10.17-0ubuntu0.18.04.1

This update uses a new upstream release, which includes additional bug
fixes. After a standard system update you need to restart PostgreSQL to
make all the necessary changes.

References

  o CVE-2021-32029
  o CVE-2021-32028
  o CVE-2021-32027

- --------------------------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:

        https://www.auscert.org.au/bulletins/

===========================================================================
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

iQIVAwUBYLbsIuNLKJtyKPYoAQieng//RFCV7K2NYDd1AM0059+k1273mOMYS5+y
R5vQHFcQUtrixGiHopG+Ct3MUu5RZIgnif6nXzT2drm2Vrb5l1+N/tGrHHt+nNri
4SDABypeEQC1QhVqKJdrDC2C8SXXf5unHZABT0YShFPX25pl72mX3bv5GL62WaMT
iXBhgh6BICB1tRKcM/YU62Mb7Uh/tjmUN34X7dcPylp/tMTJssY+xAgcFEvAK+Um
YzrkFb+FiEK1J5K2S8AQIckptGoN9cugMrS7jP3aK0mSC3aPDOKaRnzuJBeV2m1c
CnAtzSZvbQFX2uxClcUl7ieGekr8t9FGIJVZ8lRI1QNGxDe+bw/GrAgVbyISRohG
vTh8+PHCyhYAWB6y7Vu3TXDXOWvrkB30BEB6qld+R7jcfKPTKWuNd+IVMqVvz6sg
kkw1+6HijBWtba1eBBmjPmvC9c6PO4QJDXz+3N/Qi2GReDzGM9PSmuLXs/K0gpGE
5Yksu3nJCZrW713EUPM9YZOlL7f5qrUzVzk1aH5X3NXtEl4O+ofEZ1sqZua8Kqpl
86vAVVvPHAc+FQvWF3GgzMimq8FtxIRKTEK6xRDMfbgErFn/SXxDHZ3aeVq5+CsA
q18pvUP5OkTn2Lzf3IXbA1SffoHnOf0/TQAXLaBOpAOfY8jE1LXdSA0tyvup33Av
iuflnayIlMs=
=5YGS
-----END PGP SIGNATURE-----