pg.ddx.io  pgpool-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgpool: Reject short heartbeat datagrams in heartbeat receiver.
6+ messages / 1 participants
[nested] [flat]

* pgpool: Reject short heartbeat datagrams in heartbeat receiver.
@ 2026-09-29 04:41 Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 6+ messages in thread

From: Taiki Koshino @ 2026-09-29 04:41 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Reject short heartbeat datagrams in heartbeat receiver.

wd_hb_recv() called recvfrom() into a stack-local WdHbPacket and only
rejected negative or zero-length results.  A datagram shorter than
sizeof(WdHbPacket) leaves the buffer partially initialised, so the
subsequent ntoh_wd_hb_packet() (strcmp/snprintf on pkt->from, pkt->hash,
etc.) reads uninitialised stack bytes.  That is undefined behaviour and
can leak stack contents into the pgpool log.

Treat any datagram smaller than the full packet as an error, matching
the existing zero-length idiom (ereport(ERROR) longjmps out of the
receiver loop).

Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl>
Reported-by: Claude
Author: Tatsuo Ishii <ishii@postgresql.org>
CVE-2026-92872
Backpatch-through: v4.3

Branch
------
V4_7_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=dd2518cc0fd450a6c68576b4c9f8965cad579...

Modified Files
--------------
src/watchdog/wd_heartbeat.c | 4 ++++
1 file changed, 4 insertions(+)



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

* pgpool: Reject short heartbeat datagrams in heartbeat receiver.
@ 2026-09-29 04:43 Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 6+ messages in thread

From: Taiki Koshino @ 2026-09-29 04:43 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Reject short heartbeat datagrams in heartbeat receiver.

wd_hb_recv() called recvfrom() into a stack-local WdHbPacket and only
rejected negative or zero-length results.  A datagram shorter than
sizeof(WdHbPacket) leaves the buffer partially initialised, so the
subsequent ntoh_wd_hb_packet() (strcmp/snprintf on pkt->from, pkt->hash,
etc.) reads uninitialised stack bytes.  That is undefined behaviour and
can leak stack contents into the pgpool log.

Treat any datagram smaller than the full packet as an error, matching
the existing zero-length idiom (ereport(ERROR) longjmps out of the
receiver loop).

Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl>
Reported-by: Claude
Author: Tatsuo Ishii <ishii@postgresql.org>
CVE-2026-92872
Backpatch-through: v4.3

Branch
------
V4_6_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=49ca9b8beaaa2c065875bfed54f7501bda8f1...

Modified Files
--------------
src/watchdog/wd_heartbeat.c | 4 ++++
1 file changed, 4 insertions(+)



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

* pgpool: Reject short heartbeat datagrams in heartbeat receiver.
@ 2026-09-29 04:43 Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 6+ messages in thread

From: Taiki Koshino @ 2026-09-29 04:43 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Reject short heartbeat datagrams in heartbeat receiver.

wd_hb_recv() called recvfrom() into a stack-local WdHbPacket and only
rejected negative or zero-length results.  A datagram shorter than
sizeof(WdHbPacket) leaves the buffer partially initialised, so the
subsequent ntoh_wd_hb_packet() (strcmp/snprintf on pkt->from, pkt->hash,
etc.) reads uninitialised stack bytes.  That is undefined behaviour and
can leak stack contents into the pgpool log.

Treat any datagram smaller than the full packet as an error, matching
the existing zero-length idiom (ereport(ERROR) longjmps out of the
receiver loop).

Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl>
Reported-by: Claude
Author: Tatsuo Ishii <ishii@postgresql.org>
CVE-2026-92872
Backpatch-through: v4.3

Branch
------
V4_5_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=7b0c714f667b57397fc43107204dcdc92b280...

Modified Files
--------------
src/watchdog/wd_heartbeat.c | 4 ++++
1 file changed, 4 insertions(+)



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

* pgpool: Reject short heartbeat datagrams in heartbeat receiver.
@ 2026-09-29 04:43 Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 6+ messages in thread

From: Taiki Koshino @ 2026-09-29 04:43 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Reject short heartbeat datagrams in heartbeat receiver.

wd_hb_recv() called recvfrom() into a stack-local WdHbPacket and only
rejected negative or zero-length results.  A datagram shorter than
sizeof(WdHbPacket) leaves the buffer partially initialised, so the
subsequent ntoh_wd_hb_packet() (strcmp/snprintf on pkt->from, pkt->hash,
etc.) reads uninitialised stack bytes.  That is undefined behaviour and
can leak stack contents into the pgpool log.

Treat any datagram smaller than the full packet as an error, matching
the existing zero-length idiom (ereport(ERROR) longjmps out of the
receiver loop).

Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl>
Reported-by: Claude
Author: Tatsuo Ishii <ishii@postgresql.org>
CVE-2026-92872
Backpatch-through: v4.3

Branch
------
V4_4_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a9d5d13d5e067d43fc1052ab59541305779cd...

Modified Files
--------------
src/watchdog/wd_heartbeat.c | 4 ++++
1 file changed, 4 insertions(+)



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

* pgpool: Reject short heartbeat datagrams in heartbeat receiver.
@ 2026-09-29 04:44 Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 6+ messages in thread

From: Taiki Koshino @ 2026-09-29 04:44 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Reject short heartbeat datagrams in heartbeat receiver.

wd_hb_recv() called recvfrom() into a stack-local WdHbPacket and only
rejected negative or zero-length results.  A datagram shorter than
sizeof(WdHbPacket) leaves the buffer partially initialised, so the
subsequent ntoh_wd_hb_packet() (strcmp/snprintf on pkt->from, pkt->hash,
etc.) reads uninitialised stack bytes.  That is undefined behaviour and
can leak stack contents into the pgpool log.

Treat any datagram smaller than the full packet as an error, matching
the existing zero-length idiom (ereport(ERROR) longjmps out of the
receiver loop).

Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl>
Reported-by: Claude
Author: Tatsuo Ishii <ishii@postgresql.org>
CVE-2026-92872
Backpatch-through: v4.3

Branch
------
V4_3_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=2663967317f92c0ba7533edf392893e058008...

Modified Files
--------------
src/watchdog/wd_heartbeat.c | 4 ++++
1 file changed, 4 insertions(+)



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

* pgpool: Reject short heartbeat datagrams in heartbeat receiver.
@ 2026-09-29 04:47 Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 6+ messages in thread

From: Taiki Koshino @ 2026-09-29 04:47 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

Reject short heartbeat datagrams in heartbeat receiver.

wd_hb_recv() called recvfrom() into a stack-local WdHbPacket and only
rejected negative or zero-length results.  A datagram shorter than
sizeof(WdHbPacket) leaves the buffer partially initialised, so the
subsequent ntoh_wd_hb_packet() (strcmp/snprintf on pkt->from, pkt->hash,
etc.) reads uninitialised stack bytes.  That is undefined behaviour and
can leak stack contents into the pgpool log.

Treat any datagram smaller than the full packet as an error, matching
the existing zero-length idiom (ereport(ERROR) longjmps out of the
receiver loop).

Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl>
Reported-by: Claude
Author: Tatsuo Ishii <ishii@postgresql.org>
CVE-2026-92872
Backpatch-through: v4.3

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=0954931dc1ded3ede906e847267bc19fa6f75...

Modified Files
--------------
src/watchdog/wd_heartbeat.c | 4 ++++
1 file changed, 4 insertions(+)



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


end of thread, other threads:[~2026-09-29 04:47 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 04:41 pgpool: Reject short heartbeat datagrams in heartbeat receiver. Taiki Koshino <koshino@sraoss.co.jp>
2026-09-29 04:43 pgpool: Reject short heartbeat datagrams in heartbeat receiver. Taiki Koshino <koshino@sraoss.co.jp>
2026-09-29 04:43 pgpool: Reject short heartbeat datagrams in heartbeat receiver. Taiki Koshino <koshino@sraoss.co.jp>
2026-09-29 04:43 pgpool: Reject short heartbeat datagrams in heartbeat receiver. Taiki Koshino <koshino@sraoss.co.jp>
2026-09-29 04:44 pgpool: Reject short heartbeat datagrams in heartbeat receiver. Taiki Koshino <koshino@sraoss.co.jp>
2026-09-29 04:47 pgpool: Reject short heartbeat datagrams in heartbeat receiver. Taiki Koshino <koshino@sraoss.co.jp>

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