CVE-2015-3166: Buffer Overflow
The PostgreSQL project reports the following issue:
The server regularly ignores the return value of certain standard library functions, such as sprintf() and putenv(), which can fail under memory exhaustion. This could, in principle, have a variety of security-relevant effects. For example, an unnoticed sprintf() error could permit disclosure of prior buffer contents. A particular putenv() failure could cause GSSAPI authentication to consult the wrong keytab file. Reducing such exploits to practice is expected to be impossible in most configurations, given the requirement for such an intricate coincidence of system state.
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 Noah Misch as the original reporter.
Other sources
The snprintf implementation 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 does not properly handle system-call errors, which allows attackers to obtain sensitive information or have other unspecified impact via unknown vectors, as demonstrated by an out-of-memory error.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
F5 BIG-IP and BIG-IQ Centralized Managementto a version that resolves this vulnerability.Fixed in 17.1.1 - 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.4.2 - 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.2.11 - 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.0.20
Event History
Frequently Asked Questions
What is CVE-2015-3166?
CVE-2015-3166 is a vulnerability in PostgreSQL that allows attackers to obtain sensitive information or have other unspecified impact.
What versions of PostgreSQL are affected by CVE-2015-3166?
PostgreSQL versions 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 are affected by CVE-2015-3166.
What is the severity of CVE-2015-3166?
CVE-2015-3166 has a severity rating of 9.8 (critical).
How can I fix CVE-2015-3166?
To fix CVE-2015-3166, it is recommended to upgrade to PostgreSQL versions 9.0.20, 9.1.16, 9.2.11, 9.3.7, or 9.4.2.
Where can I find more information about CVE-2015-3166?
More information about CVE-2015-3166 can be found at the following references: [1] [2] [3].