pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Prevent buffer overrun in read_tablespace_map().
6+ messages / 1 participants
[nested] [flat]

* pgsql: Prevent buffer overrun in read_tablespace_map().
@ 2021-03-17 20:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-03-17 20:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent buffer overrun in read_tablespace_map().

Robert Foggia of Trustwave reported that read_tablespace_map()
fails to prevent an overrun of its on-stack input buffer.
Since the tablespace map file is presumed trustworthy, this does
not seem like an interesting security vulnerability, but still
we should fix it just in the name of robustness.

While here, document that pg_basebackup's --tablespace-mapping option
doesn't work with tar-format output, because it doesn't.  To make it
work, we'd have to modify the tablespace_map file within the tarball
sent by the server, which might be possible but I'm not volunteering.
(Less-painful solutions would require changing the basebackup protocol
so that the source server could adjust the map.  That's not very
appetizing either.)

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/19b32bd53f90577a130879ddfeb4f9d75d08c1c5

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 10 ++++++++--
src/backend/access/transam/xlog.c   |  2 +-
2 files changed, 9 insertions(+), 3 deletions(-)



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

* pgsql: Prevent buffer overrun in read_tablespace_map().
@ 2021-03-17 20:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-03-17 20:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent buffer overrun in read_tablespace_map().

Robert Foggia of Trustwave reported that read_tablespace_map()
fails to prevent an overrun of its on-stack input buffer.
Since the tablespace map file is presumed trustworthy, this does
not seem like an interesting security vulnerability, but still
we should fix it just in the name of robustness.

While here, document that pg_basebackup's --tablespace-mapping option
doesn't work with tar-format output, because it doesn't.  To make it
work, we'd have to modify the tablespace_map file within the tarball
sent by the server, which might be possible but I'm not volunteering.
(Less-painful solutions would require changing the basebackup protocol
so that the source server could adjust the map.  That's not very
appetizing either.)

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/217815c66987704ef5139772a8fd05fd7c361e1a

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 10 ++++++++--
src/backend/access/transam/xlog.c   |  2 +-
2 files changed, 9 insertions(+), 3 deletions(-)



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

* pgsql: Prevent buffer overrun in read_tablespace_map().
@ 2021-03-17 20:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-03-17 20:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent buffer overrun in read_tablespace_map().

Robert Foggia of Trustwave reported that read_tablespace_map()
fails to prevent an overrun of its on-stack input buffer.
Since the tablespace map file is presumed trustworthy, this does
not seem like an interesting security vulnerability, but still
we should fix it just in the name of robustness.

While here, document that pg_basebackup's --tablespace-mapping option
doesn't work with tar-format output, because it doesn't.  To make it
work, we'd have to modify the tablespace_map file within the tarball
sent by the server, which might be possible but I'm not volunteering.
(Less-painful solutions would require changing the basebackup protocol
so that the source server could adjust the map.  That's not very
appetizing either.)

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 8 +++++++-
src/backend/access/transam/xlog.c   | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)



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

* pgsql: Prevent buffer overrun in read_tablespace_map().
@ 2021-03-17 20:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-03-17 20:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent buffer overrun in read_tablespace_map().

Robert Foggia of Trustwave reported that read_tablespace_map()
fails to prevent an overrun of its on-stack input buffer.
Since the tablespace map file is presumed trustworthy, this does
not seem like an interesting security vulnerability, but still
we should fix it just in the name of robustness.

While here, document that pg_basebackup's --tablespace-mapping option
doesn't work with tar-format output, because it doesn't.  To make it
work, we'd have to modify the tablespace_map file within the tarball
sent by the server, which might be possible but I'm not volunteering.
(Less-painful solutions would require changing the basebackup protocol
so that the source server could adjust the map.  That's not very
appetizing either.)

Branch
------
REL_13_STABLE

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

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 8 +++++++-
src/backend/access/transam/xlog.c   | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)



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

* pgsql: Prevent buffer overrun in read_tablespace_map().
@ 2021-03-17 20:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-03-17 20:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent buffer overrun in read_tablespace_map().

Robert Foggia of Trustwave reported that read_tablespace_map()
fails to prevent an overrun of its on-stack input buffer.
Since the tablespace map file is presumed trustworthy, this does
not seem like an interesting security vulnerability, but still
we should fix it just in the name of robustness.

While here, document that pg_basebackup's --tablespace-mapping option
doesn't work with tar-format output, because it doesn't.  To make it
work, we'd have to modify the tablespace_map file within the tarball
sent by the server, which might be possible but I'm not volunteering.
(Less-painful solutions would require changing the basebackup protocol
so that the source server could adjust the map.  That's not very
appetizing either.)

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2111b409879eee6900aaa3107987f932524064ca

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 10 ++++++++--
src/backend/access/transam/xlog.c   |  2 +-
2 files changed, 9 insertions(+), 3 deletions(-)



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

* pgsql: Prevent buffer overrun in read_tablespace_map().
@ 2021-03-17 20:19  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-03-17 20:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prevent buffer overrun in read_tablespace_map().

Robert Foggia of Trustwave reported that read_tablespace_map()
fails to prevent an overrun of its on-stack input buffer.
Since the tablespace map file is presumed trustworthy, this does
not seem like an interesting security vulnerability, but still
we should fix it just in the name of robustness.

While here, document that pg_basebackup's --tablespace-mapping option
doesn't work with tar-format output, because it doesn't.  To make it
work, we'd have to modify the tablespace_map file within the tarball
sent by the server, which might be possible but I'm not volunteering.
(Less-painful solutions would require changing the basebackup protocol
so that the source server could adjust the map.  That's not very
appetizing either.)

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2a4c9fd9c77041fc7207c268eaf0155d11f100a2

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 10 ++++++++--
src/backend/access/transam/xlog.c   |  2 +-
2 files changed, 9 insertions(+), 3 deletions(-)



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


end of thread, other threads:[~2021-03-17 20:19 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 20:19 pgsql: Prevent buffer overrun in read_tablespace_map(). Tom Lane <tgl@sss.pgh.pa.us>
2021-03-17 20:19 pgsql: Prevent buffer overrun in read_tablespace_map(). Tom Lane <tgl@sss.pgh.pa.us>
2021-03-17 20:19 pgsql: Prevent buffer overrun in read_tablespace_map(). Tom Lane <tgl@sss.pgh.pa.us>
2021-03-17 20:19 pgsql: Prevent buffer overrun in read_tablespace_map(). Tom Lane <tgl@sss.pgh.pa.us>
2021-03-17 20:19 pgsql: Prevent buffer overrun in read_tablespace_map(). Tom Lane <tgl@sss.pgh.pa.us>
2021-03-17 20:19 pgsql: Prevent buffer overrun in read_tablespace_map(). 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