pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Prevent a double free by not reentering be_tls_close(). 6+ messages / 1 participants [nested] [flat]
* pgsql: Prevent a double free by not reentering be_tls_close(). @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: 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_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7a0d48ac7f5ad660414f1b0b6a36cb2b2b7a3667 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Prevent a double free by not reentering be_tls_close(). @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: 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_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/439ff9b6b9de435e1c92d05221cfbcb7ff80e150 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Prevent a double free by not reentering be_tls_close(). @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Prevent a double free by not reentering be_tls_close(). @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: 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_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/f4c12b415f1ed07e681bab58f7d6520025edfe83 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Prevent a double free by not reentering be_tls_close(). @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: 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 ------ master Details ------- http://git.postgresql.org/pg/commitdiff/b0ce385032d72d6acf1e330f733013553fe6affe Modified Files -------------- src/backend/libpq/be-secure-openssl.c | 5 ----- src/backend/libpq/pqcomm.c | 23 ++++++++++++++++++----- src/backend/postmaster/postmaster.c | 11 ++++++++++- 3 files changed, 28 insertions(+), 11 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Prevent a double free by not reentering be_tls_close(). @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: 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_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/648e41a6e480dae85a5aa0c90e36487c7f09a229 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2015-05-18 14:04 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-05-18 14:04 pgsql: Prevent a double free by not reentering be_tls_close(). Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: Prevent a double free by not reentering be_tls_close(). Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: Prevent a double free by not reentering be_tls_close(). Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: Prevent a double free by not reentering be_tls_close(). Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: Prevent a double free by not reentering be_tls_close(). Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: Prevent a double free by not reentering be_tls_close(). Noah Misch <noah@leadboat.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox