CVE-2015-3165: Double Free

Published May 14, 2015
·
Updated

Double free vulnerability in PostgreSQL before 9.0.20, 9.1.x before 9.1.16, 9.2.x before 9.2.11, 9.3.x before 9.3.7, and 9.4.x before 9.4.2 allows remote attackers to cause a denial of service (crash) by closing an SSL session at a time when the authentication timeout will expire during the session shutdown sequence.

Other sources

The PostgreSQL project reports the following issue:

If a unauthenticated client disconnects just as the authentication timeout expires, the server will doubly free an allocation. This can crash the server, creating a denial of service. Since that particular server process exchanges no further data with any client, worse consequences are unlikely.

This flaw is fixed in upstream versions 9.4.2, 9.3.7, 9.2.11, 9.1.16, and 9.0.20 of PostgreSQL.

Acknowledgements:

Red Hat would like to thank the PostgreSQL project for reporting this issue. Upstream acknowledges Benkocs Norbert Attila as the original reporter.

— Red Hat

Affected Software

49 affected componentsFixes available
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
Canonical Ubuntu Linux=15.04
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Apple Mac OS X Server=5.0.2
PostgreSQL postgresql<=9.0.19
PostgreSQL postgresql=9.1
PostgreSQL postgresql=9.1.1
PostgreSQL postgresql=9.1.2
PostgreSQL postgresql=9.1.3
PostgreSQL postgresql=9.1.4
PostgreSQL postgresql=9.1.5
PostgreSQL postgresql=9.1.6
PostgreSQL postgresql=9.1.7
PostgreSQL postgresql=9.1.8
PostgreSQL postgresql=9.1.9
PostgreSQL postgresql=9.1.10
PostgreSQL postgresql=9.1.11
PostgreSQL postgresql=9.1.12
PostgreSQL postgresql=9.1.13
PostgreSQL postgresql=9.1.14
PostgreSQL postgresql=9.1.15
PostgreSQL postgresql=9.2
PostgreSQL postgresql=9.2.1
PostgreSQL postgresql=9.2.2
PostgreSQL postgresql=9.2.3
PostgreSQL postgresql=9.2.4
PostgreSQL postgresql=9.2.5
PostgreSQL postgresql=9.2.6
PostgreSQL postgresql=9.2.7
PostgreSQL postgresql=9.2.8
PostgreSQL postgresql=9.2.9
PostgreSQL postgresql=9.2.10
PostgreSQL postgresql=9.3
PostgreSQL postgresql=9.3.1
PostgreSQL postgresql=9.3.2
PostgreSQL postgresql=9.3.3
PostgreSQL postgresql=9.3.4
PostgreSQL postgresql=9.3.5
PostgreSQL postgresql=9.3.6
PostgreSQL postgresql=9.4.0
PostgreSQL postgresql=9.4.1
redhat/postgresql<9.4.2
9.4.2
redhat/postgresql<9.3.7
9.3.7
redhat/postgresql<9.2.11
9.2.11
redhat/postgresql<9.1.16
9.1.16
redhat/postgresql<9.0.20
9.0.20

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 9.4.2
  2. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 9.3.7
  3. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 9.2.11
  4. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 9.1.16
  5. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 9.0.20
  6. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.0.20
  7. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.1.16
  8. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.2.11
  9. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.3.7
  10. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.4.2

Event History

May 14, 2015
Data Sourced
via Red Hat·10:12 AM
DescriptionSeverityAffected Software
May 28, 2015
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
02:59 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2015-3165?

CVE-2015-3165 is classified as a denial of service vulnerability due to a double free issue in PostgreSQL.

2

How do I fix CVE-2015-3165?

To remediate CVE-2015-3165, upgrade PostgreSQL to the latest version that is not affected: 9.0.20, 9.1.16, 9.2.11, 9.3.7, or 9.4.2 and later.

3

What versions of PostgreSQL are affected by CVE-2015-3165?

CVE-2015-3165 affects PostgreSQL versions prior to 9.0.20, 9.1.x before 9.1.16, 9.2.x before 9.2.11, 9.3.x before 9.3.7, and 9.4.x before 9.4.2.

4

Can CVE-2015-3165 be exploited remotely?

Yes, CVE-2015-3165 can be exploited remotely by attackers to cause a crash in PostgreSQL.

5

What systems are vulnerable to CVE-2015-3165?

Systems with affected versions of PostgreSQL running on various distributions like Ubuntu and Debian are vulnerable to CVE-2015-3165.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203