Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehkui-0008JI-NH for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Feb 2018 23:38:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehkuh-0000Wu-6A for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Feb 2018 23:38:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehkug-0000Wk-TO for pgsql-bugs@lists.postgresql.org; Fri, 02 Feb 2018 23:38:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehkud-0002Vq-B2 for pgsql-bugs@postgresql.org; Fri, 02 Feb 2018 23:38:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w12NcBQH002009; Fri, 2 Feb 2018 18:38:11 -0500 From: Tom Lane To: "David G. Johnston" cc: Michael , Rainer Pruy , Pavan Teja , Mike Porter , Postgres Bug Subject: Re: crypt function crash on postgresql 9.3.20 and 10 In-reply-to: References: <5059192d-2ff7-41c2-1070-708cb65f33e9@tagan.ru> <965ca7cd-1c5c-ebdd-0fb1-1d7dbc1c7038@acrys.com> <20180202214746.10221aea@ahpeb> Comments: In-reply-to "David G. Johnston" message dated "Fri, 02 Feb 2018 11:53:06 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2007.1517614691.1@sss.pgh.pa.us> Date: Fri, 02 Feb 2018 18:38:11 -0500 Message-ID: <2008.1517614691@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > If you are saying 9.3.2 gives a result and 9.3.20 raises an error I suspect > the response in 9.3.2 was bogus and giving an error instead of a bogus > result was deemed the best fix. A bit of diving in the git history says that behavior changed here: Author: Noah Misch Branch: master Release: REL9_6_BR [1d812c8b0] 2015-10-05 10:06:29 -0400 Branch: REL9_5_STABLE Release: REL9_5_0 [4d6752277] 2015-10-05 10:06:33 -0400 Branch: REL9_4_STABLE Release: REL9_4_5 [4d95419e8] 2015-10-05 10:06:34 -0400 Branch: REL9_3_STABLE Release: REL9_3_10 [cc1210f0a] 2015-10-05 10:06:34 -0400 Branch: REL9_2_STABLE Release: REL9_2_14 [56232f987] 2015-10-05 10:06:35 -0400 Branch: REL9_1_STABLE Release: REL9_1_19 [48f6310bc] 2015-10-05 10:06:35 -0400 Branch: REL9_0_STABLE Release: REL9_0_23 [188e081ef] 2015-10-05 10:06:36 -0400 pgcrypto: Detect and report too-short crypt() salts. Certain short salts crashed the backend or disclosed a few bytes of backend memory. For existing salt-induced error conditions, emit a message saying as much. Back-patch to 9.0 (all supported versions). Josh Kupershmidt Security: CVE-2015-5288 The 9.3.10 release notes do contain an entry about this. regards, tom lane