pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix RelationBuildPartitionKey's processing of partition key expr
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix RelationBuildPartitionKey's processing of partition key expr
@ 2018-02-05 15:37 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-02-05 15:37 UTC (permalink / raw)
  To: pgsql-committers

Fix RelationBuildPartitionKey's processing of partition key expressions.

Failure to advance the list pointer while reading partition expressions
from a list results in invoking an input function with inappropriate data,
possibly leading to crashes or, with carefully crafted input, disclosure
of arbitrary backend memory.

Bug discovered independently by Álvaro Herrera and David Rowley.
This patch is by Álvaro but owes something to David's proposed fix.
Back-patch to v10 where the issue was introduced.

Security: CVE-2018-1052

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3492a0af0bd37e7f23e27fd3f5537f414ee9ab9b

Modified Files
--------------
src/backend/utils/cache/relcache.c         |  5 +++++
src/test/regress/expected/create_table.out | 29 ++++++++++++++++++++++-------
src/test/regress/sql/create_table.sql      |  9 +++++++--
3 files changed, 34 insertions(+), 9 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix RelationBuildPartitionKey's processing of partition key expr
@ 2018-02-05 15:37 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-02-05 15:37 UTC (permalink / raw)
  To: pgsql-committers

Fix RelationBuildPartitionKey's processing of partition key expressions.

Failure to advance the list pointer while reading partition expressions
from a list results in invoking an input function with inappropriate data,
possibly leading to crashes or, with carefully crafted input, disclosure
of arbitrary backend memory.

Bug discovered independently by Álvaro Herrera and David Rowley.
This patch is by Álvaro but owes something to David's proposed fix.
Back-patch to v10 where the issue was introduced.

Security: CVE-2018-1052

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fe921a360a4858f537c99d1872d3c3a5a09d6df0

Modified Files
--------------
src/backend/utils/cache/relcache.c         |  5 +++++
src/test/regress/expected/create_table.out | 31 ++++++++++++++++++++++--------
src/test/regress/sql/create_table.sql      | 11 ++++++++---
3 files changed, 36 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-02-05 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 15:37 pgsql: Fix RelationBuildPartitionKey's processing of partition key expr Tom Lane <tgl@sss.pgh.pa.us>
2018-02-05 15:37 pgsql: Fix RelationBuildPartitionKey's processing of partition key expr Tom Lane <tgl@sss.pgh.pa.us>

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