| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Prevent a double free by not reentering be_tls_close(). |
| Date: | 2015-05-18 14:04:02 |
| Message-ID: | E1YuLeE-00066q-Ut@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Prevent a double free by not reentering be_tls_close().
Reentering this function with the right timing caused a double free,
typically crashing the backend. By synchronizing a disconnection with
the authentication timeout, an unauthenticated attacker could achieve
this somewhat consistently. Call be_tls_close() solely from within
proc_exit_prepare(). Back-patch to 9.0 (all supported versions).
Benkocs Norbert Attila
Security: CVE-2015-3165
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/6675ab595ade396c43ff6c0ee7c99ccb5f0bc6f4
Modified Files
--------------
src/backend/libpq/be-secure.c | 5 -----
src/backend/libpq/pqcomm.c | 23 ++++++++++++++++++-----
src/backend/postmaster/postmaster.c | 11 ++++++++++-
3 files changed, 28 insertions(+), 11 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2015-05-18 14:04:03 | pgsql: Permit use of vsprintf() in PostgreSQL code. |
| Previous Message | Peter Eisentraut | 2015-05-18 12:59:12 | pgsql: Translation updates |