pgsql: Fix buffer overflow when processing SCRAM final message inlibpq - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix buffer overflow when processing SCRAM final message inlibpq
Date
Msg-id E1hcrT3-0005Ug-3V@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Translation updates