pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix buffer overflow when processing SCRAM final message in libpq
Date: Mon, 17 Jun 2019 13:14:37 +0000
Message-ID: <E1hcrT3-0005Ug-3V@gemulon.postgresql.org> (raw)

Fix buffer overflow when processing SCRAM final message in libpq

When a client connects to a rogue server sending specifically-crafted
messages, this can suffice to execute arbitrary code as the operating
system account used by the client.

While on it, fix one error handling when decoding an incorrect salt
included in the first message received from server.

Author: Michael Paquier
Reviewed-by: Jonathan Katz, Heikki Linnakangas
Security: CVE-2019-10164
Backpatch-through: 10

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/27c464e42a9e3cb3779d1ea63b835a3e191682d6

Modified Files
--------------
src/interfaces/libpq/fe-auth-scram.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)



view thread (3+ messages)

Message-ID: <E1hcrT3-0005Ug-3V@gemulon.postgresql.org>
Permalink:  ../E1hcrT3-0005Ug-3V@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hcrT3-0005Ug-3V@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix buffer overflow when processing SCRAM final message in libpq
  In-Reply-To: <E1hcrT3-0005Ug-3V@gemulon.postgresql.org>
  References: <E1hcrT3-0005Ug-3V@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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