CVE-2015-3165: Double Free
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.4.2 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.3.7 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.2.11 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.1.16 - Upgrade
Upgrade
redhat/postgresqlto a version that resolves this vulnerability.Fixed in 9.0.20 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 9.0.20 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 9.1.16 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 9.2.11 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 9.3.7 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 9.4.2
Event History
Frequently Asked Questions
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.
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.
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.
Can CVE-2015-3165 be exploited remotely?
Yes, CVE-2015-3165 can be exploited remotely by attackers to cause a crash in PostgreSQL.
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.