Skip to content

Commit 4b1ef53

Browse files
committed
Pullup ticket #6535 - requested by bsiegert
databases/postgresql: security fix Revisions pulled up: - databases/postgresql10-docs/PLIST 1.20 - databases/postgresql10-server/PLIST 1.10 - databases/postgresql10/Makefile 1.27 - databases/postgresql10/Makefile.common 1.31 - databases/postgresql10/distinfo 1.25 - databases/postgresql11-docs/PLIST 1.15 - databases/postgresql11-server/PLIST 1.5 - databases/postgresql11/Makefile.common 1.24 - databases/postgresql11/distinfo 1.20 - databases/postgresql12-docs/PLIST 1.10 - databases/postgresql12-server/PLIST 1.6 - databases/postgresql12/Makefile 1.18 - databases/postgresql12/Makefile.common 1.17 - databases/postgresql12/distinfo 1.14 - databases/postgresql13-client/PLIST 1.5 - databases/postgresql13-docs/PLIST 1.6 - databases/postgresql13-server/PLIST 1.4 - databases/postgresql13/Makefile 1.9 - databases/postgresql13/Makefile.common 1.10 - databases/postgresql13/distinfo 1.10 - databases/postgresql96-docs/PLIST 1.24 - databases/postgresql96-server/PLIST 1.9 - databases/postgresql96/Makefile 1.16 - databases/postgresql96/Makefile.common 1.36 - databases/postgresql96/distinfo 1.29 --- Module Name: pkgsrc Committed By: adam Date: Tue Nov 16 10:14:39 UTC 2021 Modified Files: pkgsrc/databases/postgresql10: Makefile.common distinfo pkgsrc/databases/postgresql10-docs: PLIST pkgsrc/databases/postgresql10-server: PLIST pkgsrc/databases/postgresql11: Makefile.common distinfo pkgsrc/databases/postgresql11-docs: PLIST pkgsrc/databases/postgresql11-server: PLIST pkgsrc/databases/postgresql12: Makefile.common distinfo pkgsrc/databases/postgresql12-docs: PLIST pkgsrc/databases/postgresql12-server: PLIST pkgsrc/databases/postgresql13: Makefile.common distinfo pkgsrc/databases/postgresql13-client: PLIST pkgsrc/databases/postgresql13-docs: PLIST pkgsrc/databases/postgresql13-server: PLIST pkgsrc/databases/postgresql96: Makefile.common distinfo pkgsrc/databases/postgresql96-docs: PLIST pkgsrc/databases/postgresql96-server: PLIST Log Message: postgresql: updated to 13.5, 12.9, 11.14, 10.19, 9.6.24 PostgreSQL 13.5, 12.9, 11.14, 10.19, and 9.6.24 Security Issues CVE-2021-23214: Server processes unencrypted bytes from man-in-the-middle Versions Affected: 9.6 - 14. The security team typically does not test unsupported versions, but this problem is quite old. When the server is configured to use trust authentication with a clientcert requirement or to use cert authentication, a man-in-the-middle attacker can inject arbitrary SQL queries when a connection is first established, despite the use of SSL certificate verification and encryption. The PostgreSQL project thanks Jacob Champion for reporting this problem. CVE-2021-23222: libpq processes unencrypted bytes from man-in-the-middle Versions Affected: 9.6 - 14. The security team typically does not test unsupported versions, but this problem is quite old. A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption. If more preconditions hold, the attacker can exfiltrate the client's password or other confidential data that might be transmitted early in a session. The attacker must have a way to trick the client's intended server into making the confidential data accessible to the attacker. A known implementation having that property is a PostgreSQL configuration vulnerable to CVE-2021-23214. As with any exploitation of CVE-2021-23214, the server must be using trust authentication with a clientcert requirement or using cert authentication. To disclose a password, the client must be in possession of a password, which is atypical when using an authentication configuration vulnerable to CVE-2021-23214. The attacker must have some other way to access the server to retrieve the exfiltrated data (a valid, unprivileged login account would be sufficient). The PostgreSQL project thanks Jacob Champion for reporting this problem. Bug Fixes and Improvements This update fixes over 40 bugs that were reported in the last several months. The issues listed below affect PostgreSQL 14. Some of these issues may also affect other supported versions of PostgreSQL. Some of these fixes include: Fix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record. When applying this update, update your standby servers before the primary so that they will be ready to handle the fix if the primary happens to crash. Fix parallel VACUUM so that it will process indexes below the min_parallel_index_scan_size threshold if the table has at least two indexes that are above that size. This problem does not affect autovacuum. If you are affected by this issue, you should reindex any manually-vacuumed tables. Fix causes of CREATE INDEX CONCURRENTLY and REINDEX CONCURRENTLY writing corrupt indexes. You should reindex any concurrently-built indexes. Fix for attaching/detaching a partition that could allow certain INSERT/UPDATE queries to misbehave in active sessions. Fix for creating a new range type with CREATE TYPE that could cause problems for later event triggers or subsequent executions of the CREATE TYPE command. Fix updates of element fields in arrays of a domain that is a part of a composite. Disallow the combination of FETCH FIRST WITH TIES and FOR UPDATE SKIP LOCKED. Fix corner-case loss of precision in the numeric power() function. Fix restoration of a Portal's snapshot inside a subtransaction, which could lead to a crash. For example, this could occur in PL/pgSQL when a COMMIT is immediately followed by a BEGIN ... EXCEPTION block that performs a query. Clean up correctly if a transaction fails after exporting its snapshot. This could occur if a replication slot was created then rolled back, and then another replication slot was created in the same session. Fix for "overflowed-subtransaction" wraparound tracking on standby servers that could lead to performance degradation. Ensure that prepared transactions are properly accounted for during promotion of a standby server. Ensure that the correct lock level is used when renaming a table. Avoid crash when dropping a role that owns objects being dropped concurrently. Disallow setting huge_pages to on when shared_memory_type is sysv Fix query type checking in the PL/pgSQL RETURN QUERY. Several fixes for pg_dump, including the ability to dump non-global default privileges correctly. Use the CLDR project's data to map Windows time zone names to IANA time zones. This update also contains tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga. Also, the Pacific/Enderbury zone has been renamed to Pacific/Kanton. Also, the following zones have been merged into nearby, more-populous zones whose clocks have agreed with them since 1970: Africa/Accra, America/Atikokan, America/Blanc-Sablon, America/Creston, America/Curacao, America/Nassau, America/Port_of_Spain, Antarctica/DumontDUrville, and Antarctica/Syowa. In all these cases, the previous zone name remains as an alias. --- Module Name: pkgsrc Committed By: adam Date: Tue Nov 16 10:17:40 UTC 2021 Modified Files: pkgsrc/databases/postgresql10: Makefile pkgsrc/databases/postgresql12: Makefile pkgsrc/databases/postgresql13: Makefile pkgsrc/databases/postgresql96: Makefile Log Message: postgresqlNN: reset revision
1 parent a2d8372 commit 4b1ef53

21 files changed

Lines changed: 57 additions & 60 deletions

File tree

databases/postgresql10-docs/PLIST

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.19 2021/08/13 11:54:44 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.19.2.1 2021/11/24 14:31:19 tm Exp $
22
man/man1/clusterdb.1
33
man/man1/createdb.1
44
man/man1/createuser.1
@@ -927,6 +927,7 @@ share/doc/postgresql/html/release-10-15.html
927927
share/doc/postgresql/html/release-10-16.html
928928
share/doc/postgresql/html/release-10-17.html
929929
share/doc/postgresql/html/release-10-18.html
930+
share/doc/postgresql/html/release-10-19.html
930931
share/doc/postgresql/html/release-10-2.html
931932
share/doc/postgresql/html/release-10-3.html
932933
share/doc/postgresql/html/release-10-4.html

databases/postgresql10-server/PLIST

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.9 2020/05/15 20:45:36 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.9.12.1 2021/11/24 14:31:19 tm Exp $
22
bin/postgres
33
bin/postmaster
44
include/postgresql/server/plpgsql.h
@@ -617,6 +617,7 @@ share/postgresql/timezone/Pacific/Guadalcanal
617617
share/postgresql/timezone/Pacific/Guam
618618
share/postgresql/timezone/Pacific/Honolulu
619619
share/postgresql/timezone/Pacific/Johnston
620+
share/postgresql/timezone/Pacific/Kanton
620621
share/postgresql/timezone/Pacific/Kiritimati
621622
share/postgresql/timezone/Pacific/Kosrae
622623
share/postgresql/timezone/Pacific/Kwajalein

databases/postgresql10/Makefile.common

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile.common,v 1.30 2021/08/13 11:54:43 adam Exp $
1+
# $NetBSD: Makefile.common,v 1.30.2.1 2021/11/24 14:31:19 tm Exp $
22
#
33
# This Makefile fragment is included by all PostgreSQL packages built from
44
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -16,7 +16,7 @@
1616
# used by databases/postgresql10-pltcl/Makefile
1717
# used by databases/postgresql10-server/Makefile
1818

19-
DISTNAME= postgresql-10.18
19+
DISTNAME= postgresql-10.19
2020
CATEGORIES= databases
2121
MASTER_SITES= ${MASTER_SITE_PGSQL:=source/v${PKGVERSION_NOREV}/}
2222
EXTRACT_SUFX= .tar.bz2

databases/postgresql10/distinfo

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
$NetBSD: distinfo,v 1.22 2021/08/13 11:54:43 adam Exp $
1+
$NetBSD: distinfo,v 1.22.2.1 2021/11/24 14:31:19 tm Exp $
22

3-
SHA1 (postgresql-10.18.tar.bz2) = a9f6d96343cc5dcf8b28e6fce5a2955041b14003
4-
RMD160 (postgresql-10.18.tar.bz2) = fe43854c91bf98c44c22eee2f9b014691d86bf5f
5-
SHA512 (postgresql-10.18.tar.bz2) = 8a564256b0a5f6375a817cc5db14e56f7f7ee831881a2dc78759e7f2cf708d95fb61ad75a01f13fb05517ab165c991794d837bbb93f60d54f4fb33ca0ac45729
6-
Size (postgresql-10.18.tar.bz2) = 19197042 bytes
7-
SHA1 (patch-config_missing) = c2d7d742922ba6861e7660c75b7b53f09e564813
8-
SHA1 (patch-config_perl.m4) = b3393d0f28e97f89ae20297d85553c508b3896bb
9-
SHA1 (patch-configure) = b0a758023b3b263ff51b154d0da32cf02520c6cd
10-
SHA1 (patch-contrib_dblink_dblink.c) = a6f87ab9f2c28a72608d70267b71bd77437b0921
11-
SHA1 (patch-contrib_uuid-ossp_Makefile) = 2eff5d539a4501dda45d23bc094a5099a456e0af
12-
SHA1 (patch-src_Makefile.global.in) = 335b57afff23a9684ab0a09257665810c1ba2d1e
13-
SHA1 (patch-src_Makefile.shlib) = 74ab026a457a4789a1aa1d6423d88ce4a2db7a2e
14-
SHA1 (patch-src_backend_Makefile) = 480ac63f07fec2eaacffdbee5c5aa104081d0ee4
15-
SHA1 (patch-src_backend_utils_adt_datetime.c) = d1ea70986634d3bfb663eff789425252656e1289
16-
SHA1 (patch-src_interfaces_ecpg_pgtypeslib_interval.c) = a15012ae34d4ecd1eb2bc29e4d2c40098ea236fd
17-
SHA1 (patch-src_interfaces_libpq_Makefile) = 61bcf84eb69b6ec9faabab0b61913766f4b20f8c
18-
SHA1 (patch-src_makefiles_Makefile.solaris) = 0168f5bc105ffc89d5db40907a08966d8465f5a0
19-
SHA1 (patch-src_pl_plperl_GNUmakefile) = 6ee3e431f46ce5c2a94df499504b2b8bd458bbef
20-
SHA1 (patch-src_pl_plperl_plperl.h) = 64d5b891362c114bde5ec48e48bc4855b56ab516
3+
SHA1 (postgresql-10.19.tar.bz2) = f44edcc4d612f6a1b39c233ee7b1e80feb6d0456
4+
RMD160 (postgresql-10.19.tar.bz2) = 8e1fd79ea6ddd5388cca8b3a54397ced66458cce
5+
SHA512 (postgresql-10.19.tar.bz2) = 41b0f5026be7d563e41b54e9ea7199dd466a132d355be0b71a91d41f533d97fbf550eccf2a2ece3d60c5dab5921ebeea3ac4780c18c54b924df52d7423305a22
6+
Size (postgresql-10.19.tar.bz2) = 19261478 bytes

databases/postgresql11-docs/PLIST

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.14 2021/08/13 11:54:45 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.14.2.1 2021/11/24 14:31:19 tm Exp $
22
man/man1/clusterdb.1
33
man/man1/createdb.1
44
man/man1/createuser.1
@@ -958,6 +958,7 @@ share/doc/postgresql/html/release-11-10.html
958958
share/doc/postgresql/html/release-11-11.html
959959
share/doc/postgresql/html/release-11-12.html
960960
share/doc/postgresql/html/release-11-13.html
961+
share/doc/postgresql/html/release-11-14.html
961962
share/doc/postgresql/html/release-11-2.html
962963
share/doc/postgresql/html/release-11-3.html
963964
share/doc/postgresql/html/release-11-4.html

databases/postgresql11-server/PLIST

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.4 2020/05/15 20:31:41 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.4.12.1 2021/11/24 14:31:19 tm Exp $
22
bin/postgres
33
bin/postmaster
44
include/postgresql/server/plpgsql.h
@@ -1271,6 +1271,7 @@ share/postgresql/timezone/Pacific/Guadalcanal
12711271
share/postgresql/timezone/Pacific/Guam
12721272
share/postgresql/timezone/Pacific/Honolulu
12731273
share/postgresql/timezone/Pacific/Johnston
1274+
share/postgresql/timezone/Pacific/Kanton
12741275
share/postgresql/timezone/Pacific/Kiritimati
12751276
share/postgresql/timezone/Pacific/Kosrae
12761277
share/postgresql/timezone/Pacific/Kwajalein

databases/postgresql11/Makefile.common

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile.common,v 1.23 2021/08/13 11:54:44 adam Exp $
1+
# $NetBSD: Makefile.common,v 1.23.2.1 2021/11/24 14:31:19 tm Exp $
22
#
33
# This Makefile fragment is included by all PostgreSQL packages built from
44
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -16,7 +16,7 @@
1616
# used by databases/postgresql11-pltcl/Makefile
1717
# used by databases/postgresql11-server/Makefile
1818

19-
DISTNAME= postgresql-11.13
19+
DISTNAME= postgresql-11.14
2020
CATEGORIES= databases
2121
MASTER_SITES= ${MASTER_SITE_PGSQL:=source/v${PKGVERSION_NOREV}/}
2222
EXTRACT_SUFX= .tar.bz2

databases/postgresql11/distinfo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
$NetBSD: distinfo,v 1.17 2021/08/13 11:54:44 adam Exp $
1+
$NetBSD: distinfo,v 1.17.2.1 2021/11/24 14:31:19 tm Exp $
22

3-
SHA1 (postgresql-11.13.tar.bz2) = 7c0b06bdbe2bd3d966fb7d875843f022694e9b1a
4-
RMD160 (postgresql-11.13.tar.bz2) = d682247742b45048c4f30f977a2402ee79396cf7
5-
SHA512 (postgresql-11.13.tar.bz2) = 1b2061d505a7460e0aaae53818e77fc99fa7b73eea119033a98a3d7dd3d70d00403998654990b03bbf6eb2df383e2f44791137c8922ea4015715f8bf49c5837f
6-
Size (postgresql-11.13.tar.bz2) = 20123787 bytes
3+
SHA1 (postgresql-11.14.tar.bz2) = 18c8ef5ca8314ce18f1bd10b6cd6f3e4c7099e64
4+
RMD160 (postgresql-11.14.tar.bz2) = ccd24b793a502c76bf48242ac04b63e61c0d3f0a
5+
SHA512 (postgresql-11.14.tar.bz2) = ab71461ee6fb4cdc5b4240f7ecd8af2497ce6780283fde2abf5951ffdb616bd0c8ed22b26fdfca402a346e663ff77c4d17f3284c9d700e6fd6795b2aec97c9be
6+
Size (postgresql-11.14.tar.bz2) = 20172910 bytes
77
SHA1 (patch-config_missing) = c2d7d742922ba6861e7660c75b7b53f09e564813
88
SHA1 (patch-config_perl.m4) = b3393d0f28e97f89ae20297d85553c508b3896bb
99
SHA1 (patch-configure) = b0a758023b3b263ff51b154d0da32cf02520c6cd

databases/postgresql12-docs/PLIST

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.9 2021/08/13 11:54:46 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.9.2.1 2021/11/24 14:31:19 tm Exp $
22
man/man1/clusterdb.1
33
man/man1/createdb.1
44
man/man1/createuser.1
@@ -969,6 +969,7 @@ share/doc/postgresql/html/release-12-5.html
969969
share/doc/postgresql/html/release-12-6.html
970970
share/doc/postgresql/html/release-12-7.html
971971
share/doc/postgresql/html/release-12-8.html
972+
share/doc/postgresql/html/release-12-9.html
972973
share/doc/postgresql/html/release-12.html
973974
share/doc/postgresql/html/release-prior.html
974975
share/doc/postgresql/html/release.html

databases/postgresql12-server/PLIST

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.5 2020/08/14 06:56:24 adam Exp $
1+
@comment $NetBSD: PLIST,v 1.5.10.1 2021/11/24 14:31:20 tm Exp $
22
bin/postgres
33
bin/postmaster
44
include/postgresql/server/plpgsql.h
@@ -1287,6 +1287,7 @@ share/postgresql/timezone/Pacific/Guadalcanal
12871287
share/postgresql/timezone/Pacific/Guam
12881288
share/postgresql/timezone/Pacific/Honolulu
12891289
share/postgresql/timezone/Pacific/Johnston
1290+
share/postgresql/timezone/Pacific/Kanton
12901291
share/postgresql/timezone/Pacific/Kiritimati
12911292
share/postgresql/timezone/Pacific/Kosrae
12921293
share/postgresql/timezone/Pacific/Kwajalein

0 commit comments

Comments
 (0)