pgpool2.git / summary / log / commit / refs
commit 191e8121b2ee9d04c47a5265a7c4af7b5aa56a8d
Author: Taiki Koshino <koshino@sraoss.co.jp>
Date: Sun Sep 20 10:26:31 2026 +0000
Prepare release note.
doc.ja/src/sgml/release-4.3.sgml | 728 +++++++++++++++++++++++++++++++
doc.ja/src/sgml/release-4.4.sgml | 728 +++++++++++++++++++++++++++++++
doc.ja/src/sgml/release-4.5.sgml | 728 +++++++++++++++++++++++++++++++
doc.ja/src/sgml/release-4.6.sgml | 728 +++++++++++++++++++++++++++++++
doc.ja/src/sgml/release-4.7.sgml | 745 ++++++++++++++++++++++++++++++-
doc/src/sgml/release-4.3.sgml | 906 ++++++++++++++++++++++++++++++++++++++
doc/src/sgml/release-4.4.sgml | 905 ++++++++++++++++++++++++++++++++++++++
doc/src/sgml/release-4.5.sgml | 905 ++++++++++++++++++++++++++++++++++++++
doc/src/sgml/release-4.6.sgml | 918 ++++++++++++++++++++++++++++++++++++++
doc/src/sgml/release-4.7.sgml | 922 +++++++++++++++++++++++++++++++++++++++
10 files changed, 8212 insertions(+), 1 deletion(-)
diff --git a/doc.ja/src/sgml/release-4.3.sgml b/doc.ja/src/sgml/release-4.3.sgml
index 6aee29854..66801297a 100644
--- a/doc.ja/src/sgml/release-4.3.sgml
+++ b/doc.ja/src/sgml/release-4.3.sgml
@@ -1,6 +1,734 @@
<!-- doc/src/sgml/release-4.3.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+<sect1 id="release-4-3-21">
+ <title>リリース 4.3.21</title>
+ <note>
+ <title>リリース日</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>概要</title>
+ <para>
+ このリリースには、以下の脆弱性に対するセキュリティ修正が含まれています。
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [fd85bf36c]
+ -->
+ <para>
+ フェイルオーバ時の<productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、任意のメモリアドレスに任意の32ビット値を書き込むことができる脆弱性があります。(CVE-2026-92867)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ要求メッセージを送信することにより、意図しないメモリアドレスに値を書き込み、メモリ破壊を引き起こすことが可能な脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [3ad8f05c1]
+ -->
+ <para>
+ クライアントが証明書認証を使って<productname>Pgpool-II</productname>に接続する際に、<productname>Pgpool-II</productname>がクライアントのX.509証明書のCommon Name (CN)フィールド内のドメイン名にある'\0'を適切に処理しないため、悪意のあるクライアントがパスワードなしに他のユーザ名で<productname>Pgpool-II</productname>サーバに接続できる脆弱性があります。(CVE-2026-92868)
+ </para>
+ <para>
+ クライアント証明書認証では、クライアント証明書から取得したCommon Name (CN)を接続ユーザ名と比較して認証を行います。
+ しかし、CNに埋め込みNUL文字(\0)を含む細工された証明書を適切に検証していなかったため、本来とは異なるCNが正当なユーザ名として扱われる可能性があります。
+ 攻撃者が埋め込みNUL文字を含む細工されたクライアント証明書を提示することで、本来認証されるべきでない利用者が正当な利用者として認証される可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の4.0系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している4.0系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、クライアント証明書認証以外の認証方式を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [755e00290]
+ 2026-09-20 [513a1661e]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、固定長配列の境界を超えてメモリ領域が書き換えられる脆弱性があります。(CVE-2026-92869)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdog機能において、Watchdog peerから受信した設定情報を処理するメッセージ解析処理に境界外書き込みの脆弱性があります。
+ Watchdog peerから受信したbackend_descおよびwd_nodesのJSON配列長に対する上限チェックが不十分であるため、細工されたメッセージを処理した場合、固定長配列の境界外へ書き込みが発生する可能性があります。
+ 本脆弱性が悪用された場合、<productname>Pgpool-II</productname>プロセスの異常終了やメモリ破壊が発生する可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogにおいて、フェイルオーバ処理メッセージの扱いに脆弱性があり、任意の長さの値を書き込むことによりスタックを破壊し、<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。(CVE-2026-92870)
+ </para>
+ <para>
+ wd_authkeyが設定されていない場合、<productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ処理メッセージを渡すことによって<productname>Pgpool-II</productname>メインプロセスのスタックに任意の長さの値を書き込むことが可能な脆弱性があり、それによって<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [68868048d]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogノード間認証において、認証キーが設定されている環境で、認証情報を含まない細工されたwatchdogメッセージを適切に処理できないことに起因するNULLポインタ参照の脆弱性があります。(CVE-2026-92871)
+ </para>
+ <para>
+ watchdogポートへ接続可能な攻撃者が、認証情報を含まない細工されたwatchdogメッセージを送信することにより、対象ノードのwatchdogプロセスを異常終了させる可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [ef5d7cc54]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスには、情報を漏洩する可能性がある脆弱性があります。(CVE-2026-92872)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスが不正なメッセージを受信した際に、スタックメモリ上の情報をログファイルを通じて漏洩する可能性がある脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、ハートビートの代わりにクエリによる死活監視(<literal>wd_lifecheck_method = 'query'</literal>)を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [246f082fc]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。(CVE-2026-92873)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のクラスタ管理モジュールであるwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>不具合修正</title>
+ <itemizedlist>
+
+ <listitem>
+ <!--
+ 2026-09-18 [81f75c263]
+ 2026-09-19 [808cccc69]
+ -->
+ <para>
+ 拡張クエリのパイプライン処理中にSyncが早期に送信される問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 拡張クエリのパイプライン処理が進行中であるにもかかわらず、内部の<literal>Sync</literal>メッセージによって暗黙のトランザクションが早期にコミットされることを防ぐようにしました。
+ また、バックエンドノード間でエラー処理とトランザクションの終了処理を調整し、パイプライン内の後続処理でエラーが発生した場合に、それ以前の変更がロールバックされるようにしました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [8c1795792]
+ -->
+ <para>
+ パイプラインモードで遅延制約エラーが発生するとハングする問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ バックエンドから<literal>ErrorResponse</literal>を受信した際に、保留中の<literal>Sync</literal>メッセージを保持し、<literal>ReadyForQuery</literal>まで処理を継続できるようにしました。
+ 以前は、コミット時に遅延制約違反が発生すると、フロントエンドが既に送信済みのSyncをPgpool-IIが無期限に待つ可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [68ba530c6]
+ -->
+ <para>
+ Parseでの内部トランザクション処理の不整合を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>Parse()</function>での内部トランザクションの開始をレプリケーションモードに限定し、<function>Bind()</function>と一致させました。
+ 以前は、rawモードで拡張クエリプロトコルによるUPDATEを自動コミットで実行すると、接続がトランザクション内に残る可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [4b6b592e5]
+ -->
+ <para>
+ <function>do_error_execute_command()</function>での応答バッファのポインタ更新を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 保存した応答のバッファポインタを、長さフィールドのサイズではなく、応答本体の実際の長さだけ進めるようにしました。
+ これにより、プロトコルv2とv3の両方で、長さが0の応答の後などに後続の保存済み応答が破損する問題を防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [a00c8ce3d]
+ -->
+ <para>
+ <function>handle_query_context()</function>で解析木の存在を確認するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>handle_query_context()</function>で解析木にアクセスする前に、その存在を確認するようにしました。
+ この問題はCoverityによって検出されました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ac6a7bf08]
+ -->
+ <para>
+ PCPワーカーの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCPワーカーの終了処理をシグナルハンドラからメインループに移しました。
+ ハンドラでは終了要求の記録のみを行い、他の処理が進行中に安全でないログ出力や後処理を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [be13986bc]
+ -->
+ <para>
+ PCP親プロセスのシグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCP親プロセスの終了処理と起床処理をメインループに移しました。
+ シグナルハンドラではワーカー一覧の走査や変更を行わず、フラグを設定するようにしました。
+ これにより、クラッシュや再利用されたプロセスIDへのシグナル送信につながる競合を防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [3d234eb8e]
+ -->
+ <para>
+ アイドル接続の後処理をシグナルハンドラからメインループに移しました。(Taiki Koshino)
+ </para>
+ <para>
+ 子プロセスのSIGUSR1ハンドラではアイドル接続の後処理要求を記録し、実際の後処理はメインループで行うようにしました。
+ これにより、シグナルで中断されたコードが使用中の接続やスタートアップパケットのメモリが解放されることを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [fccee6214]
+ -->
+ <para>
+ ライフチェックの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ watchdogのライフチェックにおける子プロセスの終了、メモリの後処理、およびプロセスの終了処理をシグナルハンドラの外に移しました。
+ ハンドラでは<literal>errno</literal>を保持しながらシグナルを記録してフラグを設定し、シグナルハンドラ内で安全でない操作を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ed0ce5342]
+ -->
+ <para>
+ クエリキャッシュのキーに区切りを追加し、衝突を防ぐようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ クエリキャッシュのキーを構築する際に、ユーザ、クエリ、およびデータベースの各フィールド間にNUL文字の区切りを挿入し、バッファ全体をハッシュ化するようにしました。
+ 以前は、区切りなしでこれらのフィールドを連結していたため、異なる入力から同一のキーが生成され、別のユーザやデータベースのキャッシュ結果が返される可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ff83fef0c]
+ -->
+ <para>
+ <function>inject_cached_message()</function>での符号なし整数のアンダーフローを修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>inject_cached_message()</function>でヘッダサイズを減算する前に、キャッシュされたメッセージの長さを検証するようにしました。
+ 以前は、長さがヘッダサイズより小さい場合にアンダーフローによって大きな符号なし整数値になり、メモリ割り当ての失敗によってセッションが終了する可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [2fb3447bb]
+ -->
+ <para>
+ pgprotoでのバッファ境界外アクセスを修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>pgproto</literal>で継続行かどうかを判定する前に、入力バッファの長さを確認するようにしました。
+ これにより、AddressSanitizerによって検出された境界外アクセスを防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [75906a373]
+ -->
+ <para>
+ 削除された設定パラメータをデフォルト値に戻すようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ <filename>pgpool.conf</filename>から削除またはコメントアウトされた再読み込み可能なパラメータを、デフォルト値に戻すようにしました。
+ 以前は、設定を再読み込みしても古い値が保持されていました。
+ 設定ファイルから読み込まれたものではない値は変更しません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [44e454142]
+ -->
+ <para>
+ 「Fix do_query to send sync rather than flush.」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>do_query()</function>が<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信する変更を取り消しました。
+ この変更により、パイプラインの暗黙のトランザクションが早期にコミットされ、後続の文が失敗しても、それ以前の変更がコミットされたままになる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [fddf794a2]
+ -->
+ <para>
+ <function>get_health_check_stats()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>get_health_check_stats()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ <para>
+ この問題はseoktai-chunによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [2a4cd12ea]
+ -->
+ <para>
+ <function>pool_temp_tables_delete()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>pool_temp_tables_delete()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [2f1f80b52]
+ -->
+ <para>
+ 認証中の通知メッセージの転送を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ セッションコンテキストが確立される前の認証段階で、バックエンドからの通知メッセージを安全に転送するようにしました。
+ これにより、PostgreSQL 19以降が出力するMD5認証の通知メッセージによってFATALエラーが発生する問題を修正しました。
+ </para>
+ <para>
+ この問題はharudiniによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [c1eb10dc1]
+ -->
+ <para>
+ 「make do_query send Sync rather than Flush」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ この変更では、<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信することで、内部クエリによって開始された暗黙のトランザクションを終了させようとしていました。
+ しかし、パイプラインのトランザクションが本来の動作をしなくなるため、その後コミット<literal>44e454142</literal>で取り消されました。
+ この動作は最終的なリリースには含まれません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [f62f4076b]
+ -->
+ <para>
+ 不足していたvolatile修飾子を追加しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <varname>my_backend_status</varname>を介した共有バックエンド状態へのアクセスに、不足していた<literal>volatile</literal>修飾子を追加しました。
+ これにより、コンパイラの最適化によって古い状態値が使用されることを防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [6eac43789]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>で不正なErrorResponseの長さを拒否するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>read_kind_from_backend()</function>で、バックエンドから受信した<literal>ErrorResponse</literal>の長さが長さフィールドのサイズより小さい場合に拒否するようにしました。
+ これにより、不正な応答の処理時にヒープバッファの上書きや符号なし整数のアンダーフローが発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [2ff69a70a]
+ -->
+ <para>
+ <function>pool_do_auth()</function>でセグメンテーション違反が発生する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 共有メモリ上のメインノードIDを個別にコピーするのではなく、コピーしたバックエンドの状態からローカルのメインノードIDを決定するようにしました。
+ これにより、フェイルオーバー中の状態の不整合によって<function>pool_do_auth()</function>でNULLの接続ポインタが参照されることを防ぎます。
+ また、共有メモリからの読み取りにvolatile修飾子を追加しました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [af96466fa]
+ -->
+ <para>
+ Pgpool-IIのメインプロセスのシグナルハンドラで安全でない操作を行わないようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ メインプロセスの終了処理をSIGTERM、SIGINT、およびSIGQUITのハンドラの外に移しました。
+ ハンドラでは要求を記録してメインループを起床させ、メインループが通常のプロセス実行コンテキストで終了処理を行うようにしました。
+ これにより、シグナルハンドラ内の安全でない操作によってクラッシュ、ハング、またはメモリ破壊が発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [a601b3e63]
+ -->
+ <para>
+ バックエンドノードの停止後にクエリコンテキストの解放済みメモリを使用する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ クエリコンテキストをセッションのメモリコンテキスト内に割り当て、セッション単位の送信済みメッセージ一覧と保留中メッセージ一覧からの参照が有効なまま保たれるようにしました。
+ 以前は、バックエンドの停止によってクエリ処理ループがこれらの一覧から参照中のコンテキストを解放し、解放済みメモリの使用やクラッシュにつながる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [199a8ca6b]
+ -->
+ <para>
+ 拡張クエリモードでCOPY INがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ バックエンドからのCopyInResponseを待ってからCOPYデータを転送し、CopyDoneの後にフロントエンドのSyncを処理できるようにしました。
+ これにより、ストリーミングレプリケーションモードで拡張クエリプロトコルを使って<command>COPY FROM STDIN</command>を実行するとハングする問題を修正しました。
+ </para>
+ <para>
+ この問題はliujinyang-highgoによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [1fcbdfdf1]
+ -->
+ <para>
+ pcp_node_infoがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ PCPのノード情報応答の長さを計算して送信する前に、共有メモリ上のレプリケーション状態を表す文字列をローカルバッファにコピーするようにしました。
+ 以前は、同時更新によって宣言されたパケット長と実際のデータ長が一致しなくなり、<command>pcp_node_info</command>がハングする可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [9be9348bd]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>のコメントの誤字を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [1f2e3adf0]
+ -->
+ <para>
+ disable_load_balance_on_write使用時のクエリキャッシュ処理を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 実際の書き込みを、<varname>disable_load_balance_on_write</varname>が使用する状態とは別に追跡するようにしました。
+ これにより、このパラメータを<literal>trans_transaction</literal>、<literal>dml_adaptive</literal>、または<literal>always</literal>に設定した場合にクエリキャッシュが誤って使用される問題を修正しました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>ドキュメント修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [a51f10e37]
+ -->
+ <para>
+ ドキュメントの誤ったリンクを修正しました。(Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>回帰テスト修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [0456abe36]
+ -->
+ <para>
+ 018.detach_primary回帰テストを改善しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>018.detach_primary</literal>で、不正なストリーミングレプリケーションのプライマリノードの切り離しをテストする前に、watchdogのクォーラム成立を明示的に待つようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [2d9f72de1]
+ -->
+ <para>
+ 006.memqcache回帰テストを安定化しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>のストリーミングレプリケーションのテストで同期レプリケーションを使用するようにしました。
+ これにより、新しく作成したロールがスタンバイでまだ利用できない場合など、レプリケーション遅延による断続的な失敗を防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [c82f5c5cb]
+ -->
+ <para>
+ regress.shで数値のPostgreSQLバージョン番号を使用するように修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 回帰テストスクリプトで使用するPostgreSQLのバージョンから数値以外の接尾辞を除去し、<literal>20devel</literal>のような開発版のバージョン文字列を数値比較に使用できるようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [1a34764fe]
+ -->
+ <para>
+ テストのタイムアウトを300秒から360秒に延長しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>の実行時間の増加に対応するため、回帰テストのタイムアウトを300秒から360秒に延長しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [849c42f94]
+ -->
+ <para>
+ sleepの代わりにwait_for_pgpool_startupを使用するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>110.memory_leak</literal>と<literal>111.cancel_query</literal>で、固定の1秒間の待機の代わりに<function>wait_for_pgpool_startup()</function>を使用し、起動に関連する断続的なテスト失敗を防ぐようにしました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-3-20">
<title>リリース 4.3.20</title>
<note>
diff --git a/doc.ja/src/sgml/release-4.4.sgml b/doc.ja/src/sgml/release-4.4.sgml
index dfde5cef2..91c13ef83 100644
--- a/doc.ja/src/sgml/release-4.4.sgml
+++ b/doc.ja/src/sgml/release-4.4.sgml
@@ -1,6 +1,734 @@
<!-- doc/src/sgml/release-4.4.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+<sect1 id="release-4-4-18">
+ <title>リリース 4.4.18</title>
+ <note>
+ <title>リリース日</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>概要</title>
+ <para>
+ このリリースには、以下の脆弱性に対するセキュリティ修正が含まれています。
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [38492eba8]
+ -->
+ <para>
+ フェイルオーバ時の<productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、任意のメモリアドレスに任意の32ビット値を書き込むことができる脆弱性があります。(CVE-2026-92867)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ要求メッセージを送信することにより、意図しないメモリアドレスに値を書き込み、メモリ破壊を引き起こすことが可能な脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [c8ff0a2e6]
+ -->
+ <para>
+ クライアントが証明書認証を使って<productname>Pgpool-II</productname>に接続する際に、<productname>Pgpool-II</productname>がクライアントのX.509証明書のCommon Name (CN)フィールド内のドメイン名にある'\0'を適切に処理しないため、悪意のあるクライアントがパスワードなしに他のユーザ名で<productname>Pgpool-II</productname>サーバに接続できる脆弱性があります。(CVE-2026-92868)
+ </para>
+ <para>
+ クライアント証明書認証では、クライアント証明書から取得したCommon Name (CN)を接続ユーザ名と比較して認証を行います。
+ しかし、CNに埋め込みNUL文字(\0)を含む細工された証明書を適切に検証していなかったため、本来とは異なるCNが正当なユーザ名として扱われる可能性があります。
+ 攻撃者が埋め込みNUL文字を含む細工されたクライアント証明書を提示することで、本来認証されるべきでない利用者が正当な利用者として認証される可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の4.0系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している4.0系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、クライアント証明書認証以外の認証方式を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [3b20a01d8]
+ 2026-09-20 [f1917eeeb]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、固定長配列の境界を超えてメモリ領域が書き換えられる脆弱性があります。(CVE-2026-92869)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdog機能において、Watchdog peerから受信した設定情報を処理するメッセージ解析処理に境界外書き込みの脆弱性があります。
+ Watchdog peerから受信したbackend_descおよびwd_nodesのJSON配列長に対する上限チェックが不十分であるため、細工されたメッセージを処理した場合、固定長配列の境界外へ書き込みが発生する可能性があります。
+ 本脆弱性が悪用された場合、<productname>Pgpool-II</productname>プロセスの異常終了やメモリ破壊が発生する可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogにおいて、フェイルオーバ処理メッセージの扱いに脆弱性があり、任意の長さの値を書き込むことによりスタックを破壊し、<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。(CVE-2026-92870)
+ </para>
+ <para>
+ wd_authkeyが設定されていない場合、<productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ処理メッセージを渡すことによって<productname>Pgpool-II</productname>メインプロセスのスタックに任意の長さの値を書き込むことが可能な脆弱性があり、それによって<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [4d563d412]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogノード間認証において、認証キーが設定されている環境で、認証情報を含まない細工されたwatchdogメッセージを適切に処理できないことに起因するNULLポインタ参照の脆弱性があります。(CVE-2026-92871)
+ </para>
+ <para>
+ watchdogポートへ接続可能な攻撃者が、認証情報を含まない細工されたwatchdogメッセージを送信することにより、対象ノードのwatchdogプロセスを異常終了させる可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [e1fc04436]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスには、情報を漏洩する可能性がある脆弱性があります。(CVE-2026-92872)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスが不正なメッセージを受信した際に、スタックメモリ上の情報をログファイルを通じて漏洩する可能性がある脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、ハートビートの代わりにクエリによる死活監視(<literal>wd_lifecheck_method = 'query'</literal>)を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [fbd1f4ee6]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。(CVE-2026-92873)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のクラスタ管理モジュールであるwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>不具合修正</title>
+ <itemizedlist>
+
+ <listitem>
+ <!--
+ 2026-09-18 [81f75c263]
+ 2026-09-19 [808cccc69]
+ -->
+ <para>
+ 拡張クエリのパイプライン処理中にSyncが早期に送信される問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 拡張クエリのパイプライン処理が進行中であるにもかかわらず、内部の<literal>Sync</literal>メッセージによって暗黙のトランザクションが早期にコミットされることを防ぐようにしました。
+ また、バックエンドノード間でエラー処理とトランザクションの終了処理を調整し、パイプライン内の後続処理でエラーが発生した場合に、それ以前の変更がロールバックされるようにしました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [8c1795792]
+ -->
+ <para>
+ パイプラインモードで遅延制約エラーが発生するとハングする問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ バックエンドから<literal>ErrorResponse</literal>を受信した際に、保留中の<literal>Sync</literal>メッセージを保持し、<literal>ReadyForQuery</literal>まで処理を継続できるようにしました。
+ 以前は、コミット時に遅延制約違反が発生すると、フロントエンドが既に送信済みのSyncをPgpool-IIが無期限に待つ可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [68ba530c6]
+ -->
+ <para>
+ Parseでの内部トランザクション処理の不整合を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>Parse()</function>での内部トランザクションの開始をレプリケーションモードに限定し、<function>Bind()</function>と一致させました。
+ 以前は、rawモードで拡張クエリプロトコルによるUPDATEを自動コミットで実行すると、接続がトランザクション内に残る可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [4b6b592e5]
+ -->
+ <para>
+ <function>do_error_execute_command()</function>での応答バッファのポインタ更新を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 保存した応答のバッファポインタを、長さフィールドのサイズではなく、応答本体の実際の長さだけ進めるようにしました。
+ これにより、プロトコルv2とv3の両方で、長さが0の応答の後などに後続の保存済み応答が破損する問題を防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [a00c8ce3d]
+ -->
+ <para>
+ <function>handle_query_context()</function>で解析木の存在を確認するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>handle_query_context()</function>で解析木にアクセスする前に、その存在を確認するようにしました。
+ この問題はCoverityによって検出されました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ac6a7bf08]
+ -->
+ <para>
+ PCPワーカーの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCPワーカーの終了処理をシグナルハンドラからメインループに移しました。
+ ハンドラでは終了要求の記録のみを行い、他の処理が進行中に安全でないログ出力や後処理を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [be13986bc]
+ -->
+ <para>
+ PCP親プロセスのシグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCP親プロセスの終了処理と起床処理をメインループに移しました。
+ シグナルハンドラではワーカー一覧の走査や変更を行わず、フラグを設定するようにしました。
+ これにより、クラッシュや再利用されたプロセスIDへのシグナル送信につながる競合を防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [3d234eb8e]
+ -->
+ <para>
+ アイドル接続の後処理をシグナルハンドラからメインループに移しました。(Taiki Koshino)
+ </para>
+ <para>
+ 子プロセスのSIGUSR1ハンドラではアイドル接続の後処理要求を記録し、実際の後処理はメインループで行うようにしました。
+ これにより、シグナルで中断されたコードが使用中の接続やスタートアップパケットのメモリが解放されることを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [fccee6214]
+ -->
+ <para>
+ ライフチェックの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ watchdogのライフチェックにおける子プロセスの終了、メモリの後処理、およびプロセスの終了処理をシグナルハンドラの外に移しました。
+ ハンドラでは<literal>errno</literal>を保持しながらシグナルを記録してフラグを設定し、シグナルハンドラ内で安全でない操作を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ed0ce5342]
+ -->
+ <para>
+ クエリキャッシュのキーに区切りを追加し、衝突を防ぐようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ クエリキャッシュのキーを構築する際に、ユーザ、クエリ、およびデータベースの各フィールド間にNUL文字の区切りを挿入し、バッファ全体をハッシュ化するようにしました。
+ 以前は、区切りなしでこれらのフィールドを連結していたため、異なる入力から同一のキーが生成され、別のユーザやデータベースのキャッシュ結果が返される可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ff83fef0c]
+ -->
+ <para>
+ <function>inject_cached_message()</function>での符号なし整数のアンダーフローを修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>inject_cached_message()</function>でヘッダサイズを減算する前に、キャッシュされたメッセージの長さを検証するようにしました。
+ 以前は、長さがヘッダサイズより小さい場合にアンダーフローによって大きな符号なし整数値になり、メモリ割り当ての失敗によってセッションが終了する可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [2fb3447bb]
+ -->
+ <para>
+ pgprotoでのバッファ境界外アクセスを修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>pgproto</literal>で継続行かどうかを判定する前に、入力バッファの長さを確認するようにしました。
+ これにより、AddressSanitizerによって検出された境界外アクセスを防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [75906a373]
+ -->
+ <para>
+ 削除された設定パラメータをデフォルト値に戻すようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ <filename>pgpool.conf</filename>から削除またはコメントアウトされた再読み込み可能なパラメータを、デフォルト値に戻すようにしました。
+ 以前は、設定を再読み込みしても古い値が保持されていました。
+ 設定ファイルから読み込まれたものではない値は変更しません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [44e454142]
+ -->
+ <para>
+ 「Fix do_query to send sync rather than flush.」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>do_query()</function>が<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信する変更を取り消しました。
+ この変更により、パイプラインの暗黙のトランザクションが早期にコミットされ、後続の文が失敗しても、それ以前の変更がコミットされたままになる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [fddf794a2]
+ -->
+ <para>
+ <function>get_health_check_stats()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>get_health_check_stats()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ <para>
+ この問題はseoktai-chunによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [2a4cd12ea]
+ -->
+ <para>
+ <function>pool_temp_tables_delete()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>pool_temp_tables_delete()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [2f1f80b52]
+ -->
+ <para>
+ 認証中の通知メッセージの転送を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ セッションコンテキストが確立される前の認証段階で、バックエンドからの通知メッセージを安全に転送するようにしました。
+ これにより、PostgreSQL 19以降が出力するMD5認証の通知メッセージによってFATALエラーが発生する問題を修正しました。
+ </para>
+ <para>
+ この問題はharudiniによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [c1eb10dc1]
+ -->
+ <para>
+ 「make do_query send Sync rather than Flush」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ この変更では、<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信することで、内部クエリによって開始された暗黙のトランザクションを終了させようとしていました。
+ しかし、パイプラインのトランザクションが本来の動作をしなくなるため、その後コミット<literal>44e454142</literal>で取り消されました。
+ この動作は最終的なリリースには含まれません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [f62f4076b]
+ -->
+ <para>
+ 不足していたvolatile修飾子を追加しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <varname>my_backend_status</varname>を介した共有バックエンド状態へのアクセスに、不足していた<literal>volatile</literal>修飾子を追加しました。
+ これにより、コンパイラの最適化によって古い状態値が使用されることを防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [6eac43789]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>で不正なErrorResponseの長さを拒否するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>read_kind_from_backend()</function>で、バックエンドから受信した<literal>ErrorResponse</literal>の長さが長さフィールドのサイズより小さい場合に拒否するようにしました。
+ これにより、不正な応答の処理時にヒープバッファの上書きや符号なし整数のアンダーフローが発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [2ff69a70a]
+ -->
+ <para>
+ <function>pool_do_auth()</function>でセグメンテーション違反が発生する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 共有メモリ上のメインノードIDを個別にコピーするのではなく、コピーしたバックエンドの状態からローカルのメインノードIDを決定するようにしました。
+ これにより、フェイルオーバー中の状態の不整合によって<function>pool_do_auth()</function>でNULLの接続ポインタが参照されることを防ぎます。
+ また、共有メモリからの読み取りにvolatile修飾子を追加しました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [af96466fa]
+ -->
+ <para>
+ Pgpool-IIのメインプロセスのシグナルハンドラで安全でない操作を行わないようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ メインプロセスの終了処理をSIGTERM、SIGINT、およびSIGQUITのハンドラの外に移しました。
+ ハンドラでは要求を記録してメインループを起床させ、メインループが通常のプロセス実行コンテキストで終了処理を行うようにしました。
+ これにより、シグナルハンドラ内の安全でない操作によってクラッシュ、ハング、またはメモリ破壊が発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [a601b3e63]
+ -->
+ <para>
+ バックエンドノードの停止後にクエリコンテキストの解放済みメモリを使用する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ クエリコンテキストをセッションのメモリコンテキスト内に割り当て、セッション単位の送信済みメッセージ一覧と保留中メッセージ一覧からの参照が有効なまま保たれるようにしました。
+ 以前は、バックエンドの停止によってクエリ処理ループがこれらの一覧から参照中のコンテキストを解放し、解放済みメモリの使用やクラッシュにつながる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [199a8ca6b]
+ -->
+ <para>
+ 拡張クエリモードでCOPY INがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ バックエンドからのCopyInResponseを待ってからCOPYデータを転送し、CopyDoneの後にフロントエンドのSyncを処理できるようにしました。
+ これにより、ストリーミングレプリケーションモードで拡張クエリプロトコルを使って<command>COPY FROM STDIN</command>を実行するとハングする問題を修正しました。
+ </para>
+ <para>
+ この問題はliujinyang-highgoによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [1fcbdfdf1]
+ -->
+ <para>
+ pcp_node_infoがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ PCPのノード情報応答の長さを計算して送信する前に、共有メモリ上のレプリケーション状態を表す文字列をローカルバッファにコピーするようにしました。
+ 以前は、同時更新によって宣言されたパケット長と実際のデータ長が一致しなくなり、<command>pcp_node_info</command>がハングする可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [9be9348bd]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>のコメントの誤字を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [1f2e3adf0]
+ -->
+ <para>
+ disable_load_balance_on_write使用時のクエリキャッシュ処理を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 実際の書き込みを、<varname>disable_load_balance_on_write</varname>が使用する状態とは別に追跡するようにしました。
+ これにより、このパラメータを<literal>trans_transaction</literal>、<literal>dml_adaptive</literal>、または<literal>always</literal>に設定した場合にクエリキャッシュが誤って使用される問題を修正しました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>ドキュメント修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [a51f10e37]
+ -->
+ <para>
+ ドキュメントの誤ったリンクを修正しました。(Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>回帰テスト修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [0456abe36]
+ -->
+ <para>
+ 018.detach_primary回帰テストを改善しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>018.detach_primary</literal>で、不正なストリーミングレプリケーションのプライマリノードの切り離しをテストする前に、watchdogのクォーラム成立を明示的に待つようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [2d9f72de1]
+ -->
+ <para>
+ 006.memqcache回帰テストを安定化しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>のストリーミングレプリケーションのテストで同期レプリケーションを使用するようにしました。
+ これにより、新しく作成したロールがスタンバイでまだ利用できない場合など、レプリケーション遅延による断続的な失敗を防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [c82f5c5cb]
+ -->
+ <para>
+ regress.shで数値のPostgreSQLバージョン番号を使用するように修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 回帰テストスクリプトで使用するPostgreSQLのバージョンから数値以外の接尾辞を除去し、<literal>20devel</literal>のような開発版のバージョン文字列を数値比較に使用できるようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [1a34764fe]
+ -->
+ <para>
+ テストのタイムアウトを300秒から360秒に延長しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>の実行時間の増加に対応するため、回帰テストのタイムアウトを300秒から360秒に延長しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [849c42f94]
+ -->
+ <para>
+ sleepの代わりにwait_for_pgpool_startupを使用するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>110.memory_leak</literal>と<literal>111.cancel_query</literal>で、固定の1秒間の待機の代わりに<function>wait_for_pgpool_startup()</function>を使用し、起動に関連する断続的なテスト失敗を防ぐようにしました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-4-17">
<title>リリース 4.4.17</title>
<note>
diff --git a/doc.ja/src/sgml/release-4.5.sgml b/doc.ja/src/sgml/release-4.5.sgml
index 7e6c149cd..74c43cc8c 100644
--- a/doc.ja/src/sgml/release-4.5.sgml
+++ b/doc.ja/src/sgml/release-4.5.sgml
@@ -1,6 +1,734 @@
<!-- doc/src/sgml/release-4.5.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+<sect1 id="release-4-5-13">
+ <title>リリース 4.5.13</title>
+ <note>
+ <title>リリース日</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>概要</title>
+ <para>
+ このリリースには、以下の脆弱性に対するセキュリティ修正が含まれています。
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [38492eba8]
+ -->
+ <para>
+ フェイルオーバ時の<productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、任意のメモリアドレスに任意の32ビット値を書き込むことができる脆弱性があります。(CVE-2026-92867)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ要求メッセージを送信することにより、意図しないメモリアドレスに値を書き込み、メモリ破壊を引き起こすことが可能な脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [bbe90c163]
+ -->
+ <para>
+ クライアントが証明書認証を使って<productname>Pgpool-II</productname>に接続する際に、<productname>Pgpool-II</productname>がクライアントのX.509証明書のCommon Name (CN)フィールド内のドメイン名にある'\0'を適切に処理しないため、悪意のあるクライアントがパスワードなしに他のユーザ名で<productname>Pgpool-II</productname>サーバに接続できる脆弱性があります。(CVE-2026-92868)
+ </para>
+ <para>
+ クライアント証明書認証では、クライアント証明書から取得したCommon Name (CN)を接続ユーザ名と比較して認証を行います。
+ しかし、CNに埋め込みNUL文字(\0)を含む細工された証明書を適切に検証していなかったため、本来とは異なるCNが正当なユーザ名として扱われる可能性があります。
+ 攻撃者が埋め込みNUL文字を含む細工されたクライアント証明書を提示することで、本来認証されるべきでない利用者が正当な利用者として認証される可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の4.0系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している4.0系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、クライアント証明書認証以外の認証方式を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [d1860e849]
+ 2026-09-20 [9273a80db]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、固定長配列の境界を超えてメモリ領域が書き換えられる脆弱性があります。(CVE-2026-92869)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdog機能において、Watchdog peerから受信した設定情報を処理するメッセージ解析処理に境界外書き込みの脆弱性があります。
+ Watchdog peerから受信したbackend_descおよびwd_nodesのJSON配列長に対する上限チェックが不十分であるため、細工されたメッセージを処理した場合、固定長配列の境界外へ書き込みが発生する可能性があります。
+ 本脆弱性が悪用された場合、<productname>Pgpool-II</productname>プロセスの異常終了やメモリ破壊が発生する可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogにおいて、フェイルオーバ処理メッセージの扱いに脆弱性があり、任意の長さの値を書き込むことによりスタックを破壊し、<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。(CVE-2026-92870)
+ </para>
+ <para>
+ wd_authkeyが設定されていない場合、<productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ処理メッセージを渡すことによって<productname>Pgpool-II</productname>メインプロセスのスタックに任意の長さの値を書き込むことが可能な脆弱性があり、それによって<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [ce7946b74]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogノード間認証において、認証キーが設定されている環境で、認証情報を含まない細工されたwatchdogメッセージを適切に処理できないことに起因するNULLポインタ参照の脆弱性があります。(CVE-2026-92871)
+ </para>
+ <para>
+ watchdogポートへ接続可能な攻撃者が、認証情報を含まない細工されたwatchdogメッセージを送信することにより、対象ノードのwatchdogプロセスを異常終了させる可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [f95742306]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスには、情報を漏洩する可能性がある脆弱性があります。(CVE-2026-92872)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスが不正なメッセージを受信した際に、スタックメモリ上の情報をログファイルを通じて漏洩する可能性がある脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、ハートビートの代わりにクエリによる死活監視(<literal>wd_lifecheck_method = 'query'</literal>)を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [7b27dabf8]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。(CVE-2026-92873)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のクラスタ管理モジュールであるwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>不具合修正</title>
+ <itemizedlist>
+
+ <listitem>
+ <!--
+ 2026-09-18 [ec41e85d0]
+ 2026-09-19 [e65554941]
+ -->
+ <para>
+ 拡張クエリのパイプライン処理中にSyncが早期に送信される問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 拡張クエリのパイプライン処理が進行中であるにもかかわらず、内部の<literal>Sync</literal>メッセージによって暗黙のトランザクションが早期にコミットされることを防ぐようにしました。
+ また、バックエンドノード間でエラー処理とトランザクションの終了処理を調整し、パイプライン内の後続処理でエラーが発生した場合に、それ以前の変更がロールバックされるようにしました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [a177ff5eb]
+ -->
+ <para>
+ パイプラインモードで遅延制約エラーが発生するとハングする問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ バックエンドから<literal>ErrorResponse</literal>を受信した際に、保留中の<literal>Sync</literal>メッセージを保持し、<literal>ReadyForQuery</literal>まで処理を継続できるようにしました。
+ 以前は、コミット時に遅延制約違反が発生すると、フロントエンドが既に送信済みのSyncをPgpool-IIが無期限に待つ可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [2d23e0432]
+ -->
+ <para>
+ Parseでの内部トランザクション処理の不整合を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>Parse()</function>での内部トランザクションの開始をレプリケーションモードに限定し、<function>Bind()</function>と一致させました。
+ 以前は、rawモードで拡張クエリプロトコルによるUPDATEを自動コミットで実行すると、接続がトランザクション内に残る可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [9b916a79b]
+ -->
+ <para>
+ <function>do_error_execute_command()</function>での応答バッファのポインタ更新を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 保存した応答のバッファポインタを、長さフィールドのサイズではなく、応答本体の実際の長さだけ進めるようにしました。
+ これにより、プロトコルv2とv3の両方で、長さが0の応答の後などに後続の保存済み応答が破損する問題を防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [7a4b71c86]
+ -->
+ <para>
+ <function>handle_query_context()</function>で解析木の存在を確認するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>handle_query_context()</function>で解析木にアクセスする前に、その存在を確認するようにしました。
+ この問題はCoverityによって検出されました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [3347e0970]
+ -->
+ <para>
+ PCPワーカーの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCPワーカーの終了処理をシグナルハンドラからメインループに移しました。
+ ハンドラでは終了要求の記録のみを行い、他の処理が進行中に安全でないログ出力や後処理を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [911628dd3]
+ -->
+ <para>
+ PCP親プロセスのシグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCP親プロセスの終了処理と起床処理をメインループに移しました。
+ シグナルハンドラではワーカー一覧の走査や変更を行わず、フラグを設定するようにしました。
+ これにより、クラッシュや再利用されたプロセスIDへのシグナル送信につながる競合を防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [0a80f5346]
+ -->
+ <para>
+ アイドル接続の後処理をシグナルハンドラからメインループに移しました。(Taiki Koshino)
+ </para>
+ <para>
+ 子プロセスのSIGUSR1ハンドラではアイドル接続の後処理要求を記録し、実際の後処理はメインループで行うようにしました。
+ これにより、シグナルで中断されたコードが使用中の接続やスタートアップパケットのメモリが解放されることを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [59ff573eb]
+ -->
+ <para>
+ ライフチェックの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ watchdogのライフチェックにおける子プロセスの終了、メモリの後処理、およびプロセスの終了処理をシグナルハンドラの外に移しました。
+ ハンドラでは<literal>errno</literal>を保持しながらシグナルを記録してフラグを設定し、シグナルハンドラ内で安全でない操作を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ce78e355f]
+ -->
+ <para>
+ クエリキャッシュのキーに区切りを追加し、衝突を防ぐようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ クエリキャッシュのキーを構築する際に、ユーザ、クエリ、およびデータベースの各フィールド間にNUL文字の区切りを挿入し、バッファ全体をハッシュ化するようにしました。
+ 以前は、区切りなしでこれらのフィールドを連結していたため、異なる入力から同一のキーが生成され、別のユーザやデータベースのキャッシュ結果が返される可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f0fcec001]
+ -->
+ <para>
+ <function>inject_cached_message()</function>での符号なし整数のアンダーフローを修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>inject_cached_message()</function>でヘッダサイズを減算する前に、キャッシュされたメッセージの長さを検証するようにしました。
+ 以前は、長さがヘッダサイズより小さい場合にアンダーフローによって大きな符号なし整数値になり、メモリ割り当ての失敗によってセッションが終了する可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [b9a5a52b9]
+ -->
+ <para>
+ pgprotoでのバッファ境界外アクセスを修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>pgproto</literal>で継続行かどうかを判定する前に、入力バッファの長さを確認するようにしました。
+ これにより、AddressSanitizerによって検出された境界外アクセスを防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [a9d314c23]
+ -->
+ <para>
+ 削除された設定パラメータをデフォルト値に戻すようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ <filename>pgpool.conf</filename>から削除またはコメントアウトされた再読み込み可能なパラメータを、デフォルト値に戻すようにしました。
+ 以前は、設定を再読み込みしても古い値が保持されていました。
+ 設定ファイルから読み込まれたものではない値は変更しません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [987d806e6]
+ -->
+ <para>
+ 「Fix do_query to send sync rather than flush.」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>do_query()</function>が<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信する変更を取り消しました。
+ この変更により、パイプラインの暗黙のトランザクションが早期にコミットされ、後続の文が失敗しても、それ以前の変更がコミットされたままになる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [a48a24ebf]
+ -->
+ <para>
+ <function>get_health_check_stats()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>get_health_check_stats()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ <para>
+ この問題はseoktai-chunによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [19cb04072]
+ -->
+ <para>
+ <function>pool_temp_tables_delete()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>pool_temp_tables_delete()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [b7f0da4e1]
+ -->
+ <para>
+ 認証中の通知メッセージの転送を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ セッションコンテキストが確立される前の認証段階で、バックエンドからの通知メッセージを安全に転送するようにしました。
+ これにより、PostgreSQL 19以降が出力するMD5認証の通知メッセージによってFATALエラーが発生する問題を修正しました。
+ </para>
+ <para>
+ この問題はharudiniによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [a6ac3ea54]
+ -->
+ <para>
+ 「make do_query send Sync rather than Flush」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ この変更では、<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信することで、内部クエリによって開始された暗黙のトランザクションを終了させようとしていました。
+ しかし、パイプラインのトランザクションが本来の動作をしなくなるため、その後コミット<literal>987d806e6</literal>で取り消されました。
+ この動作は最終的なリリースには含まれません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [e7079755a]
+ -->
+ <para>
+ 不足していたvolatile修飾子を追加しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <varname>my_backend_status</varname>を介した共有バックエンド状態へのアクセスに、不足していた<literal>volatile</literal>修飾子を追加しました。
+ これにより、コンパイラの最適化によって古い状態値が使用されることを防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [9e84817fb]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>で不正なErrorResponseの長さを拒否するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>read_kind_from_backend()</function>で、バックエンドから受信した<literal>ErrorResponse</literal>の長さが長さフィールドのサイズより小さい場合に拒否するようにしました。
+ これにより、不正な応答の処理時にヒープバッファの上書きや符号なし整数のアンダーフローが発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [c0c3c0963]
+ -->
+ <para>
+ <function>pool_do_auth()</function>でセグメンテーション違反が発生する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 共有メモリ上のメインノードIDを個別にコピーするのではなく、コピーしたバックエンドの状態からローカルのメインノードIDを決定するようにしました。
+ これにより、フェイルオーバー中の状態の不整合によって<function>pool_do_auth()</function>でNULLの接続ポインタが参照されることを防ぎます。
+ また、共有メモリからの読み取りにvolatile修飾子を追加しました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [8e0a9b9a4]
+ -->
+ <para>
+ Pgpool-IIのメインプロセスのシグナルハンドラで安全でない操作を行わないようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ メインプロセスの終了処理をSIGTERM、SIGINT、およびSIGQUITのハンドラの外に移しました。
+ ハンドラでは要求を記録してメインループを起床させ、メインループが通常のプロセス実行コンテキストで終了処理を行うようにしました。
+ これにより、シグナルハンドラ内の安全でない操作によってクラッシュ、ハング、またはメモリ破壊が発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [006f7c826]
+ -->
+ <para>
+ バックエンドノードの停止後にクエリコンテキストの解放済みメモリを使用する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ クエリコンテキストをセッションのメモリコンテキスト内に割り当て、セッション単位の送信済みメッセージ一覧と保留中メッセージ一覧からの参照が有効なまま保たれるようにしました。
+ 以前は、バックエンドの停止によってクエリ処理ループがこれらの一覧から参照中のコンテキストを解放し、解放済みメモリの使用やクラッシュにつながる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [660948ad1]
+ -->
+ <para>
+ 拡張クエリモードでCOPY INがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ バックエンドからのCopyInResponseを待ってからCOPYデータを転送し、CopyDoneの後にフロントエンドのSyncを処理できるようにしました。
+ これにより、ストリーミングレプリケーションモードで拡張クエリプロトコルを使って<command>COPY FROM STDIN</command>を実行するとハングする問題を修正しました。
+ </para>
+ <para>
+ この問題はliujinyang-highgoによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [aa8be8067]
+ -->
+ <para>
+ pcp_node_infoがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ PCPのノード情報応答の長さを計算して送信する前に、共有メモリ上のレプリケーション状態を表す文字列をローカルバッファにコピーするようにしました。
+ 以前は、同時更新によって宣言されたパケット長と実際のデータ長が一致しなくなり、<command>pcp_node_info</command>がハングする可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [d847d7362]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>のコメントの誤字を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [eb57546bd]
+ -->
+ <para>
+ disable_load_balance_on_write使用時のクエリキャッシュ処理を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 実際の書き込みを、<varname>disable_load_balance_on_write</varname>が使用する状態とは別に追跡するようにしました。
+ これにより、このパラメータを<literal>trans_transaction</literal>、<literal>dml_adaptive</literal>、または<literal>always</literal>に設定した場合にクエリキャッシュが誤って使用される問題を修正しました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>ドキュメント修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [396ce23bc]
+ -->
+ <para>
+ ドキュメントの誤ったリンクを修正しました。(Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>回帰テスト修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [4ddc345d3]
+ -->
+ <para>
+ 018.detach_primary回帰テストを改善しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>018.detach_primary</literal>で、不正なストリーミングレプリケーションのプライマリノードの切り離しをテストする前に、watchdogのクォーラム成立を明示的に待つようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [abfd530f3]
+ -->
+ <para>
+ 006.memqcache回帰テストを安定化しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>のストリーミングレプリケーションのテストで同期レプリケーションを使用するようにしました。
+ これにより、新しく作成したロールがスタンバイでまだ利用できない場合など、レプリケーション遅延による断続的な失敗を防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [7bc77e61a]
+ -->
+ <para>
+ regress.shで数値のPostgreSQLバージョン番号を使用するように修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 回帰テストスクリプトで使用するPostgreSQLのバージョンから数値以外の接尾辞を除去し、<literal>20devel</literal>のような開発版のバージョン文字列を数値比較に使用できるようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [0f21d5a70]
+ -->
+ <para>
+ テストのタイムアウトを300秒から360秒に延長しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>の実行時間の増加に対応するため、回帰テストのタイムアウトを300秒から360秒に延長しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [d7dcce267]
+ -->
+ <para>
+ sleepの代わりにwait_for_pgpool_startupを使用するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>110.memory_leak</literal>と<literal>111.cancel_query</literal>で、固定の1秒間の待機の代わりに<function>wait_for_pgpool_startup()</function>を使用し、起動に関連する断続的なテスト失敗を防ぐようにしました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-5-12">
<title>リリース 4.5.12</title>
<note>
diff --git a/doc.ja/src/sgml/release-4.6.sgml b/doc.ja/src/sgml/release-4.6.sgml
index 63beff86d..02fb10e6e 100644
--- a/doc.ja/src/sgml/release-4.6.sgml
+++ b/doc.ja/src/sgml/release-4.6.sgml
@@ -1,3 +1,731 @@
+<sect1 id="release-4-6-8">
+ <title>リリース 4.6.8</title>
+ <note>
+ <title>リリース日</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>概要</title>
+ <para>
+ このリリースには、以下の脆弱性に対するセキュリティ修正が含まれています。
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [7d3a3fff9]
+ -->
+ <para>
+ フェイルオーバ時の<productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、任意のメモリアドレスに任意の32ビット値を書き込むことができる脆弱性があります。(CVE-2026-92867)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ要求メッセージを送信することにより、意図しないメモリアドレスに値を書き込み、メモリ破壊を引き起こすことが可能な脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [622e65b82]
+ -->
+ <para>
+ クライアントが証明書認証を使って<productname>Pgpool-II</productname>に接続する際に、<productname>Pgpool-II</productname>がクライアントのX.509証明書のCommon Name (CN)フィールド内のドメイン名にある'\0'を適切に処理しないため、悪意のあるクライアントがパスワードなしに他のユーザ名で<productname>Pgpool-II</productname>サーバに接続できる脆弱性があります。(CVE-2026-92868)
+ </para>
+ <para>
+ クライアント証明書認証では、クライアント証明書から取得したCommon Name (CN)を接続ユーザ名と比較して認証を行います。
+ しかし、CNに埋め込みNUL文字(\0)を含む細工された証明書を適切に検証していなかったため、本来とは異なるCNが正当なユーザ名として扱われる可能性があります。
+ 攻撃者が埋め込みNUL文字を含む細工されたクライアント証明書を提示することで、本来認証されるべきでない利用者が正当な利用者として認証される可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の4.0系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している4.0系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、クライアント証明書認証以外の認証方式を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [05d9128bf]
+ 2026-09-20 [3b69d04ba]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、固定長配列の境界を超えてメモリ領域が書き換えられる脆弱性があります。(CVE-2026-92869)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdog機能において、Watchdog peerから受信した設定情報を処理するメッセージ解析処理に境界外書き込みの脆弱性があります。
+ Watchdog peerから受信したbackend_descおよびwd_nodesのJSON配列長に対する上限チェックが不十分であるため、細工されたメッセージを処理した場合、固定長配列の境界外へ書き込みが発生する可能性があります。
+ 本脆弱性が悪用された場合、<productname>Pgpool-II</productname>プロセスの異常終了やメモリ破壊が発生する可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogにおいて、フェイルオーバ処理メッセージの扱いに脆弱性があり、任意の長さの値を書き込むことによりスタックを破壊し、<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。(CVE-2026-92870)
+ </para>
+ <para>
+ wd_authkeyが設定されていない場合、<productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ処理メッセージを渡すことによって<productname>Pgpool-II</productname>メインプロセスのスタックに任意の長さの値を書き込むことが可能な脆弱性があり、それによって<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [a10e19df1]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogノード間認証において、認証キーが設定されている環境で、認証情報を含まない細工されたwatchdogメッセージを適切に処理できないことに起因するNULLポインタ参照の脆弱性があります。(CVE-2026-92871)
+ </para>
+ <para>
+ watchdogポートへ接続可能な攻撃者が、認証情報を含まない細工されたwatchdogメッセージを送信することにより、対象ノードのwatchdogプロセスを異常終了させる可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [7fb01f972]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスには、情報を漏洩する可能性がある脆弱性があります。(CVE-2026-92872)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスが不正なメッセージを受信した際に、スタックメモリ上の情報をログファイルを通じて漏洩する可能性がある脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、ハートビートの代わりにクエリによる死活監視(<literal>wd_lifecheck_method = 'query'</literal>)を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [dc9c516f5]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。(CVE-2026-92873)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のクラスタ管理モジュールであるwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>不具合修正</title>
+ <itemizedlist>
+
+ <listitem>
+ <!--
+ 2026-09-18 [a3426eb28]
+ 2026-09-19 [9f8fd38ad]
+ -->
+ <para>
+ 拡張クエリのパイプライン処理中にSyncが早期に送信される問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 拡張クエリのパイプライン処理が進行中であるにもかかわらず、内部の<literal>Sync</literal>メッセージによって暗黙のトランザクションが早期にコミットされることを防ぐようにしました。
+ また、バックエンドノード間でエラー処理とトランザクションの終了処理を調整し、パイプライン内の後続処理でエラーが発生した場合に、それ以前の変更がロールバックされるようにしました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [cf1f8e9ba]
+ -->
+ <para>
+ パイプラインモードで遅延制約エラーが発生するとハングする問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ バックエンドから<literal>ErrorResponse</literal>を受信した際に、保留中の<literal>Sync</literal>メッセージを保持し、<literal>ReadyForQuery</literal>まで処理を継続できるようにしました。
+ 以前は、コミット時に遅延制約違反が発生すると、フロントエンドが既に送信済みのSyncをPgpool-IIが無期限に待つ可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [c1149bb86]
+ -->
+ <para>
+ Parseでの内部トランザクション処理の不整合を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>Parse()</function>での内部トランザクションの開始をレプリケーションモードに限定し、<function>Bind()</function>と一致させました。
+ 以前は、rawモードで拡張クエリプロトコルによるUPDATEを自動コミットで実行すると、接続がトランザクション内に残る可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [2da451f98]
+ -->
+ <para>
+ <function>do_error_execute_command()</function>での応答バッファのポインタ更新を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 保存した応答のバッファポインタを、長さフィールドのサイズではなく、応答本体の実際の長さだけ進めるようにしました。
+ これにより、プロトコルv2とv3の両方で、長さが0の応答の後などに後続の保存済み応答が破損する問題を防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [890609cda]
+ -->
+ <para>
+ <function>handle_query_context()</function>で解析木の存在を確認するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>handle_query_context()</function>で解析木にアクセスする前に、その存在を確認するようにしました。
+ この問題はCoverityによって検出されました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [102c68292]
+ -->
+ <para>
+ PCPワーカーの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCPワーカーの終了処理をシグナルハンドラからメインループに移しました。
+ ハンドラでは終了要求の記録のみを行い、他の処理が進行中に安全でないログ出力や後処理を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [6d7cd4447]
+ -->
+ <para>
+ PCP親プロセスのシグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCP親プロセスの終了処理と起床処理をメインループに移しました。
+ シグナルハンドラではワーカー一覧の走査や変更を行わず、フラグを設定するようにしました。
+ これにより、クラッシュや再利用されたプロセスIDへのシグナル送信につながる競合を防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [1e6eedf2e]
+ -->
+ <para>
+ アイドル接続の後処理をシグナルハンドラからメインループに移しました。(Taiki Koshino)
+ </para>
+ <para>
+ 子プロセスのSIGUSR1ハンドラではアイドル接続の後処理要求を記録し、実際の後処理はメインループで行うようにしました。
+ これにより、シグナルで中断されたコードが使用中の接続やスタートアップパケットのメモリが解放されることを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [58d6e9f13]
+ -->
+ <para>
+ ライフチェックの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ watchdogのライフチェックにおける子プロセスの終了、メモリの後処理、およびプロセスの終了処理をシグナルハンドラの外に移しました。
+ ハンドラでは<literal>errno</literal>を保持しながらシグナルを記録してフラグを設定し、シグナルハンドラ内で安全でない操作を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [96a891f08]
+ -->
+ <para>
+ クエリキャッシュのキーに区切りを追加し、衝突を防ぐようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ クエリキャッシュのキーを構築する際に、ユーザ、クエリ、およびデータベースの各フィールド間にNUL文字の区切りを挿入し、バッファ全体をハッシュ化するようにしました。
+ 以前は、区切りなしでこれらのフィールドを連結していたため、異なる入力から同一のキーが生成され、別のユーザやデータベースのキャッシュ結果が返される可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [464784ac2]
+ -->
+ <para>
+ <function>inject_cached_message()</function>での符号なし整数のアンダーフローを修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>inject_cached_message()</function>でヘッダサイズを減算する前に、キャッシュされたメッセージの長さを検証するようにしました。
+ 以前は、長さがヘッダサイズより小さい場合にアンダーフローによって大きな符号なし整数値になり、メモリ割り当ての失敗によってセッションが終了する可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [cdec3ea94]
+ -->
+ <para>
+ pgprotoでのバッファ境界外アクセスを修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>pgproto</literal>で継続行かどうかを判定する前に、入力バッファの長さを確認するようにしました。
+ これにより、AddressSanitizerによって検出された境界外アクセスを防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [221b504f4]
+ -->
+ <para>
+ 削除された設定パラメータをデフォルト値に戻すようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ <filename>pgpool.conf</filename>から削除またはコメントアウトされた再読み込み可能なパラメータを、デフォルト値に戻すようにしました。
+ 以前は、設定を再読み込みしても古い値が保持されていました。
+ 設定ファイルから読み込まれたものではない値は変更しません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [961ce127f]
+ -->
+ <para>
+ 「Fix do_query to send sync rather than flush.」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>do_query()</function>が<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信する変更を取り消しました。
+ この変更により、パイプラインの暗黙のトランザクションが早期にコミットされ、後続の文が失敗しても、それ以前の変更がコミットされたままになる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [bb7d8f56a]
+ -->
+ <para>
+ <function>get_health_check_stats()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>get_health_check_stats()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ <para>
+ この問題はseoktai-chunによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [e04ff84c2]
+ -->
+ <para>
+ <function>pool_temp_tables_delete()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>pool_temp_tables_delete()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [9f99289bd]
+ -->
+ <para>
+ 認証中の通知メッセージの転送を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ セッションコンテキストが確立される前の認証段階で、バックエンドからの通知メッセージを安全に転送するようにしました。
+ これにより、PostgreSQL 19以降が出力するMD5認証の通知メッセージによってFATALエラーが発生する問題を修正しました。
+ </para>
+ <para>
+ この問題はharudiniによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [22965306d]
+ -->
+ <para>
+ 「make do_query send Sync rather than Flush」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ この変更では、<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信することで、内部クエリによって開始された暗黙のトランザクションを終了させようとしていました。
+ しかし、パイプラインのトランザクションが本来の動作をしなくなるため、その後コミット<literal>961ce127f</literal>で取り消されました。
+ この動作は最終的なリリースには含まれません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [f3250e05a]
+ -->
+ <para>
+ 不足していたvolatile修飾子を追加しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <varname>my_backend_status</varname>を介した共有バックエンド状態へのアクセスに、不足していた<literal>volatile</literal>修飾子を追加しました。
+ これにより、コンパイラの最適化によって古い状態値が使用されることを防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [244b55188]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>で不正なErrorResponseの長さを拒否するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>read_kind_from_backend()</function>で、バックエンドから受信した<literal>ErrorResponse</literal>の長さが長さフィールドのサイズより小さい場合に拒否するようにしました。
+ これにより、不正な応答の処理時にヒープバッファの上書きや符号なし整数のアンダーフローが発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [8b97ee77e]
+ -->
+ <para>
+ <function>pool_do_auth()</function>でセグメンテーション違反が発生する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 共有メモリ上のメインノードIDを個別にコピーするのではなく、コピーしたバックエンドの状態からローカルのメインノードIDを決定するようにしました。
+ これにより、フェイルオーバー中の状態の不整合によって<function>pool_do_auth()</function>でNULLの接続ポインタが参照されることを防ぎます。
+ また、共有メモリからの読み取りにvolatile修飾子を追加しました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [103a8af71]
+ -->
+ <para>
+ Pgpool-IIのメインプロセスのシグナルハンドラで安全でない操作を行わないようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ メインプロセスの終了処理をSIGTERM、SIGINT、およびSIGQUITのハンドラの外に移しました。
+ ハンドラでは要求を記録してメインループを起床させ、メインループが通常のプロセス実行コンテキストで終了処理を行うようにしました。
+ これにより、シグナルハンドラ内の安全でない操作によってクラッシュ、ハング、またはメモリ破壊が発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [760a166d0]
+ -->
+ <para>
+ バックエンドノードの停止後にクエリコンテキストの解放済みメモリを使用する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ クエリコンテキストをセッションのメモリコンテキスト内に割り当て、セッション単位の送信済みメッセージ一覧と保留中メッセージ一覧からの参照が有効なまま保たれるようにしました。
+ 以前は、バックエンドの停止によってクエリ処理ループがこれらの一覧から参照中のコンテキストを解放し、解放済みメモリの使用やクラッシュにつながる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [6bd29493d]
+ -->
+ <para>
+ 拡張クエリモードでCOPY INがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ バックエンドからのCopyInResponseを待ってからCOPYデータを転送し、CopyDoneの後にフロントエンドのSyncを処理できるようにしました。
+ これにより、ストリーミングレプリケーションモードで拡張クエリプロトコルを使って<command>COPY FROM STDIN</command>を実行するとハングする問題を修正しました。
+ </para>
+ <para>
+ この問題はliujinyang-highgoによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [2c63ab1d6]
+ -->
+ <para>
+ pcp_node_infoがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ PCPのノード情報応答の長さを計算して送信する前に、共有メモリ上のレプリケーション状態を表す文字列をローカルバッファにコピーするようにしました。
+ 以前は、同時更新によって宣言されたパケット長と実際のデータ長が一致しなくなり、<command>pcp_node_info</command>がハングする可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [fd6a626c4]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>のコメントの誤字を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [af256cadb]
+ -->
+ <para>
+ disable_load_balance_on_write使用時のクエリキャッシュ処理を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 実際の書き込みを、<varname>disable_load_balance_on_write</varname>が使用する状態とは別に追跡するようにしました。
+ これにより、このパラメータを<literal>trans_transaction</literal>、<literal>dml_adaptive</literal>、または<literal>always</literal>に設定した場合にクエリキャッシュが誤って使用される問題を修正しました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>ドキュメント修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [6c39ab910]
+ -->
+ <para>
+ ドキュメントの誤ったリンクを修正しました。(Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>回帰テスト修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [767485723]
+ -->
+ <para>
+ 018.detach_primary回帰テストを改善しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>018.detach_primary</literal>で、不正なストリーミングレプリケーションのプライマリノードの切り離しをテストする前に、watchdogのクォーラム成立を明示的に待つようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [24d17f9de]
+ -->
+ <para>
+ 006.memqcache回帰テストを安定化しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>のストリーミングレプリケーションのテストで同期レプリケーションを使用するようにしました。
+ これにより、新しく作成したロールがスタンバイでまだ利用できない場合など、レプリケーション遅延による断続的な失敗を防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [a6d9b9eb1]
+ -->
+ <para>
+ regress.shで数値のPostgreSQLバージョン番号を使用するように修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 回帰テストスクリプトで使用するPostgreSQLのバージョンから数値以外の接尾辞を除去し、<literal>20devel</literal>のような開発版のバージョン文字列を数値比較に使用できるようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [4a3908a50]
+ -->
+ <para>
+ テストのタイムアウトを300秒から360秒に延長しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>の実行時間の増加に対応するため、回帰テストのタイムアウトを300秒から360秒に延長しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [a341f49df]
+ -->
+ <para>
+ sleepの代わりにwait_for_pgpool_startupを使用するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>110.memory_leak</literal>と<literal>111.cancel_query</literal>で、固定の1秒間の待機の代わりに<function>wait_for_pgpool_startup()</function>を使用し、起動に関連する断続的なテスト失敗を防ぐようにしました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-6-7">
<title>リリース 4.6.7</title>
<note>
diff --git a/doc.ja/src/sgml/release-4.7.sgml b/doc.ja/src/sgml/release-4.7.sgml
index a8b0715af..5b8e7ba1f 100644
--- a/doc.ja/src/sgml/release-4.7.sgml
+++ b/doc.ja/src/sgml/release-4.7.sgml
@@ -1,3 +1,746 @@
+<sect1 id="release-4-7-3">
+ <title>リリース 4.7.3</title>
+ <note>
+ <title>リリース日</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>概要</title>
+ <para>
+ このリリースには、以下の脆弱性に対するセキュリティ修正が含まれています。
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [38492eba8]
+ -->
+ <para>
+ フェイルオーバ時の<productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、任意のメモリアドレスに任意の32ビット値を書き込むことができる脆弱性があります。(CVE-2026-92867)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ要求メッセージを送信することにより、意図しないメモリアドレスに値を書き込み、メモリ破壊を引き起こすことが可能な脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [754ed0968]
+ -->
+ <para>
+ クライアントが証明書認証を使って<productname>Pgpool-II</productname>に接続する際に、<productname>Pgpool-II</productname>がクライアントのX.509証明書のCommon Name (CN)フィールド内のドメイン名にある'\0'を適切に処理しないため、悪意のあるクライアントがパスワードなしに他のユーザ名で<productname>Pgpool-II</productname>サーバに接続できる脆弱性があります。(CVE-2026-92868)
+ </para>
+ <para>
+ クライアント証明書認証では、クライアント証明書から取得したCommon Name (CN)を接続ユーザ名と比較して認証を行います。
+ しかし、CNに埋め込みNUL文字(\0)を含む細工された証明書を適切に検証していなかったため、本来とは異なるCNが正当なユーザ名として扱われる可能性があります。
+ 攻撃者が埋め込みNUL文字を含む細工されたクライアント証明書を提示することで、本来認証されるべきでない利用者が正当な利用者として認証される可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の4.0系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している4.0系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、クライアント証明書認証以外の認証方式を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [67b2f3c8c]
+ 2026-09-20 [845ebb139]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogのメッセージ処理において、攻撃者が不正なメッセージを渡すことにより、固定長配列の境界を超えてメモリ領域が書き換えられる脆弱性があります。(CVE-2026-92869)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のwatchdog機能において、Watchdog peerから受信した設定情報を処理するメッセージ解析処理に境界外書き込みの脆弱性があります。
+ Watchdog peerから受信したbackend_descおよびwd_nodesのJSON配列長に対する上限チェックが不十分であるため、細工されたメッセージを処理した場合、固定長配列の境界外へ書き込みが発生する可能性があります。
+ 本脆弱性が悪用された場合、<productname>Pgpool-II</productname>プロセスの異常終了やメモリ破壊が発生する可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogにおいて、フェイルオーバ処理メッセージの扱いに脆弱性があり、任意の長さの値を書き込むことによりスタックを破壊し、<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。(CVE-2026-92870)
+ </para>
+ <para>
+ wd_authkeyが設定されていない場合、<productname>Pgpool-II</productname>のwatchdogには、攻撃者が不正なフェイルオーバ処理メッセージを渡すことによって<productname>Pgpool-II</productname>メインプロセスのスタックに任意の長さの値を書き込むことが可能な脆弱性があり、それによって<productname>Pgpool-II</productname>のプロセスをクラッシュさせることができます。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [707fcb649]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogノード間認証において、認証キーが設定されている環境で、認証情報を含まない細工されたwatchdogメッセージを適切に処理できないことに起因するNULLポインタ参照の脆弱性があります。(CVE-2026-92871)
+ </para>
+ <para>
+ watchdogポートへ接続可能な攻撃者が、認証情報を含まない細工されたwatchdogメッセージを送信することにより、対象ノードのwatchdogプロセスを異常終了させる可能性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [8f5d179f2]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスには、情報を漏洩する可能性がある脆弱性があります。(CVE-2026-92872)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のハートビート受信プロセスが不正なメッセージを受信した際に、スタックメモリ上の情報をログファイルを通じて漏洩する可能性がある脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、ハートビートの代わりにクエリによる死活監視(<literal>wd_lifecheck_method = 'query'</literal>)を使用してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [6c8e17f99]
+ -->
+ <para>
+ <productname>Pgpool-II</productname>のwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。(CVE-2026-92873)
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>のクラスタ管理モジュールであるwatchdogの昇格処理において、攻撃者が認証キーチェックをバイパスして、任意のwatchdogノードをリーダーノードに昇格できる脆弱性があります。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>の3.5系から4.2系までのすべてのバージョン、4.3.0から4.3.20、4.4.0から4.4.17、4.5.0から4.5.12、4.6.0から4.6.7、および4.7.0から4.7.2が影響を受けます。
+ <productname>Pgpool-II</productname> 4.7.3、4.6.8、4.5.13、4.4.18、4.3.21、または各系列のそれ以降のリリースへのアップグレードを強く推奨します。
+ サポートが終了している3.5系から4.2系には修正版は提供されません。
+ これらのバージョンを使用している場合は、修正を含むサポート対象のバージョンにアップグレードしてください。
+ </para>
+ <para>
+ その他の回避策として、watchdogを無効にする(<literal>use_watchdog = off</literal>)か、信頼できるネットワークからのみwatchdogに接続できるようにアクセスを制限してください。
+ </para>
+ <para>
+ <productname>Pgpool-II</productname>プロジェクトは、この問題を報告してくださったEmond Papegaaijに感謝します。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>不具合修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-19 [a3170f3c7]
+ 2026-09-18 [9ffb84bf5]
+ -->
+ <para>
+ 拡張クエリのパイプライン処理中にSyncが早期に送信される問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 拡張クエリのパイプライン処理が進行中であるにもかかわらず、内部の<literal>Sync</literal>メッセージによって暗黙のトランザクションが早期にコミットされることを防ぐようにしました。
+ また、バックエンドノード間でエラー処理とトランザクションの終了処理を調整し、パイプライン内の後続処理でエラーが発生した場合に、それ以前の変更がロールバックされるようにしました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [ec2e6f115]
+ -->
+ <para>
+ パイプラインモードで遅延制約エラーが発生するとハングする問題を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ バックエンドから<literal>ErrorResponse</literal>を受信した際に、保留中の<literal>Sync</literal>メッセージを保持し、<literal>ReadyForQuery</literal>まで処理を継続できるようにしました。
+ 以前は、コミット時に遅延制約違反が発生すると、フロントエンドが既に送信済みのSyncをPgpool-IIが無期限に待つ可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [630e7da95]
+ -->
+ <para>
+ Parseでの内部トランザクション処理の不整合を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>Parse()</function>での内部トランザクションの開始をレプリケーションモードに限定し、<function>Bind()</function>と一致させました。
+ 以前は、rawモードで拡張クエリプロトコルによるUPDATEを自動コミットで実行すると、接続がトランザクション内に残る可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [c56701d05]
+ -->
+ <para>
+ <function>do_error_execute_command()</function>での応答バッファのポインタ更新を修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ 保存した応答のバッファポインタを、長さフィールドのサイズではなく、応答本体の実際の長さだけ進めるようにしました。
+ これにより、プロトコルv2とv3の両方で、長さが0の応答の後などに後続の保存済み応答が破損する問題を防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [044e261d7]
+ -->
+ <para>
+ <function>handle_query_context()</function>で解析木の存在を確認するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>handle_query_context()</function>で解析木にアクセスする前に、その存在を確認するようにしました。
+ この問題はCoverityによって検出されました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f4b9595ad]
+ -->
+ <para>
+ PCPワーカーの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCPワーカーの終了処理をシグナルハンドラからメインループに移しました。
+ ハンドラでは終了要求の記録のみを行い、他の処理が進行中に安全でないログ出力や後処理を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [92003564b]
+ -->
+ <para>
+ PCP親プロセスのシグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ PCP親プロセスの終了処理と起床処理をメインループに移しました。
+ シグナルハンドラではワーカー一覧の走査や変更を行わず、フラグを設定するようにしました。
+ これにより、クラッシュや再利用されたプロセスIDへのシグナル送信につながる競合を防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [47c4735e8]
+ -->
+ <para>
+ アイドル接続の後処理をシグナルハンドラからメインループに移しました。(Taiki Koshino)
+ </para>
+ <para>
+ 子プロセスのSIGUSR1ハンドラではアイドル接続の後処理要求を記録し、実際の後処理はメインループで行うようにしました。
+ これにより、シグナルで中断されたコードが使用中の接続やスタートアップパケットのメモリが解放されることを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f7373655c]
+ -->
+ <para>
+ ライフチェックの終了シグナルハンドラではフラグの設定のみを行うようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ watchdogのライフチェックにおける子プロセスの終了、メモリの後処理、およびプロセスの終了処理をシグナルハンドラの外に移しました。
+ ハンドラでは<literal>errno</literal>を保持しながらシグナルを記録してフラグを設定し、シグナルハンドラ内で安全でない操作を行わないようにしました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f070a1181]
+ -->
+ <para>
+ クエリキャッシュのキーに区切りを追加し、衝突を防ぐようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ クエリキャッシュのキーを構築する際に、ユーザ、クエリ、およびデータベースの各フィールド間にNUL文字の区切りを挿入し、バッファ全体をハッシュ化するようにしました。
+ 以前は、区切りなしでこれらのフィールドを連結していたため、異なる入力から同一のキーが生成され、別のユーザやデータベースのキャッシュ結果が返される可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [a1a45ec3f]
+ -->
+ <para>
+ <function>inject_cached_message()</function>での符号なし整数のアンダーフローを修正しました。(Taiki Koshino)
+ </para>
+ <para>
+ <function>inject_cached_message()</function>でヘッダサイズを減算する前に、キャッシュされたメッセージの長さを検証するようにしました。
+ 以前は、長さがヘッダサイズより小さい場合にアンダーフローによって大きな符号なし整数値になり、メモリ割り当ての失敗によってセッションが終了する可能性がありました。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [e16ea53f5]
+ -->
+ <para>
+ pgprotoでのバッファ境界外アクセスを修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>pgproto</literal>で継続行かどうかを判定する前に、入力バッファの長さを確認するようにしました。
+ これにより、AddressSanitizerによって検出された境界外アクセスを防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [6b1e286bf]
+ -->
+ <para>
+ 削除された設定パラメータをデフォルト値に戻すようにしました。(Taiki Koshino)
+ </para>
+ <para>
+ <filename>pgpool.conf</filename>から削除またはコメントアウトされた再読み込み可能なパラメータを、デフォルト値に戻すようにしました。
+ 以前は、設定を再読み込みしても古い値が保持されていました。
+ 設定ファイルから読み込まれたものではない値は変更しません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [9bf2066fd]
+ -->
+ <para>
+ 「Fix do_query to send sync rather than flush.」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>do_query()</function>が<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信する変更を取り消しました。
+ この変更により、パイプラインの暗黙のトランザクションが早期にコミットされ、後続の文が失敗しても、それ以前の変更がコミットされたままになる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [848517b30]
+ -->
+ <para>
+ <function>get_health_check_stats()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>get_health_check_stats()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ <para>
+ この問題はseoktai-chunによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [f9634a7fb]
+ -->
+ <para>
+ <function>pool_temp_tables_delete()</function>のデバッグメッセージのレベルをDEBUG5に下げました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>pool_temp_tables_delete()</function>に誤って残されていたデバッグメッセージをLOGからDEBUG5に変更しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [08fbe906d]
+ -->
+ <para>
+ 認証中の通知メッセージの転送を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ セッションコンテキストが確立される前の認証段階で、バックエンドからの通知メッセージを安全に転送するようにしました。
+ これにより、PostgreSQL 19以降が出力するMD5認証の通知メッセージによってFATALエラーが発生する問題を修正しました。
+ </para>
+ <para>
+ この問題はharudiniによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [57fc62eea]
+ -->
+ <para>
+ <function>pgpool_admのpcp_proc_info()</function>がクラッシュする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>pgpool_adm</literal>の<function>pcp_proc_info()</function>の実装で、タプル記述子の最終化と登録を行うようにしました。
+ これにより、PostgreSQL 19でクラッシュする問題を修正しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [bc3689a2d]
+ -->
+ <para>
+ 「make do_query send Sync rather than Flush」の変更を取り消しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ この変更では、<literal>Flush</literal>の代わりに<literal>Sync</literal>を送信することで、内部クエリによって開始された暗黙のトランザクションを終了させようとしていました。
+ しかし、パイプラインのトランザクションが本来の動作をしなくなるため、その後コミット<literal>9bf2066fd</literal>で取り消されました。
+ この動作は最終的なリリースには含まれません。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [84a079e63]
+ -->
+ <para>
+ 不足していたvolatile修飾子を追加しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <varname>my_backend_status</varname>を介した共有バックエンド状態へのアクセスに、不足していた<literal>volatile</literal>修飾子を追加しました。
+ これにより、コンパイラの最適化によって古い状態値が使用されることを防ぎます。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [f847e8430]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>で不正なErrorResponseの長さを拒否するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <function>read_kind_from_backend()</function>で、バックエンドから受信した<literal>ErrorResponse</literal>の長さが長さフィールドのサイズより小さい場合に拒否するようにしました。
+ これにより、不正な応答の処理時にヒープバッファの上書きや符号なし整数のアンダーフローが発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [1f02bd312]
+ -->
+ <para>
+ <function>pool_do_auth()</function>でセグメンテーション違反が発生する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 共有メモリ上のメインノードIDを個別にコピーするのではなく、コピーしたバックエンドの状態からローカルのメインノードIDを決定するようにしました。
+ これにより、フェイルオーバー中の状態の不整合によって<function>pool_do_auth()</function>でNULLの接続ポインタが参照されることを防ぎます。
+ また、共有メモリからの読み取りにvolatile修飾子を追加しました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [3ff98c1e4]
+ -->
+ <para>
+ Pgpool-IIのメインプロセスのシグナルハンドラで安全でない操作を行わないようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ メインプロセスの終了処理をSIGTERM、SIGINT、およびSIGQUITのハンドラの外に移しました。
+ ハンドラでは要求を記録してメインループを起床させ、メインループが通常のプロセス実行コンテキストで終了処理を行うようにしました。
+ これにより、シグナルハンドラ内の安全でない操作によってクラッシュ、ハング、またはメモリ破壊が発生することを防ぎます。
+ </para>
+ <para>
+ この問題はEmond Papegaaijによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [346e54778]
+ -->
+ <para>
+ バックエンドノードの停止後にクエリコンテキストの解放済みメモリを使用する問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ クエリコンテキストをセッションのメモリコンテキスト内に割り当て、セッション単位の送信済みメッセージ一覧と保留中メッセージ一覧からの参照が有効なまま保たれるようにしました。
+ 以前は、バックエンドの停止によってクエリ処理ループがこれらの一覧から参照中のコンテキストを解放し、解放済みメモリの使用やクラッシュにつながる可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [7a47706a2]
+ -->
+ <para>
+ 拡張クエリモードでCOPY INがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ バックエンドからのCopyInResponseを待ってからCOPYデータを転送し、CopyDoneの後にフロントエンドのSyncを処理できるようにしました。
+ これにより、ストリーミングレプリケーションモードで拡張クエリプロトコルを使って<command>COPY FROM STDIN</command>を実行するとハングする問題を修正しました。
+ </para>
+ <para>
+ この問題はliujinyang-highgoによって報告されました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [4ad45f625]
+ -->
+ <para>
+ pcp_node_infoがハングする問題を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ PCPのノード情報応答の長さを計算して送信する前に、共有メモリ上のレプリケーション状態を表す文字列をローカルバッファにコピーするようにしました。
+ 以前は、同時更新によって宣言されたパケット長と実際のデータ長が一致しなくなり、<command>pcp_node_info</command>がハングする可能性がありました。
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [ba75b4b62]
+ -->
+ <para>
+ <function>read_kind_from_backend()</function>のコメントの誤字を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ ディスカッション: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [30b401a33]
+ -->
+ <para>
+ disable_load_balance_on_write使用時のクエリキャッシュ処理を修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 実際の書き込みを、<varname>disable_load_balance_on_write</varname>が使用する状態とは別に追跡するようにしました。
+ これにより、このパラメータを<literal>trans_transaction</literal>、<literal>dml_adaptive</literal>、または<literal>always</literal>に設定した場合にクエリキャッシュが誤って使用される問題を修正しました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>ドキュメント修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [4071aa2e8]
+ -->
+ <!--
+ 2026-06-25 [a6a772422]
+ -->
+ <para>
+ ドキュメントの誤ったリンクを修正しました。(Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>回帰テスト修正</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [7bdc01fea]
+ -->
+ <para>
+ 018.detach_primary回帰テストを改善しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>018.detach_primary</literal>で、不正なストリーミングレプリケーションのプライマリノードの切り離しをテストする前に、watchdogのクォーラム成立を明示的に待つようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [5f258a055]
+ -->
+ <para>
+ 006.memqcache回帰テストを安定化しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>のストリーミングレプリケーションのテストで同期レプリケーションを使用するようにしました。
+ これにより、新しく作成したロールがスタンバイでまだ利用できない場合など、レプリケーション遅延による断続的な失敗を防ぎます。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [315c05be1]
+ -->
+ <para>
+ regress.shで数値のPostgreSQLバージョン番号を使用するように修正しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ 回帰テストスクリプトで使用するPostgreSQLのバージョンから数値以外の接尾辞を除去し、<literal>20devel</literal>のような開発版のバージョン文字列を数値比較に使用できるようにしました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [bdaccab93]
+ -->
+ <para>
+ テストのタイムアウトを300秒から360秒に延長しました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>006.memqcache</literal>の実行時間の増加に対応するため、回帰テストのタイムアウトを300秒から360秒に延長しました。
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [c91e846c8]
+ -->
+ <para>
+ sleepの代わりにwait_for_pgpool_startupを使用するようにしました。(Tatsuo Ishii)
+ </para>
+ <para>
+ <literal>110.memory_leak</literal>と<literal>111.cancel_query</literal>で、固定の1秒間の待機の代わりに<function>wait_for_pgpool_startup()</function>を使用し、起動に関連する断続的なテスト失敗を防ぐようにしました。
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-7-2">
<title>リリース 4.7.2</title>
<note>
@@ -33,7 +776,7 @@
この修正により、リーダーが初期値-2を報告した場合はローカルのprimary_node_idを維持するようになりました。
</para>
<para>
- この問題はEmond PapegaaijとClaude Codeによって報告されました。
+ この問題はEmond Papegaaijによって報告されました。
</para>
<para>
ディスカッション: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZmBoLs3Mz%3DG-Bdm4JJG%2BfH1NpHfR3qVJVwW4eBKWwStQ%40mail.gmail.com">Primary node detection race at clean startup</ulink>
diff --git a/doc/src/sgml/release-4.3.sgml b/doc/src/sgml/release-4.3.sgml
index d7d8d1830..e5554035b 100644
--- a/doc/src/sgml/release-4.3.sgml
+++ b/doc/src/sgml/release-4.3.sgml
@@ -1,6 +1,912 @@
<!-- doc/src/sgml/release-4.3.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+<sect1 id="release-4-3-21">
+ <title>Release 4.3.21</title>
+ <note>
+ <title>Release Date</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>Overview</title>
+ <para>
+ This release contains security fixes for the following
+ vulnerabilities.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [38492eba8]
+ -->
+ <para>
+ A vulnerability in watchdog message processing during failover
+ in <productname>Pgpool-II</productname> allows an attacker to
+ write an arbitrary 32-bit value to an arbitrary memory address
+ by sending a malformed message. (CVE-2026-92867)
+ </para>
+ <para>
+ An attacker can send a malformed failover request message to
+ watchdog in <productname>Pgpool-II</productname>, causing a value
+ to be written to an unintended memory address and resulting in
+ memory corruption.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>)
+ or restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [3ad8f05c1]
+ -->
+ <para>
+ When a client connects to <productname>Pgpool-II</productname>
+ using certificate authentication,
+ <productname>Pgpool-II</productname> does not properly handle
+ NUL bytes (\0) in the domain name in the Common Name (CN) field
+ of the client's X.509 certificate. This vulnerability allows a
+ malicious client to connect to the
+ <productname>Pgpool-II</productname> server as another user
+ without a password. (CVE-2026-92868)
+ </para>
+ <para>
+ Client certificate authentication compares the Common Name (CN)
+ extracted from the client certificate with the connection
+ username. However, crafted certificates containing an embedded
+ NUL byte (\0) in the CN were not properly validated, allowing a
+ CN that does not actually match the username to be treated as a
+ valid match. By presenting such a certificate, an attacker may
+ be authenticated as a legitimate user when authentication
+ should have been rejected.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 4.0
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 4.0 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, use an authentication
+ method other than client certificate authentication.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [755e00290]
+ 2026-09-20 [513a1661e]
+ -->
+ <para>
+ A vulnerability in watchdog message processing in
+ <productname>Pgpool-II</productname> allows an attacker to
+ overwrite memory beyond the boundaries of fixed-size arrays
+ by sending a malformed message. (CVE-2026-92869)
+ </para>
+ <para>
+ An out-of-bounds write vulnerability exists in the watchdog
+ message parsing code that processes configuration information
+ received from watchdog peers in
+ <productname>Pgpool-II</productname>. Upper-bound checks on the
+ lengths of the backend_desc and wd_nodes JSON arrays received
+ from watchdog peers are insufficient. Processing a crafted
+ message may therefore cause writes beyond fixed-size arrays.
+ Exploiting this vulnerability may cause a
+ <productname>Pgpool-II</productname> process to crash or corrupt
+ its memory.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog
+ (<literal>use_watchdog = off</literal>) or restrict access to
+ watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ A vulnerability in the handling of failover messages by watchdog
+ in <productname>Pgpool-II</productname> allows writes of
+ arbitrary-length data to corrupt the stack and crash a
+ <productname>Pgpool-II</productname> process. (CVE-2026-92870)
+ </para>
+ <para>
+ When wd_authkey is not configured, an attacker can send a
+ malformed failover message to watchdog in
+ <productname>Pgpool-II</productname> and write arbitrary-length
+ data to the stack of the <productname>Pgpool-II</productname>
+ main process, causing the <productname>Pgpool-II</productname>
+ process to crash.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [68868048d]
+ -->
+ <para>
+ A NULL pointer dereference vulnerability exists in watchdog
+ inter-node authentication in
+ <productname>Pgpool-II</productname>. When an authentication key
+ is configured, crafted watchdog messages that omit
+ authentication information are not handled correctly. (CVE-2026-92871)
+ </para>
+ <para>
+ An attacker who can connect to the watchdog port may cause the
+ watchdog process on the target node to crash by sending a
+ crafted watchdog message that omits authentication information.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [ef5d7cc54]
+ -->
+ <para>
+ An information disclosure vulnerability exists in the heartbeat
+ receiver process of <productname>Pgpool-II</productname>.
+ (CVE-2026-92872)
+ </para>
+ <para>
+ When the heartbeat receiver process of
+ <productname>Pgpool-II</productname> receives a malformed
+ message, it may disclose information from stack memory through
+ log files.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ use query-based life checking (<literal>wd_lifecheck_method = 'query'</literal>)
+ instead of heartbeat.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [246f082fc]
+ -->
+ <para>
+ A vulnerability in watchdog promotion processing in
+ <productname>Pgpool-II</productname> allows an attacker to bypass
+ authentication key checks and promote a watchdog node of their
+ choice to leader. (CVE-2026-92873)
+ </para>
+ <para>
+ In the promotion processing of watchdog, the cluster management
+ module of <productname>Pgpool-II</productname>, an attacker can
+ bypass authentication key checks and promote a watchdog node of
+ their choice to leader.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Bug fixes</title>
+ <itemizedlist>
+
+ <listitem>
+ <!--
+ 2026-09-18 [81f75c263]
+ 2026-09-19 [808cccc69]
+ -->
+ <para>
+ Fix premature Sync during extended-query pipelines. (Taiki Koshino)
+ </para>
+ <para>
+ Prevent internal <literal>Sync</literal> messages from
+ prematurely committing an implicit transaction while an
+ extended-query pipeline is still in progress. Also coordinate
+ errors and transaction completion across backend nodes so that an
+ error later in a pipeline rolls back earlier changes.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [8c1795792]
+ -->
+ <para>
+ Fix a hang on deferred constraint errors in pipeline mode. (Taiki Koshino)
+ </para>
+ <para>
+ Keep the pending <literal>Sync</literal> message when a backend
+ returns an <literal>ErrorResponse</literal>, allowing processing
+ to continue through <literal>ReadyForQuery</literal>. Previously,
+ a deferred constraint violation at commit time could make
+ Pgpool-II wait indefinitely for a Sync that the frontend had
+ already sent.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [68ba530c6]
+ -->
+ <para>
+ Fix inconsistent internal transaction handling in Parse. (Taiki Koshino)
+ </para>
+ <para>
+ Restrict internal transaction creation in
+ <function>Parse()</function> to replication mode, matching
+ <function>Bind()</function>. Previously, an autocommitted
+ extended-protocol UPDATE in raw mode could leave the connection
+ in a transaction.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [4b6b592e5]
+ -->
+ <para>
+ Fix response buffer pointer advancement in <function>do_error_execute_command()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Advance the saved-response buffer pointer by the actual response
+ body length rather than the size of the length field. This
+ prevents corruption of subsequent saved responses, including
+ after a zero-length response, in both protocol v2 and v3.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [a00c8ce3d]
+ -->
+ <para>
+ Check that a parse tree exists in <function>handle_query_context()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check that a parse tree exists before accessing it in
+ <function>handle_query_context()</function>. This issue was
+ identified by Coverity.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ac6a7bf08]
+ -->
+ <para>
+ Make the PCP worker shutdown signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP worker shutdown processing out of the signal handler and
+ into the main loop. The handler now records the shutdown request
+ only, avoiding unsafe logging and cleanup while other operations
+ are in progress.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [be13986bc]
+ -->
+ <para>
+ Make PCP parent signal handlers only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP parent shutdown and wakeup processing into the main
+ loop. Signal handlers now set flags rather than traversing or
+ modifying the worker list, preventing races that could cause
+ crashes or signals to be sent to reused process IDs.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [3d234eb8e]
+ -->
+ <para>
+ Move idle-connection cleanup from the signal handler to the main loop. (Taiki Koshino)
+ </para>
+ <para>
+ Make the child process SIGUSR1 handler record an idle-connection
+ cleanup request and perform the cleanup in the main loop. This
+ prevents connection and startup-packet memory from being freed
+ while the interrupted code is using it.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [fccee6214]
+ -->
+ <para>
+ Make the lifecheck exit signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move watchdog lifecheck child termination, memory cleanup, and
+ process exit out of the signal handler. The handler now records
+ the signal and sets flags while preserving
+ <literal>errno</literal>, avoiding unsafe operations in signal
+ context.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ed0ce5342]
+ -->
+ <para>
+ Add separators to query-cache keys to prevent collisions. (Taiki Koshino)
+ </para>
+ <para>
+ Insert NUL separators between the user, query, and database
+ fields when constructing query-cache keys, and hash the complete
+ buffer. Previously, concatenating these fields without separators
+ could produce identical keys for different inputs and return
+ cached results across users or databases.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ff83fef0c]
+ -->
+ <para>
+ Fix unsigned integer underflow in <function>inject_cached_message()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Validate cached message lengths before subtracting the header
+ size in <function>inject_cached_message()</function>. A length
+ smaller than the header could otherwise underflow to a large
+ unsigned value and terminate the session through a failed memory
+ allocation.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [2fb3447bb]
+ -->
+ <para>
+ Fix an out-of-bounds buffer access in pgproto. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check the input buffer length before testing for a continuation
+ line in <literal>pgproto</literal>. This prevents an
+ out-of-bounds access detected by AddressSanitizer.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [75906a373]
+ -->
+ <para>
+ Reset removed configuration parameters to their defaults. (Taiki Koshino)
+ </para>
+ <para>
+ Reset reloadable parameters to their defaults when they are
+ removed or commented out in <filename>pgpool.conf</filename>.
+ Previously, configuration reload retained their old values.
+ Values not loaded from the configuration file are left unchanged.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [44e454142]
+ -->
+ <para>
+ Revert "Fix do_query to send sync rather than flush." (Tatsuo Ishii)
+ </para>
+ <para>
+ Revert the change that made <function>do_query()</function> send
+ <literal>Sync</literal> instead of <literal>Flush</literal>. That
+ change could prematurely commit an implicit pipeline transaction,
+ leaving earlier changes committed even when a later statement
+ failed.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [fddf794a2]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>get_health_check_stats()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>get_health_check_stats()</function> from LOG to DEBUG5.
+ </para>
+ <para>
+ Problem reported by seoktai-chun.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [2a4cd12ea]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>pool_temp_tables_delete()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>pool_temp_tables_delete()</function> from LOG to
+ DEBUG5.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [2f1f80b52]
+ -->
+ <para>
+ Fix notice forwarding during authentication. (Tatsuo Ishii)
+ </para>
+ <para>
+ Forward backend notices safely during authentication, before the
+ session context is established. This fixes a FATAL error
+ triggered by the MD5 authentication notice emitted by PostgreSQL
+ 19 and later.
+ </para>
+ <para>
+ Problem reported by harudini.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [c1eb10dc1]
+ -->
+ <para>
+ Reverted change: make do_query send Sync rather than Flush. (Tatsuo Ishii)
+ </para>
+ <para>
+ This change attempted to close implicit transactions created by
+ internal queries by sending <literal>Sync</literal> instead of
+ <literal>Flush</literal>. It was subsequently reverted by commit
+ <literal>44e454142</literal> because it broke pipeline
+ transaction semantics; this behavior is not part of the final
+ release.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [f62f4076b]
+ -->
+ <para>
+ Add missing volatile qualifiers. (Tatsuo Ishii)
+ </para>
+ <para>
+ Add the missing <literal>volatile</literal> qualifiers to shared
+ backend-status accesses through
+ <varname>my_backend_status</varname>. This prevents compiler
+ optimizations from causing stale status values to be used.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [6eac43789]
+ -->
+ <para>
+ Reject invalid ErrorResponse lengths in <function>read_kind_from_backend()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Reject backend <literal>ErrorResponse</literal> lengths smaller
+ than the length field in
+ <function>read_kind_from_backend()</function>. This prevents a
+ heap buffer overwrite and unsigned underflow when handling
+ malformed responses.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [2ff69a70a]
+ -->
+ <para>
+ Fix a segmentation fault in <function>pool_do_auth()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Derive the local main node ID from the copied backend statuses
+ rather than independently copying the shared main node ID. This
+ prevents inconsistent state during failover from causing a NULL
+ connection dereference in <function>pool_do_auth()</function>.
+ Also add volatile qualifiers for shared-memory reads.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [af96466fa]
+ -->
+ <para>
+ Avoid unsafe operations in the Pgpool-II main process signal
+ handler. (Tatsuo Ishii)
+ </para>
+ <para>
+ Move main-process shutdown work out of the SIGTERM, SIGINT, and
+ SIGQUIT handler. The handler now records the request and wakes
+ the main loop, which performs shutdown in normal process context.
+ This avoids crashes, hangs, or memory corruption caused by unsafe
+ operations in the signal handler.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [a601b3e63]
+ -->
+ <para>
+ Fix a query context use-after-free after a backend node shutdown. (Tatsuo Ishii)
+ </para>
+ <para>
+ Allocate query contexts in the session memory context so they
+ remain valid for the session-scoped sent and pending message
+ lists. Previously, a backend shutdown could cause the
+ query-processing loop to free contexts still referenced by these
+ lists, leading to a use-after-free and crash.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [199a8ca6b]
+ -->
+ <para>
+ Fix a COPY IN hang in extended query mode. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait for the backend CopyInResponse before forwarding COPY data,
+ and allow the frontend Sync to be processed after CopyDone. This
+ fixes a hang when <command>COPY FROM STDIN</command> is executed
+ using the extended query protocol in streaming replication mode.
+ </para>
+ <para>
+ Problem reported by liujinyang-highgo.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [1fcbdfdf1]
+ -->
+ <para>
+ Prevent pcp_node_info from hanging. (Tatsuo Ishii)
+ </para>
+ <para>
+ Copy the shared replication-state strings into local buffers
+ before calculating and sending a PCP node-info response.
+ Concurrent updates could otherwise make the declared packet
+ length differ from its payload and cause
+ <command>pcp_node_info</command> to hang.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [9be9348bd]
+ -->
+ <para>
+ Fix a typo in a <function>read_kind_from_backend()</function> comment. (Tatsuo Ishii)
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [1f2e3adf0]
+ -->
+ <para>
+ Fix query-cache handling with disable_load_balance_on_write.
+ (Tatsuo Ishii)
+ </para>
+ <para>
+ Track actual writes separately from the state used by
+ <varname>disable_load_balance_on_write</varname>. This fixes
+ incorrect query-cache use when the parameter is set to
+ <literal>trans_transaction</literal>,
+ <literal>dml_adaptive</literal>, or <literal>always</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Documents</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [a51f10e37]
+ -->
+ <para>
+ Doc: Fix incorrect links. (Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Regression Tests</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [0456abe36]
+ -->
+ <para>
+ Test: enhance the 018.detach_primary regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait explicitly for watchdog quorum in
+ <literal>018.detach_primary</literal> before testing the
+ detachment of an invalid streaming replication primary node.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [2d9f72de1]
+ -->
+ <para>
+ Test: stabilize the 006.memqcache regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use synchronous replication in the streaming replication tests in
+ <literal>006.memqcache</literal>. This avoids intermittent
+ failures caused by replication delay, such as a newly created
+ role not yet being available on a standby.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [c82f5c5cb]
+ -->
+ <para>
+ Test: fix regress.sh to use a numeric PostgreSQL version number. (Tatsuo Ishii)
+ </para>
+ <para>
+ Remove nonnumeric suffixes from the PostgreSQL version used by
+ regression scripts, so development version strings such as
+ <literal>20devel</literal> can be used in numeric comparisons.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [1a34764fe]
+ -->
+ <para>
+ Test: increase the test timeout from 300 to 360 seconds. (Tatsuo Ishii)
+ </para>
+ <para>
+ Increase the regression test timeout from 300 to 360 seconds to
+ accommodate longer runs of <literal>006.memqcache</literal>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [849c42f94]
+ -->
+ <para>
+ Test: use wait_for_pgpool_startup instead of sleep. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use <function>wait_for_pgpool_startup()</function> instead of a
+ fixed one-second sleep in <literal>110.memory_leak</literal> and
+ <literal>111.cancel_query</literal>, avoiding intermittent
+ startup-related test failures.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
+
<sect1 id="release-4-3-20">
<title>Release 4.3.20</title>
<note>
diff --git a/doc/src/sgml/release-4.4.sgml b/doc/src/sgml/release-4.4.sgml
index cf2fca701..bc23e8b35 100644
--- a/doc/src/sgml/release-4.4.sgml
+++ b/doc/src/sgml/release-4.4.sgml
@@ -1,6 +1,911 @@
<!-- doc/src/sgml/release-4.4.sgml -->
<!-- See header comment in release.sgml about typical markup -->
+<sect1 id="release-4-4-18">
+ <title>Release 4.4.18</title>
+ <note>
+ <title>Release Date</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>Overview</title>
+ <para>
+ This release contains security fixes for the following
+ vulnerabilities.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [38492eba8]
+ -->
+ <para>
+ A vulnerability in watchdog message processing during failover
+ in <productname>Pgpool-II</productname> allows an attacker to
+ write an arbitrary 32-bit value to an arbitrary memory address
+ by sending a malformed message. (CVE-2026-92867)
+ </para>
+ <para>
+ An attacker can send a malformed failover request message to
+ watchdog in <productname>Pgpool-II</productname>, causing a value
+ to be written to an unintended memory address and resulting in
+ memory corruption.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>)
+ or restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [c8ff0a2e6]
+ -->
+ <para>
+ When a client connects to <productname>Pgpool-II</productname>
+ using certificate authentication,
+ <productname>Pgpool-II</productname> does not properly handle
+ NUL bytes (\0) in the domain name in the Common Name (CN) field
+ of the client's X.509 certificate. This vulnerability allows a
+ malicious client to connect to the
+ <productname>Pgpool-II</productname> server as another user
+ without a password. (CVE-2026-92868)
+ </para>
+ <para>
+ Client certificate authentication compares the Common Name (CN)
+ extracted from the client certificate with the connection
+ username. However, crafted certificates containing an embedded
+ NUL byte (\0) in the CN were not properly validated, allowing a
+ CN that does not actually match the username to be treated as a
+ valid match. By presenting such a certificate, an attacker may
+ be authenticated as a legitimate user when authentication
+ should have been rejected.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 4.0
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 4.0 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, use an authentication
+ method other than client certificate authentication.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [3b20a01d8]
+ 2026-09-20 [f1917eeeb]
+ -->
+ <para>
+ A vulnerability in watchdog message processing in
+ <productname>Pgpool-II</productname> allows an attacker to
+ overwrite memory beyond the boundaries of fixed-size arrays
+ by sending a malformed message. (CVE-2026-92869)
+ </para>
+ <para>
+ An out-of-bounds write vulnerability exists in the watchdog
+ message parsing code that processes configuration information
+ received from watchdog peers in
+ <productname>Pgpool-II</productname>. Upper-bound checks on the
+ lengths of the backend_desc and wd_nodes JSON arrays received
+ from watchdog peers are insufficient. Processing a crafted
+ message may therefore cause writes beyond fixed-size arrays.
+ Exploiting this vulnerability may cause a
+ <productname>Pgpool-II</productname> process to crash or corrupt
+ its memory.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog
+ (<literal>use_watchdog = off</literal>) or restrict access to
+ watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ A vulnerability in the handling of failover messages by watchdog
+ in <productname>Pgpool-II</productname> allows writes of
+ arbitrary-length data to corrupt the stack and crash a
+ <productname>Pgpool-II</productname> process. (CVE-2026-92870)
+ </para>
+ <para>
+ When wd_authkey is not configured, an attacker can send a
+ malformed failover message to watchdog in
+ <productname>Pgpool-II</productname> and write arbitrary-length
+ data to the stack of the <productname>Pgpool-II</productname>
+ main process, causing the <productname>Pgpool-II</productname>
+ process to crash.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [4d563d412]
+ -->
+ <para>
+ A NULL pointer dereference vulnerability exists in watchdog
+ inter-node authentication in
+ <productname>Pgpool-II</productname>. When an authentication key
+ is configured, crafted watchdog messages that omit
+ authentication information are not handled correctly. (CVE-2026-92871)
+ </para>
+ <para>
+ An attacker who can connect to the watchdog port may cause the
+ watchdog process on the target node to crash by sending a
+ crafted watchdog message that omits authentication information.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [e1fc04436]
+ -->
+ <para>
+ An information disclosure vulnerability exists in the heartbeat
+ receiver process of <productname>Pgpool-II</productname>.
+ (CVE-2026-92872)
+ </para>
+ <para>
+ When the heartbeat receiver process of
+ <productname>Pgpool-II</productname> receives a malformed
+ message, it may disclose information from stack memory through
+ log files.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ use query-based life checking (<literal>wd_lifecheck_method = 'query'</literal>)
+ instead of heartbeat.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [fbd1f4ee6]
+ -->
+ <para>
+ A vulnerability in watchdog promotion processing in
+ <productname>Pgpool-II</productname> allows an attacker to bypass
+ authentication key checks and promote a watchdog node of their
+ choice to leader. (CVE-2026-92873)
+ </para>
+ <para>
+ In the promotion processing of watchdog, the cluster management
+ module of <productname>Pgpool-II</productname>, an attacker can
+ bypass authentication key checks and promote a watchdog node of
+ their choice to leader.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Bug fixes</title>
+ <itemizedlist>
+
+ <listitem>
+ <!--
+ 2026-09-18 [81f75c263]
+ 2026-09-19 [808cccc69]
+ -->
+ <para>
+ Fix premature Sync during extended-query pipelines. (Taiki Koshino)
+ </para>
+ <para>
+ Prevent internal <literal>Sync</literal> messages from
+ prematurely committing an implicit transaction while an
+ extended-query pipeline is still in progress. Also coordinate
+ errors and transaction completion across backend nodes so that an
+ error later in a pipeline rolls back earlier changes.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [8c1795792]
+ -->
+ <para>
+ Fix a hang on deferred constraint errors in pipeline mode. (Taiki Koshino)
+ </para>
+ <para>
+ Keep the pending <literal>Sync</literal> message when a backend
+ returns an <literal>ErrorResponse</literal>, allowing processing
+ to continue through <literal>ReadyForQuery</literal>. Previously,
+ a deferred constraint violation at commit time could make
+ Pgpool-II wait indefinitely for a Sync that the frontend had
+ already sent.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [68ba530c6]
+ -->
+ <para>
+ Fix inconsistent internal transaction handling in Parse. (Taiki Koshino)
+ </para>
+ <para>
+ Restrict internal transaction creation in
+ <function>Parse()</function> to replication mode, matching
+ <function>Bind()</function>. Previously, an autocommitted
+ extended-protocol UPDATE in raw mode could leave the connection
+ in a transaction.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [4b6b592e5]
+ -->
+ <para>
+ Fix response buffer pointer advancement in <function>do_error_execute_command()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Advance the saved-response buffer pointer by the actual response
+ body length rather than the size of the length field. This
+ prevents corruption of subsequent saved responses, including
+ after a zero-length response, in both protocol v2 and v3.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [a00c8ce3d]
+ -->
+ <para>
+ Check that a parse tree exists in <function>handle_query_context()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check that a parse tree exists before accessing it in
+ <function>handle_query_context()</function>. This issue was
+ identified by Coverity.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ac6a7bf08]
+ -->
+ <para>
+ Make the PCP worker shutdown signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP worker shutdown processing out of the signal handler and
+ into the main loop. The handler now records the shutdown request
+ only, avoiding unsafe logging and cleanup while other operations
+ are in progress.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [be13986bc]
+ -->
+ <para>
+ Make PCP parent signal handlers only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP parent shutdown and wakeup processing into the main
+ loop. Signal handlers now set flags rather than traversing or
+ modifying the worker list, preventing races that could cause
+ crashes or signals to be sent to reused process IDs.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [3d234eb8e]
+ -->
+ <para>
+ Move idle-connection cleanup from the signal handler to the main loop. (Taiki Koshino)
+ </para>
+ <para>
+ Make the child process SIGUSR1 handler record an idle-connection
+ cleanup request and perform the cleanup in the main loop. This
+ prevents connection and startup-packet memory from being freed
+ while the interrupted code is using it.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [fccee6214]
+ -->
+ <para>
+ Make the lifecheck exit signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move watchdog lifecheck child termination, memory cleanup, and
+ process exit out of the signal handler. The handler now records
+ the signal and sets flags while preserving
+ <literal>errno</literal>, avoiding unsafe operations in signal
+ context.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ed0ce5342]
+ -->
+ <para>
+ Add separators to query-cache keys to prevent collisions. (Taiki Koshino)
+ </para>
+ <para>
+ Insert NUL separators between the user, query, and database
+ fields when constructing query-cache keys, and hash the complete
+ buffer. Previously, concatenating these fields without separators
+ could produce identical keys for different inputs and return
+ cached results across users or databases.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ff83fef0c]
+ -->
+ <para>
+ Fix unsigned integer underflow in <function>inject_cached_message()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Validate cached message lengths before subtracting the header
+ size in <function>inject_cached_message()</function>. A length
+ smaller than the header could otherwise underflow to a large
+ unsigned value and terminate the session through a failed memory
+ allocation.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [2fb3447bb]
+ -->
+ <para>
+ Fix an out-of-bounds buffer access in pgproto. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check the input buffer length before testing for a continuation
+ line in <literal>pgproto</literal>. This prevents an
+ out-of-bounds access detected by AddressSanitizer.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [75906a373]
+ -->
+ <para>
+ Reset removed configuration parameters to their defaults. (Taiki Koshino)
+ </para>
+ <para>
+ Reset reloadable parameters to their defaults when they are
+ removed or commented out in <filename>pgpool.conf</filename>.
+ Previously, configuration reload retained their old values.
+ Values not loaded from the configuration file are left unchanged.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [44e454142]
+ -->
+ <para>
+ Revert "Fix do_query to send sync rather than flush." (Tatsuo Ishii)
+ </para>
+ <para>
+ Revert the change that made <function>do_query()</function> send
+ <literal>Sync</literal> instead of <literal>Flush</literal>. That
+ change could prematurely commit an implicit pipeline transaction,
+ leaving earlier changes committed even when a later statement
+ failed.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [fddf794a2]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>get_health_check_stats()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>get_health_check_stats()</function> from LOG to DEBUG5.
+ </para>
+ <para>
+ Problem reported by seoktai-chun.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [2a4cd12ea]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>pool_temp_tables_delete()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>pool_temp_tables_delete()</function> from LOG to
+ DEBUG5.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [2f1f80b52]
+ -->
+ <para>
+ Fix notice forwarding during authentication. (Tatsuo Ishii)
+ </para>
+ <para>
+ Forward backend notices safely during authentication, before the
+ session context is established. This fixes a FATAL error
+ triggered by the MD5 authentication notice emitted by PostgreSQL
+ 19 and later.
+ </para>
+ <para>
+ Problem reported by harudini.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [c1eb10dc1]
+ -->
+ <para>
+ Reverted change: make do_query send Sync rather than Flush. (Tatsuo Ishii)
+ </para>
+ <para>
+ This change attempted to close implicit transactions created by
+ internal queries by sending <literal>Sync</literal> instead of
+ <literal>Flush</literal>. It was subsequently reverted by commit
+ <literal>44e454142</literal> because it broke pipeline
+ transaction semantics; this behavior is not part of the final
+ release.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [f62f4076b]
+ -->
+ <para>
+ Add missing volatile qualifiers. (Tatsuo Ishii)
+ </para>
+ <para>
+ Add the missing <literal>volatile</literal> qualifiers to shared
+ backend-status accesses through
+ <varname>my_backend_status</varname>. This prevents compiler
+ optimizations from causing stale status values to be used.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [6eac43789]
+ -->
+ <para>
+ Reject invalid ErrorResponse lengths in <function>read_kind_from_backend()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Reject backend <literal>ErrorResponse</literal> lengths smaller
+ than the length field in
+ <function>read_kind_from_backend()</function>. This prevents a
+ heap buffer overwrite and unsigned underflow when handling
+ malformed responses.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [2ff69a70a]
+ -->
+ <para>
+ Fix a segmentation fault in <function>pool_do_auth()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Derive the local main node ID from the copied backend statuses
+ rather than independently copying the shared main node ID. This
+ prevents inconsistent state during failover from causing a NULL
+ connection dereference in <function>pool_do_auth()</function>.
+ Also add volatile qualifiers for shared-memory reads.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [af96466fa]
+ -->
+ <para>
+ Avoid unsafe operations in the Pgpool-II main process signal
+ handler. (Tatsuo Ishii)
+ </para>
+ <para>
+ Move main-process shutdown work out of the SIGTERM, SIGINT, and
+ SIGQUIT handler. The handler now records the request and wakes
+ the main loop, which performs shutdown in normal process context.
+ This avoids crashes, hangs, or memory corruption caused by unsafe
+ operations in the signal handler.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [a601b3e63]
+ -->
+ <para>
+ Fix a query context use-after-free after a backend node shutdown. (Tatsuo Ishii)
+ </para>
+ <para>
+ Allocate query contexts in the session memory context so they
+ remain valid for the session-scoped sent and pending message
+ lists. Previously, a backend shutdown could cause the
+ query-processing loop to free contexts still referenced by these
+ lists, leading to a use-after-free and crash.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [199a8ca6b]
+ -->
+ <para>
+ Fix a COPY IN hang in extended query mode. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait for the backend CopyInResponse before forwarding COPY data,
+ and allow the frontend Sync to be processed after CopyDone. This
+ fixes a hang when <command>COPY FROM STDIN</command> is executed
+ using the extended query protocol in streaming replication mode.
+ </para>
+ <para>
+ Problem reported by liujinyang-highgo.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [1fcbdfdf1]
+ -->
+ <para>
+ Prevent pcp_node_info from hanging. (Tatsuo Ishii)
+ </para>
+ <para>
+ Copy the shared replication-state strings into local buffers
+ before calculating and sending a PCP node-info response.
+ Concurrent updates could otherwise make the declared packet
+ length differ from its payload and cause
+ <command>pcp_node_info</command> to hang.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [9be9348bd]
+ -->
+ <para>
+ Fix a typo in a <function>read_kind_from_backend()</function> comment. (Tatsuo Ishii)
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [1f2e3adf0]
+ -->
+ <para>
+ Fix query-cache handling with disable_load_balance_on_write.
+ (Tatsuo Ishii)
+ </para>
+ <para>
+ Track actual writes separately from the state used by
+ <varname>disable_load_balance_on_write</varname>. This fixes
+ incorrect query-cache use when the parameter is set to
+ <literal>trans_transaction</literal>,
+ <literal>dml_adaptive</literal>, or <literal>always</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Documents</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [a51f10e37]
+ -->
+ <para>
+ Doc: Fix incorrect links. (Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Regression Tests</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [0456abe36]
+ -->
+ <para>
+ Test: enhance the 018.detach_primary regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait explicitly for watchdog quorum in
+ <literal>018.detach_primary</literal> before testing the
+ detachment of an invalid streaming replication primary node.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [2d9f72de1]
+ -->
+ <para>
+ Test: stabilize the 006.memqcache regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use synchronous replication in the streaming replication tests in
+ <literal>006.memqcache</literal>. This avoids intermittent
+ failures caused by replication delay, such as a newly created
+ role not yet being available on a standby.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [c82f5c5cb]
+ -->
+ <para>
+ Test: fix regress.sh to use a numeric PostgreSQL version number. (Tatsuo Ishii)
+ </para>
+ <para>
+ Remove nonnumeric suffixes from the PostgreSQL version used by
+ regression scripts, so development version strings such as
+ <literal>20devel</literal> can be used in numeric comparisons.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [1a34764fe]
+ -->
+ <para>
+ Test: increase the test timeout from 300 to 360 seconds. (Tatsuo Ishii)
+ </para>
+ <para>
+ Increase the regression test timeout from 300 to 360 seconds to
+ accommodate longer runs of <literal>006.memqcache</literal>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [849c42f94]
+ -->
+ <para>
+ Test: use wait_for_pgpool_startup instead of sleep. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use <function>wait_for_pgpool_startup()</function> instead of a
+ fixed one-second sleep in <literal>110.memory_leak</literal> and
+ <literal>111.cancel_query</literal>, avoiding intermittent
+ startup-related test failures.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-4-17">
<title>Release 4.4.17</title>
<note>
diff --git a/doc/src/sgml/release-4.5.sgml b/doc/src/sgml/release-4.5.sgml
index c9ceaead8..7ea6ed6ce 100644
--- a/doc/src/sgml/release-4.5.sgml
+++ b/doc/src/sgml/release-4.5.sgml
@@ -1,3 +1,908 @@
+<sect1 id="release-4-5-13">
+ <title>Release 4.5.13</title>
+ <note>
+ <title>Release Date</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>Overview</title>
+ <para>
+ This release contains security fixes for the following
+ vulnerabilities.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [7d3a3fff9]
+ -->
+ <para>
+ A vulnerability in watchdog message processing during failover
+ in <productname>Pgpool-II</productname> allows an attacker to
+ write an arbitrary 32-bit value to an arbitrary memory address
+ by sending a malformed message. (CVE-2026-92867)
+ </para>
+ <para>
+ An attacker can send a malformed failover request message to
+ watchdog in <productname>Pgpool-II</productname>, causing a value
+ to be written to an unintended memory address and resulting in
+ memory corruption.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>)
+ or restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [754ed0968]
+ -->
+ <para>
+ When a client connects to <productname>Pgpool-II</productname>
+ using certificate authentication,
+ <productname>Pgpool-II</productname> does not properly handle
+ NUL bytes (\0) in the domain name in the Common Name (CN) field
+ of the client's X.509 certificate. This vulnerability allows a
+ malicious client to connect to the
+ <productname>Pgpool-II</productname> server as another user
+ without a password. (CVE-2026-92868)
+ </para>
+ <para>
+ Client certificate authentication compares the Common Name (CN)
+ extracted from the client certificate with the connection
+ username. However, crafted certificates containing an embedded
+ NUL byte (\0) in the CN were not properly validated, allowing a
+ CN that does not actually match the username to be treated as a
+ valid match. By presenting such a certificate, an attacker may
+ be authenticated as a legitimate user when authentication
+ should have been rejected.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 4.0
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 4.0 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, use an authentication
+ method other than client certificate authentication.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [d1860e849]
+ 2026-09-20 [9273a80db]
+ -->
+ <para>
+ A vulnerability in watchdog message processing in
+ <productname>Pgpool-II</productname> allows an attacker to
+ overwrite memory beyond the boundaries of fixed-size arrays
+ by sending a malformed message. (CVE-2026-92869)
+ </para>
+ <para>
+ An out-of-bounds write vulnerability exists in the watchdog
+ message parsing code that processes configuration information
+ received from watchdog peers in
+ <productname>Pgpool-II</productname>. Upper-bound checks on the
+ lengths of the backend_desc and wd_nodes JSON arrays received
+ from watchdog peers are insufficient. Processing a crafted
+ message may therefore cause writes beyond fixed-size arrays.
+ Exploiting this vulnerability may cause a
+ <productname>Pgpool-II</productname> process to crash or corrupt
+ its memory.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog
+ (<literal>use_watchdog = off</literal>) or restrict access to
+ watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ A vulnerability in the handling of failover messages by watchdog
+ in <productname>Pgpool-II</productname> allows writes of
+ arbitrary-length data to corrupt the stack and crash a
+ <productname>Pgpool-II</productname> process. (CVE-2026-92870)
+ </para>
+ <para>
+ When wd_authkey is not configured, an attacker can send a
+ malformed failover message to watchdog in
+ <productname>Pgpool-II</productname> and write arbitrary-length
+ data to the stack of the <productname>Pgpool-II</productname>
+ main process, causing the <productname>Pgpool-II</productname>
+ process to crash.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [ce7946b74]
+ -->
+ <para>
+ A NULL pointer dereference vulnerability exists in watchdog
+ inter-node authentication in
+ <productname>Pgpool-II</productname>. When an authentication key
+ is configured, crafted watchdog messages that omit
+ authentication information are not handled correctly. (CVE-2026-92871)
+ </para>
+ <para>
+ An attacker who can connect to the watchdog port may cause the
+ watchdog process on the target node to crash by sending a
+ crafted watchdog message that omits authentication information.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [f95742306]
+ -->
+ <para>
+ An information disclosure vulnerability exists in the heartbeat
+ receiver process of <productname>Pgpool-II</productname>.
+ (CVE-2026-92872)
+ </para>
+ <para>
+ When the heartbeat receiver process of
+ <productname>Pgpool-II</productname> receives a malformed
+ message, it may disclose information from stack memory through
+ log files.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ use query-based life checking (<literal>wd_lifecheck_method = 'query'</literal>)
+ instead of heartbeat.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [7b27dabf8]
+ -->
+ <para>
+ A vulnerability in watchdog promotion processing in
+ <productname>Pgpool-II</productname> allows an attacker to bypass
+ authentication key checks and promote a watchdog node of their
+ choice to leader. (CVE-2026-92873)
+ </para>
+ <para>
+ In the promotion processing of watchdog, the cluster management
+ module of <productname>Pgpool-II</productname>, an attacker can
+ bypass authentication key checks and promote a watchdog node of
+ their choice to leader.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Bug fixes</title>
+ <itemizedlist>
+
+ <listitem>
+ <!--
+ 2026-09-18 [ec41e85d0]
+ 2026-09-19 [e65554941]
+ -->
+ <para>
+ Fix premature Sync during extended-query pipelines. (Taiki Koshino)
+ </para>
+ <para>
+ Prevent internal <literal>Sync</literal> messages from
+ prematurely committing an implicit transaction while an
+ extended-query pipeline is still in progress. Also coordinate
+ errors and transaction completion across backend nodes so that an
+ error later in a pipeline rolls back earlier changes.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [a177ff5eb]
+ -->
+ <para>
+ Fix a hang on deferred constraint errors in pipeline mode. (Taiki Koshino)
+ </para>
+ <para>
+ Keep the pending <literal>Sync</literal> message when a backend
+ returns an <literal>ErrorResponse</literal>, allowing processing
+ to continue through <literal>ReadyForQuery</literal>. Previously,
+ a deferred constraint violation at commit time could make
+ Pgpool-II wait indefinitely for a Sync that the frontend had
+ already sent.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [2d23e0432]
+ -->
+ <para>
+ Fix inconsistent internal transaction handling in Parse. (Taiki Koshino)
+ </para>
+ <para>
+ Restrict internal transaction creation in
+ <function>Parse()</function> to replication mode, matching
+ <function>Bind()</function>. Previously, an autocommitted
+ extended-protocol UPDATE in raw mode could leave the connection
+ in a transaction.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [9b916a79b]
+ -->
+ <para>
+ Fix response buffer pointer advancement in <function>do_error_execute_command()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Advance the saved-response buffer pointer by the actual response
+ body length rather than the size of the length field. This
+ prevents corruption of subsequent saved responses, including
+ after a zero-length response, in both protocol v2 and v3.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [7a4b71c86]
+ -->
+ <para>
+ Check that a parse tree exists in <function>handle_query_context()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check that a parse tree exists before accessing it in
+ <function>handle_query_context()</function>. This issue was
+ identified by Coverity.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [3347e0970]
+ -->
+ <para>
+ Make the PCP worker shutdown signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP worker shutdown processing out of the signal handler and
+ into the main loop. The handler now records the shutdown request
+ only, avoiding unsafe logging and cleanup while other operations
+ are in progress.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [911628dd3]
+ -->
+ <para>
+ Make PCP parent signal handlers only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP parent shutdown and wakeup processing into the main
+ loop. Signal handlers now set flags rather than traversing or
+ modifying the worker list, preventing races that could cause
+ crashes or signals to be sent to reused process IDs.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [0a80f5346]
+ -->
+ <para>
+ Move idle-connection cleanup from the signal handler to the main loop. (Taiki Koshino)
+ </para>
+ <para>
+ Make the child process SIGUSR1 handler record an idle-connection
+ cleanup request and perform the cleanup in the main loop. This
+ prevents connection and startup-packet memory from being freed
+ while the interrupted code is using it.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [59ff573eb]
+ -->
+ <para>
+ Make the lifecheck exit signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move watchdog lifecheck child termination, memory cleanup, and
+ process exit out of the signal handler. The handler now records
+ the signal and sets flags while preserving
+ <literal>errno</literal>, avoiding unsafe operations in signal
+ context.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [ce78e355f]
+ -->
+ <para>
+ Add separators to query-cache keys to prevent collisions. (Taiki Koshino)
+ </para>
+ <para>
+ Insert NUL separators between the user, query, and database
+ fields when constructing query-cache keys, and hash the complete
+ buffer. Previously, concatenating these fields without separators
+ could produce identical keys for different inputs and return
+ cached results across users or databases.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f0fcec001]
+ -->
+ <para>
+ Fix unsigned integer underflow in <function>inject_cached_message()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Validate cached message lengths before subtracting the header
+ size in <function>inject_cached_message()</function>. A length
+ smaller than the header could otherwise underflow to a large
+ unsigned value and terminate the session through a failed memory
+ allocation.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [b9a5a52b9]
+ -->
+ <para>
+ Fix an out-of-bounds buffer access in pgproto. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check the input buffer length before testing for a continuation
+ line in <literal>pgproto</literal>. This prevents an
+ out-of-bounds access detected by AddressSanitizer.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [a9d314c23]
+ -->
+ <para>
+ Reset removed configuration parameters to their defaults. (Taiki Koshino)
+ </para>
+ <para>
+ Reset reloadable parameters to their defaults when they are
+ removed or commented out in <filename>pgpool.conf</filename>.
+ Previously, configuration reload retained their old values.
+ Values not loaded from the configuration file are left unchanged.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [987d806e6]
+ -->
+ <para>
+ Revert "Fix do_query to send sync rather than flush." (Tatsuo Ishii)
+ </para>
+ <para>
+ Revert the change that made <function>do_query()</function> send
+ <literal>Sync</literal> instead of <literal>Flush</literal>. That
+ change could prematurely commit an implicit pipeline transaction,
+ leaving earlier changes committed even when a later statement
+ failed.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [a48a24ebf]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>get_health_check_stats()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>get_health_check_stats()</function> from LOG to DEBUG5.
+ </para>
+ <para>
+ Problem reported by seoktai-chun.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [19cb04072]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>pool_temp_tables_delete()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>pool_temp_tables_delete()</function> from LOG to
+ DEBUG5.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [b7f0da4e1]
+ -->
+ <para>
+ Fix notice forwarding during authentication. (Tatsuo Ishii)
+ </para>
+ <para>
+ Forward backend notices safely during authentication, before the
+ session context is established. This fixes a FATAL error
+ triggered by the MD5 authentication notice emitted by PostgreSQL
+ 19 and later.
+ </para>
+ <para>
+ Problem reported by harudini.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [a6ac3ea54]
+ -->
+ <para>
+ Reverted change: make do_query send Sync rather than Flush. (Tatsuo Ishii)
+ </para>
+ <para>
+ This change attempted to close implicit transactions created by
+ internal queries by sending <literal>Sync</literal> instead of
+ <literal>Flush</literal>. It was subsequently reverted by commit
+ <literal>987d806e6</literal> because it broke pipeline
+ transaction semantics; this behavior is not part of the final
+ release.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [e7079755a]
+ -->
+ <para>
+ Add missing volatile qualifiers. (Tatsuo Ishii)
+ </para>
+ <para>
+ Add the missing <literal>volatile</literal> qualifiers to shared
+ backend-status accesses through
+ <varname>my_backend_status</varname>. This prevents compiler
+ optimizations from causing stale status values to be used.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [9e84817fb]
+ -->
+ <para>
+ Reject invalid ErrorResponse lengths in <function>read_kind_from_backend()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Reject backend <literal>ErrorResponse</literal> lengths smaller
+ than the length field in
+ <function>read_kind_from_backend()</function>. This prevents a
+ heap buffer overwrite and unsigned underflow when handling
+ malformed responses.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [c0c3c0963]
+ -->
+ <para>
+ Fix a segmentation fault in <function>pool_do_auth()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Derive the local main node ID from the copied backend statuses
+ rather than independently copying the shared main node ID. This
+ prevents inconsistent state during failover from causing a NULL
+ connection dereference in <function>pool_do_auth()</function>.
+ Also add volatile qualifiers for shared-memory reads.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [8e0a9b9a4]
+ -->
+ <para>
+ Avoid unsafe operations in the Pgpool-II main process signal
+ handler. (Tatsuo Ishii)
+ </para>
+ <para>
+ Move main-process shutdown work out of the SIGTERM, SIGINT, and
+ SIGQUIT handler. The handler now records the request and wakes
+ the main loop, which performs shutdown in normal process context.
+ This avoids crashes, hangs, or memory corruption caused by unsafe
+ operations in the signal handler.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [006f7c826]
+ -->
+ <para>
+ Fix a query context use-after-free after a backend node shutdown. (Tatsuo Ishii)
+ </para>
+ <para>
+ Allocate query contexts in the session memory context so they
+ remain valid for the session-scoped sent and pending message
+ lists. Previously, a backend shutdown could cause the
+ query-processing loop to free contexts still referenced by these
+ lists, leading to a use-after-free and crash.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [660948ad1]
+ -->
+ <para>
+ Fix a COPY IN hang in extended query mode. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait for the backend CopyInResponse before forwarding COPY data,
+ and allow the frontend Sync to be processed after CopyDone. This
+ fixes a hang when <command>COPY FROM STDIN</command> is executed
+ using the extended query protocol in streaming replication mode.
+ </para>
+ <para>
+ Problem reported by liujinyang-highgo.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [aa8be8067]
+ -->
+ <para>
+ Prevent pcp_node_info from hanging. (Tatsuo Ishii)
+ </para>
+ <para>
+ Copy the shared replication-state strings into local buffers
+ before calculating and sending a PCP node-info response.
+ Concurrent updates could otherwise make the declared packet
+ length differ from its payload and cause
+ <command>pcp_node_info</command> to hang.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [d847d7362]
+ -->
+ <para>
+ Fix a typo in a <function>read_kind_from_backend()</function> comment. (Tatsuo Ishii)
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [eb57546bd]
+ -->
+ <para>
+ Fix query-cache handling with disable_load_balance_on_write.
+ (Tatsuo Ishii)
+ </para>
+ <para>
+ Track actual writes separately from the state used by
+ <varname>disable_load_balance_on_write</varname>. This fixes
+ incorrect query-cache use when the parameter is set to
+ <literal>trans_transaction</literal>,
+ <literal>dml_adaptive</literal>, or <literal>always</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Documents</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [396ce23bc]
+ -->
+ <para>
+ Doc: Fix incorrect links. (Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Regression Tests</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [4ddc345d3]
+ -->
+ <para>
+ Test: enhance the 018.detach_primary regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait explicitly for watchdog quorum in
+ <literal>018.detach_primary</literal> before testing the
+ detachment of an invalid streaming replication primary node.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [abfd530f3]
+ -->
+ <para>
+ Test: stabilize the 006.memqcache regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use synchronous replication in the streaming replication tests in
+ <literal>006.memqcache</literal>. This avoids intermittent
+ failures caused by replication delay, such as a newly created
+ role not yet being available on a standby.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [7bc77e61a]
+ -->
+ <para>
+ Test: fix regress.sh to use a numeric PostgreSQL version number. (Tatsuo Ishii)
+ </para>
+ <para>
+ Remove nonnumeric suffixes from the PostgreSQL version used by
+ regression scripts, so development version strings such as
+ <literal>20devel</literal> can be used in numeric comparisons.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [0f21d5a70]
+ -->
+ <para>
+ Test: increase the test timeout from 300 to 360 seconds. (Tatsuo Ishii)
+ </para>
+ <para>
+ Increase the regression test timeout from 300 to 360 seconds to
+ accommodate longer runs of <literal>006.memqcache</literal>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [d7dcce267]
+ -->
+ <para>
+ Test: use wait_for_pgpool_startup instead of sleep. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use <function>wait_for_pgpool_startup()</function> instead of a
+ fixed one-second sleep in <literal>110.memory_leak</literal> and
+ <literal>111.cancel_query</literal>, avoiding intermittent
+ startup-related test failures.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-5-12">
<title>Release 4.5.12</title>
<note>
diff --git a/doc/src/sgml/release-4.6.sgml b/doc/src/sgml/release-4.6.sgml
index dd2e7fb43..ae91fe87e 100644
--- a/doc/src/sgml/release-4.6.sgml
+++ b/doc/src/sgml/release-4.6.sgml
@@ -1,3 +1,921 @@
+<sect1 id="release-4-6-8">
+ <title>Release 4.6.8</title>
+ <note>
+ <title>Release Date</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>Overview</title>
+ <para>
+ This release contains security fixes for the following
+ vulnerabilities.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [59a113963]
+ -->
+ <para>
+ A vulnerability in watchdog message processing during failover
+ in <productname>Pgpool-II</productname> allows an attacker to
+ write an arbitrary 32-bit value to an arbitrary memory address
+ by sending a malformed message. (CVE-2026-92867)
+ </para>
+ <para>
+ An attacker can send a malformed failover request message to
+ watchdog in <productname>Pgpool-II</productname>, causing a value
+ to be written to an unintended memory address and resulting in
+ memory corruption.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>)
+ or restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [622e65b82]
+ -->
+ <para>
+ When a client connects to <productname>Pgpool-II</productname>
+ using certificate authentication,
+ <productname>Pgpool-II</productname> does not properly handle
+ NUL bytes (\0) in the domain name in the Common Name (CN) field
+ of the client's X.509 certificate. This vulnerability allows a
+ malicious client to connect to the
+ <productname>Pgpool-II</productname> server as another user
+ without a password. (CVE-2026-92868)
+ </para>
+ <para>
+ Client certificate authentication compares the Common Name (CN)
+ extracted from the client certificate with the connection
+ username. However, crafted certificates containing an embedded
+ NUL byte (\0) in the CN were not properly validated, allowing a
+ CN that does not actually match the username to be treated as a
+ valid match. By presenting such a certificate, an attacker may
+ be authenticated as a legitimate user when authentication
+ should have been rejected.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 4.0
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 4.0 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, use an authentication
+ method other than client certificate authentication.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [05d9128bf]
+ 2026-09-20 [3b69d04ba]
+ -->
+ <para>
+ A vulnerability in watchdog message processing in
+ <productname>Pgpool-II</productname> allows an attacker to
+ overwrite memory beyond the boundaries of fixed-size arrays
+ by sending a malformed message. (CVE-2026-92869)
+ </para>
+ <para>
+ An out-of-bounds write vulnerability exists in the watchdog
+ message parsing code that processes configuration information
+ received from watchdog peers in
+ <productname>Pgpool-II</productname>. Upper-bound checks on the
+ lengths of the backend_desc and wd_nodes JSON arrays received
+ from watchdog peers are insufficient. Processing a crafted
+ message may therefore cause writes beyond fixed-size arrays.
+ Exploiting this vulnerability may cause a
+ <productname>Pgpool-II</productname> process to crash or corrupt
+ its memory.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog
+ (<literal>use_watchdog = off</literal>) or restrict access to
+ watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ A vulnerability in the handling of failover messages by watchdog
+ in <productname>Pgpool-II</productname> allows writes of
+ arbitrary-length data to corrupt the stack and crash a
+ <productname>Pgpool-II</productname> process. (CVE-2026-92870)
+ </para>
+ <para>
+ When wd_authkey is not configured, an attacker can send a
+ malformed failover message to watchdog in
+ <productname>Pgpool-II</productname> and write arbitrary-length
+ data to the stack of the <productname>Pgpool-II</productname>
+ main process, causing the <productname>Pgpool-II</productname>
+ process to crash.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [a10e19df1]
+ -->
+ <para>
+ A NULL pointer dereference vulnerability exists in watchdog
+ inter-node authentication in
+ <productname>Pgpool-II</productname>. When an authentication key
+ is configured, crafted watchdog messages that omit
+ authentication information are not handled correctly. (CVE-2026-92871)
+ </para>
+ <para>
+ An attacker who can connect to the watchdog port may cause the
+ watchdog process on the target node to crash by sending a
+ crafted watchdog message that omits authentication information.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [7fb01f972]
+ -->
+ <para>
+ An information disclosure vulnerability exists in the heartbeat
+ receiver process of <productname>Pgpool-II</productname>.
+ (CVE-2026-92872)
+ </para>
+ <para>
+ When the heartbeat receiver process of
+ <productname>Pgpool-II</productname> receives a malformed
+ message, it may disclose information from stack memory through
+ log files.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ use query-based life checking (<literal>wd_lifecheck_method = 'query'</literal>)
+ instead of heartbeat.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [dc9c516f5]
+ -->
+ <para>
+ A vulnerability in watchdog promotion processing in
+ <productname>Pgpool-II</productname> allows an attacker to bypass
+ authentication key checks and promote a watchdog node of their
+ choice to leader. (CVE-2026-92873)
+ </para>
+ <para>
+ In the promotion processing of watchdog, the cluster management
+ module of <productname>Pgpool-II</productname>, an attacker can
+ bypass authentication key checks and promote a watchdog node of
+ their choice to leader.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Bug fixes</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-19 [9f8fd38ad]
+ -->
+ <para>
+ Fix a compilation error. (Tatsuo Ishii)
+ </para>
+ <para>
+ Fix a compilation error on Rocky Linux 8 introduced by the
+ extended-query pipeline fix, where a declaration immediately
+ followed a label.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [a3426eb28]
+ -->
+ <para>
+ Fix premature Sync during extended-query pipelines. (Taiki Koshino)
+ </para>
+ <para>
+ Prevent internal <literal>Sync</literal> messages from
+ prematurely committing an implicit transaction while an
+ extended-query pipeline is still in progress. Also coordinate
+ errors and transaction completion across backend nodes so that an
+ error later in a pipeline rolls back earlier changes.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [cf1f8e9ba]
+ -->
+ <para>
+ Fix a hang on deferred constraint errors in pipeline mode. (Taiki Koshino)
+ </para>
+ <para>
+ Keep the pending <literal>Sync</literal> message when a backend
+ returns an <literal>ErrorResponse</literal>, allowing processing
+ to continue through <literal>ReadyForQuery</literal>. Previously,
+ a deferred constraint violation at commit time could make
+ Pgpool-II wait indefinitely for a Sync that the frontend had
+ already sent.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [c1149bb86]
+ -->
+ <para>
+ Fix inconsistent internal transaction handling in Parse. (Taiki Koshino)
+ </para>
+ <para>
+ Restrict internal transaction creation in
+ <function>Parse()</function> to replication mode, matching
+ <function>Bind()</function>. Previously, an autocommitted
+ extended-protocol UPDATE in raw mode could leave the connection
+ in a transaction.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [2da451f98]
+ -->
+ <para>
+ Fix response buffer pointer advancement in <function>do_error_execute_command()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Advance the saved-response buffer pointer by the actual response
+ body length rather than the size of the length field. This
+ prevents corruption of subsequent saved responses, including
+ after a zero-length response, in both protocol v2 and v3.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [890609cda]
+ -->
+ <para>
+ Check that a parse tree exists in <function>handle_query_context()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check that a parse tree exists before accessing it in
+ <function>handle_query_context()</function>. This issue was
+ identified by Coverity.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [102c68292]
+ -->
+ <para>
+ Make the PCP worker shutdown signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP worker shutdown processing out of the signal handler and
+ into the main loop. The handler now records the shutdown request
+ only, avoiding unsafe logging and cleanup while other operations
+ are in progress.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [6d7cd4447]
+ -->
+ <para>
+ Make PCP parent signal handlers only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP parent shutdown and wakeup processing into the main
+ loop. Signal handlers now set flags rather than traversing or
+ modifying the worker list, preventing races that could cause
+ crashes or signals to be sent to reused process IDs.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [1e6eedf2e]
+ -->
+ <para>
+ Move idle-connection cleanup from the signal handler to the main loop. (Taiki Koshino)
+ </para>
+ <para>
+ Make the child process SIGUSR1 handler record an idle-connection
+ cleanup request and perform the cleanup in the main loop. This
+ prevents connection and startup-packet memory from being freed
+ while the interrupted code is using it.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [58d6e9f13]
+ -->
+ <para>
+ Make the lifecheck exit signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move watchdog lifecheck child termination, memory cleanup, and
+ process exit out of the signal handler. The handler now records
+ the signal and sets flags while preserving
+ <literal>errno</literal>, avoiding unsafe operations in signal
+ context.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [96a891f08]
+ -->
+ <para>
+ Add separators to query-cache keys to prevent collisions. (Taiki Koshino)
+ </para>
+ <para>
+ Insert NUL separators between the user, query, and database
+ fields when constructing query-cache keys, and hash the complete
+ buffer. Previously, concatenating these fields without separators
+ could produce identical keys for different inputs and return
+ cached results across users or databases.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [464784ac2]
+ -->
+ <para>
+ Fix unsigned integer underflow in <function>inject_cached_message()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Validate cached message lengths before subtracting the header
+ size in <function>inject_cached_message()</function>. A length
+ smaller than the header could otherwise underflow to a large
+ unsigned value and terminate the session through a failed memory
+ allocation.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [cdec3ea94]
+ -->
+ <para>
+ Fix an out-of-bounds buffer access in pgproto. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check the input buffer length before testing for a continuation
+ line in <literal>pgproto</literal>. This prevents an
+ out-of-bounds access detected by AddressSanitizer.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [221b504f4]
+ -->
+ <para>
+ Reset removed configuration parameters to their defaults. (Taiki Koshino)
+ </para>
+ <para>
+ Reset reloadable parameters to their defaults when they are
+ removed or commented out in <filename>pgpool.conf</filename>.
+ Previously, configuration reload retained their old values.
+ Values not loaded from the configuration file are left unchanged.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [961ce127f]
+ -->
+ <para>
+ Revert "Fix do_query to send sync rather than flush." (Tatsuo Ishii)
+ </para>
+ <para>
+ Revert the change that made <function>do_query()</function> send
+ <literal>Sync</literal> instead of <literal>Flush</literal>. That
+ change could prematurely commit an implicit pipeline transaction,
+ leaving earlier changes committed even when a later statement
+ failed.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [bb7d8f56a]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>get_health_check_stats()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>get_health_check_stats()</function> from LOG to DEBUG5.
+ </para>
+ <para>
+ Problem reported by seoktai-chun.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [e04ff84c2]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>pool_temp_tables_delete()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>pool_temp_tables_delete()</function> from LOG to
+ DEBUG5.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [9f99289bd]
+ -->
+ <para>
+ Fix notice forwarding during authentication. (Tatsuo Ishii)
+ </para>
+ <para>
+ Forward backend notices safely during authentication, before the
+ session context is established. This fixes a FATAL error
+ triggered by the MD5 authentication notice emitted by PostgreSQL
+ 19 and later.
+ </para>
+ <para>
+ Problem reported by harudini.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [22965306d]
+ -->
+ <para>
+ Reverted change: make do_query send Sync rather than Flush. (Tatsuo Ishii)
+ </para>
+ <para>
+ This change attempted to close implicit transactions created by
+ internal queries by sending <literal>Sync</literal> instead of
+ <literal>Flush</literal>. It was subsequently reverted by commit
+ <literal>961ce127f</literal> because it broke pipeline
+ transaction semantics; this behavior is not part of the final
+ release.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [f3250e05a]
+ -->
+ <para>
+ Add missing volatile qualifiers. (Tatsuo Ishii)
+ </para>
+ <para>
+ Add the missing <literal>volatile</literal> qualifiers to shared
+ backend-status accesses through
+ <varname>my_backend_status</varname>. This prevents compiler
+ optimizations from causing stale status values to be used.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [244b55188]
+ -->
+ <para>
+ Reject invalid ErrorResponse lengths in <function>read_kind_from_backend()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Reject backend <literal>ErrorResponse</literal> lengths smaller
+ than the length field in
+ <function>read_kind_from_backend()</function>. This prevents a
+ heap buffer overwrite and unsigned underflow when handling
+ malformed responses.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [8b97ee77e]
+ -->
+ <para>
+ Fix a segmentation fault in <function>pool_do_auth()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Derive the local main node ID from the copied backend statuses
+ rather than independently copying the shared main node ID. This
+ prevents inconsistent state during failover from causing a NULL
+ connection dereference in <function>pool_do_auth()</function>.
+ Also add volatile qualifiers for shared-memory reads.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [103a8af71]
+ -->
+ <para>
+ Avoid unsafe operations in the Pgpool-II main process signal
+ handler. (Tatsuo Ishii)
+ </para>
+ <para>
+ Move main-process shutdown work out of the SIGTERM, SIGINT, and
+ SIGQUIT handler. The handler now records the request and wakes
+ the main loop, which performs shutdown in normal process context.
+ This avoids crashes, hangs, or memory corruption caused by unsafe
+ operations in the signal handler.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [760a166d0]
+ -->
+ <para>
+ Fix a query context use-after-free after a backend node shutdown. (Tatsuo Ishii)
+ </para>
+ <para>
+ Allocate query contexts in the session memory context so they
+ remain valid for the session-scoped sent and pending message
+ lists. Previously, a backend shutdown could cause the
+ query-processing loop to free contexts still referenced by these
+ lists, leading to a use-after-free and crash.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [6bd29493d]
+ -->
+ <para>
+ Fix a COPY IN hang in extended query mode. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait for the backend CopyInResponse before forwarding COPY data,
+ and allow the frontend Sync to be processed after CopyDone. This
+ fixes a hang when <command>COPY FROM STDIN</command> is executed
+ using the extended query protocol in streaming replication mode.
+ </para>
+ <para>
+ Problem reported by liujinyang-highgo.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [2c63ab1d6]
+ -->
+ <para>
+ Prevent pcp_node_info from hanging. (Tatsuo Ishii)
+ </para>
+ <para>
+ Copy the shared replication-state strings into local buffers
+ before calculating and sending a PCP node-info response.
+ Concurrent updates could otherwise make the declared packet
+ length differ from its payload and cause
+ <command>pcp_node_info</command> to hang.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [fd6a626c4]
+ -->
+ <para>
+ Fix a typo in a <function>read_kind_from_backend()</function> comment. (Tatsuo Ishii)
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [af256cadb]
+ -->
+ <para>
+ Fix query-cache handling with disable_load_balance_on_write.
+ (Tatsuo Ishii)
+ </para>
+ <para>
+ Track actual writes separately from the state used by
+ <varname>disable_load_balance_on_write</varname>. This fixes
+ incorrect query-cache use when the parameter is set to
+ <literal>trans_transaction</literal>,
+ <literal>dml_adaptive</literal>, or <literal>always</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Documents</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [6c39ab910]
+ -->
+ <para>
+ Doc: Fix incorrect links. (Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Regression Tests</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [767485723]
+ -->
+ <para>
+ Test: enhance the 018.detach_primary regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait explicitly for watchdog quorum in
+ <literal>018.detach_primary</literal> before testing the
+ detachment of an invalid streaming replication primary node.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [24d17f9de]
+ -->
+ <para>
+ Test: stabilize the 006.memqcache regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use synchronous replication in the streaming replication tests in
+ <literal>006.memqcache</literal>. This avoids intermittent
+ failures caused by replication delay, such as a newly created
+ role not yet being available on a standby.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [a6d9b9eb1]
+ -->
+ <para>
+ Test: fix regress.sh to use a numeric PostgreSQL version number. (Tatsuo Ishii)
+ </para>
+ <para>
+ Remove nonnumeric suffixes from the PostgreSQL version used by
+ regression scripts, so development version strings such as
+ <literal>20devel</literal> can be used in numeric comparisons.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [4a3908a50]
+ -->
+ <para>
+ Test: increase the test timeout from 300 to 360 seconds. (Tatsuo Ishii)
+ </para>
+ <para>
+ Increase the regression test timeout from 300 to 360 seconds to
+ accommodate longer runs of <literal>006.memqcache</literal>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [a341f49df]
+ -->
+ <para>
+ Test: use wait_for_pgpool_startup instead of sleep. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use <function>wait_for_pgpool_startup()</function> instead of a
+ fixed one-second sleep in <literal>110.memory_leak</literal> and
+ <literal>111.cancel_query</literal>, avoiding intermittent
+ startup-related test failures.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
+
<sect1 id="release-4-6-7">
<title>Release 4.6.7</title>
<note>
diff --git a/doc/src/sgml/release-4.7.sgml b/doc/src/sgml/release-4.7.sgml
index 16037c47d..ee57f0225 100644
--- a/doc/src/sgml/release-4.7.sgml
+++ b/doc/src/sgml/release-4.7.sgml
@@ -1,3 +1,925 @@
+<sect1 id="release-4-7-3">
+ <title>Release 4.7.3</title>
+ <note>
+ <title>Release Date</title>
+ <simpara>2026-09-29</simpara>
+ </note>
+
+ <sect2>
+ <title>Overview</title>
+ <para>
+ This release contains security fixes for the following
+ vulnerabilities.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [38492eba8]
+ -->
+ <para>
+ A vulnerability in watchdog message processing during failover
+ in <productname>Pgpool-II</productname> allows an attacker to
+ write an arbitrary 32-bit value to an arbitrary memory address
+ by sending a malformed message. (CVE-2026-92867)
+ </para>
+ <para>
+ An attacker can send a malformed failover request message to
+ watchdog in <productname>Pgpool-II</productname>, causing a value
+ to be written to an unintended memory address and resulting in
+ memory corruption.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>)
+ or restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [754ed0968]
+ -->
+ <para>
+ When a client connects to <productname>Pgpool-II</productname>
+ using certificate authentication,
+ <productname>Pgpool-II</productname> does not properly handle
+ NUL bytes (\0) in the domain name in the Common Name (CN) field
+ of the client's X.509 certificate. This vulnerability allows a
+ malicious client to connect to the
+ <productname>Pgpool-II</productname> server as another user
+ without a password. (CVE-2026-92868)
+ </para>
+ <para>
+ Client certificate authentication compares the Common Name (CN)
+ extracted from the client certificate with the connection
+ username. However, crafted certificates containing an embedded
+ NUL byte (\0) in the CN were not properly validated, allowing a
+ CN that does not actually match the username to be treated as a
+ valid match. By presenting such a certificate, an attacker may
+ be authenticated as a legitimate user when authentication
+ should have been rejected.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 4.0
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 4.0 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, use an authentication
+ method other than client certificate authentication.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [67b2f3c8c]
+ 2026-09-20 [845ebb139]
+ -->
+ <para>
+ A vulnerability in watchdog message processing in
+ <productname>Pgpool-II</productname> allows an attacker to
+ overwrite memory beyond the boundaries of fixed-size arrays
+ by sending a malformed message. (CVE-2026-92869)
+ </para>
+ <para>
+ An out-of-bounds write vulnerability exists in the watchdog
+ message parsing code that processes configuration information
+ received from watchdog peers in
+ <productname>Pgpool-II</productname>. Upper-bound checks on the
+ lengths of the backend_desc and wd_nodes JSON arrays received
+ from watchdog peers are insufficient. Processing a crafted
+ message may therefore cause writes beyond fixed-size arrays.
+ Exploiting this vulnerability may cause a
+ <productname>Pgpool-II</productname> process to crash or corrupt
+ its memory.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog
+ (<literal>use_watchdog = off</literal>) or restrict access to
+ watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [94b8ebedf]
+ -->
+ <para>
+ A vulnerability in the handling of failover messages by watchdog
+ in <productname>Pgpool-II</productname> allows writes of
+ arbitrary-length data to corrupt the stack and crash a
+ <productname>Pgpool-II</productname> process. (CVE-2026-92870)
+ </para>
+ <para>
+ When wd_authkey is not configured, an attacker can send a
+ malformed failover message to watchdog in
+ <productname>Pgpool-II</productname> and write arbitrary-length
+ data to the stack of the <productname>Pgpool-II</productname>
+ main process, causing the <productname>Pgpool-II</productname>
+ process to crash.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [707fcb649]
+ -->
+ <para>
+ A NULL pointer dereference vulnerability exists in watchdog
+ inter-node authentication in
+ <productname>Pgpool-II</productname>. When an authentication key
+ is configured, crafted watchdog messages that omit
+ authentication information are not handled correctly. (CVE-2026-92871)
+ </para>
+ <para>
+ An attacker who can connect to the watchdog port may cause the
+ watchdog process on the target node to crash by sending a
+ crafted watchdog message that omits authentication information.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [8f5d179f2]
+ -->
+ <para>
+ An information disclosure vulnerability exists in the heartbeat
+ receiver process of <productname>Pgpool-II</productname>.
+ (CVE-2026-92872)
+ </para>
+ <para>
+ When the heartbeat receiver process of
+ <productname>Pgpool-II</productname> receives a malformed
+ message, it may disclose information from stack memory through
+ log files.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ use query-based life checking (<literal>wd_lifecheck_method = 'query'</literal>)
+ instead of heartbeat.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-20 [6c8e17f99]
+ -->
+ <para>
+ A vulnerability in watchdog promotion processing in
+ <productname>Pgpool-II</productname> allows an attacker to bypass
+ authentication key checks and promote a watchdog node of their
+ choice to leader. (CVE-2026-92873)
+ </para>
+ <para>
+ In the promotion processing of watchdog, the cluster management
+ module of <productname>Pgpool-II</productname>, an attacker can
+ bypass authentication key checks and promote a watchdog node of
+ their choice to leader.
+ </para>
+ <para>
+ All versions of <productname>Pgpool-II</productname> in the 3.5
+ through 4.2 series, 4.3.0 to 4.3.20, 4.4.0 to 4.4.17,
+ 4.5.0 to 4.5.12, 4.6.0 to 4.6.7, and 4.7.0 to 4.7.2 are
+ affected. We strongly recommend upgrading to
+ <productname>Pgpool-II</productname> 4.7.3, 4.6.8, 4.5.13,
+ 4.4.18, or 4.3.21, or a later release in the corresponding
+ series. The unsupported 3.5 through 4.2 series will not receive
+ fixes. Users of these versions should upgrade to a supported
+ version containing the fix.
+ </para>
+ <para>
+ Alternatively, disable watchdog (<literal>use_watchdog = off</literal>) or
+ restrict access to watchdog to trusted networks only.
+ </para>
+ <para>
+ The <productname>Pgpool-II</productname> project thanks Emond
+ Papegaaij for reporting this problem.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Bug fixes</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-19 [a3170f3c7]
+ 2026-09-18 [9ffb84bf5]
+ -->
+ <para>
+ Fix premature Sync during extended-query pipelines. (Taiki Koshino)
+ </para>
+ <para>
+ Prevent internal <literal>Sync</literal> messages from
+ prematurely committing an implicit transaction while an
+ extended-query pipeline is still in progress. Also coordinate
+ errors and transaction completion across backend nodes so that an
+ error later in a pipeline rolls back earlier changes.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/174">Pgpool injects Sync before a pipelined Parse and drops temporary tables #174</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [ec2e6f115]
+ -->
+ <para>
+ Fix a hang on deferred constraint errors in pipeline mode. (Taiki Koshino)
+ </para>
+ <para>
+ Keep the pending <literal>Sync</literal> message when a backend
+ returns an <literal>ErrorResponse</literal>, allowing processing
+ to continue through <literal>ReadyForQuery</literal>. Previously,
+ a deferred constraint violation at commit time could make
+ Pgpool-II wait indefinitely for a Sync that the frontend had
+ already sent.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486B54CF8A848176B90539C94A42%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">[PATCH v1] Fix hang on deferred constraint errors in pipeline mode</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [630e7da95]
+ -->
+ <para>
+ Fix inconsistent internal transaction handling in Parse. (Taiki Koshino)
+ </para>
+ <para>
+ Restrict internal transaction creation in
+ <function>Parse()</function> to replication mode, matching
+ <function>Bind()</function>. Previously, an autocommitted
+ extended-protocol UPDATE in raw mode could leave the connection
+ in a transaction.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/172">Pgpool leaves an internal transaction open after autocommitted extended-protocol DML #172</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-18 [c56701d05]
+ -->
+ <para>
+ Fix response buffer pointer advancement in <function>do_error_execute_command()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Advance the saved-response buffer pointer by the actual response
+ body length rather than the size of the length field. This
+ prevents corruption of subsequent saved responses, including
+ after a zero-length response, in both protocol v2 and v3.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Fix response buffer pointer advancement in do_error_execute_command</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [044e261d7]
+ -->
+ <para>
+ Check that a parse tree exists in <function>handle_query_context()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check that a parse tree exists before accessing it in
+ <function>handle_query_context()</function>. This issue was
+ identified by Coverity.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f4b9595ad]
+ -->
+ <para>
+ Make the PCP worker shutdown signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP worker shutdown processing out of the signal handler and
+ into the main loop. The handler now records the shutdown request
+ only, avoiding unsafe logging and cleanup while other operations
+ are in progress.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486805F1222F8F50767639094AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_worker die handler to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [92003564b]
+ -->
+ <para>
+ Make PCP parent signal handlers only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move PCP parent shutdown and wakeup processing into the main
+ loop. Signal handlers now set flags rather than traversing or
+ modifying the worker list, preventing races that could cause
+ crashes or signals to be sent to reused process IDs.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [47c4735e8]
+ -->
+ <para>
+ Move idle-connection cleanup from the signal handler to the main loop. (Taiki Koshino)
+ </para>
+ <para>
+ Make the child process SIGUSR1 handler record an idle-connection
+ cleanup request and perform the cleanup in the main loop. This
+ prevents connection and startup-packet memory from being freed
+ while the interrupted code is using it.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB1737480CA247F6CCBD87C958694C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Convert close_idle_connection (SIGUSR1) to flag-only handler with main-loop processing.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f7373655c]
+ -->
+ <para>
+ Make the lifecheck exit signal handler only set flags. (Taiki Koshino)
+ </para>
+ <para>
+ Move watchdog lifecheck child termination, memory cleanup, and
+ process exit out of the signal handler. The handler now records
+ the signal and sets flags while preserving
+ <literal>errno</literal>, avoiding unsafe operations in signal
+ context.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/OS9P286MB6486FF7EC3D412F5D9B2E45F94AE2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM">Convert pcp_exit_handler and wakeup_handler_parent to flag-only.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [f070a1181]
+ -->
+ <para>
+ Add separators to query-cache keys to prevent collisions. (Taiki Koshino)
+ </para>
+ <para>
+ Insert NUL separators between the user, query, and database
+ fields when constructing query-cache keys, and hash the complete
+ buffer. Previously, concatenating these fields without separators
+ could produce identical keys for different inputs and return
+ cached results across users or databases.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374DD1C2B89248B8714F84394C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Delimit query-cache key to prevent collisions</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-16 [a1a45ec3f]
+ -->
+ <para>
+ Fix unsigned integer underflow in <function>inject_cached_message()</function>. (Taiki Koshino)
+ </para>
+ <para>
+ Validate cached message lengths before subtracting the header
+ size in <function>inject_cached_message()</function>. A length
+ smaller than the header could otherwise underflow to a large
+ unsigned value and terminate the session through a failed memory
+ allocation.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/TY4PR01MB17374089B6E89C4B9F44817B094C22%40TY4PR01MB17374.jpnprd01.prod.outlook.com">Fix unsigned underflow in inject_cached_message</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-15 [e16ea53f5]
+ -->
+ <para>
+ Fix an out-of-bounds buffer access in pgproto. (Tatsuo Ishii)
+ </para>
+ <para>
+ Check the input buffer length before testing for a continuation
+ line in <literal>pgproto</literal>. This prevents an
+ out-of-bounds access detected by AddressSanitizer.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-08 [6b1e286bf]
+ -->
+ <para>
+ Reset removed configuration parameters to their defaults. (Taiki Koshino)
+ </para>
+ <para>
+ Reset reloadable parameters to their defaults when they are
+ removed or commented out in <filename>pgpool.conf</filename>.
+ Previously, configuration reload retained their old values.
+ Values not loaded from the configuration file are left unchanged.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/164">reload config issue #164</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-07 [9bf2066fd]
+ -->
+ <para>
+ Revert "Fix do_query to send sync rather than flush." (Tatsuo Ishii)
+ </para>
+ <para>
+ Revert the change that made <function>do_query()</function> send
+ <literal>Sync</literal> instead of <literal>Flush</literal>. That
+ change could prematurely commit an implicit pipeline transaction,
+ leaving earlier changes committed even when a later statement
+ failed.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260907.062521.1780975513572548706.ishii@postgresql.org">Re: low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-31 [848517b30]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>get_health_check_stats()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>get_health_check_stats()</function> from LOG to DEBUG5.
+ </para>
+ <para>
+ Problem reported by seoktai-chun.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/171">Leftover debug log "status_changed_time" floods the log in pool_process_reporting.c #171</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-29 [f9634a7fb]
+ -->
+ <para>
+ Lower the debug message level to DEBUG5 in <function>pool_temp_tables_delete()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Change an accidentally retained debug message in
+ <function>pool_temp_tables_delete()</function> from LOG to
+ DEBUG5.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [08fbe906d]
+ -->
+ <para>
+ Fix notice forwarding during authentication. (Tatsuo Ishii)
+ </para>
+ <para>
+ Forward backend notices safely during authentication, before the
+ session context is established. This fixes a FATAL error
+ triggered by the MD5 authentication notice emitted by PostgreSQL
+ 19 and later.
+ </para>
+ <para>
+ Problem reported by harudini.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/168">Regression test failures against PostgreSQL 19 beta #168</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [57fc62eea]
+ -->
+ <para>
+ Fix a crash in <function>pgpool_adm pcp_proc_info()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Finalize and bless the tuple descriptor in the
+ <literal>pgpool_adm</literal> implementation of
+ <function>pcp_proc_info()</function>. This fixes a crash with
+ PostgreSQL 19.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-02 [bc3689a2d]
+ -->
+ <para>
+ Reverted change: make do_query send Sync rather than Flush. (Tatsuo Ishii)
+ </para>
+ <para>
+ This change attempted to close implicit transactions created by
+ internal queries by sending <literal>Sync</literal> instead of
+ <literal>Flush</literal>. It was subsequently reverted by commit
+ <literal>9bf2066fd</literal> because it broke pipeline
+ transaction semantics; this behavior is not part of the final
+ release.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/25939319-d77c-4df9-9e65-dfb1637ccd33%40cloud.gatewaynet.com">low level protocol, implicit transactions , "idle in transaction" issue</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-21 [84a079e63]
+ -->
+ <para>
+ Add missing volatile qualifiers. (Tatsuo Ishii)
+ </para>
+ <para>
+ Add the missing <literal>volatile</literal> qualifiers to shared
+ backend-status accesses through
+ <varname>my_backend_status</varname>. This prevents compiler
+ optimizations from causing stale status values to be used.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260701.101148.451717746326656928.ishii%40postgresql.org">Adding volatile qualifier</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-26 [f847e8430]
+ -->
+ <para>
+ Reject invalid ErrorResponse lengths in <function>read_kind_from_backend()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Reject backend <literal>ErrorResponse</literal> lengths smaller
+ than the length field in
+ <function>read_kind_from_backend()</function>. This prevents a
+ heap buffer overwrite and unsigned underflow when handling
+ malformed responses.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260626.153227.1428186004607098961.ishii%40postgresql.org">Reject sub-minimum ErrorResponse length in read_kind_from_backend.</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-03 [1f02bd312]
+ -->
+ <para>
+ Fix a segmentation fault in <function>pool_do_auth()</function>. (Tatsuo Ishii)
+ </para>
+ <para>
+ Derive the local main node ID from the copied backend statuses
+ rather than independently copying the shared main node ID. This
+ prevents inconsistent state during failover from causing a NULL
+ connection dereference in <function>pool_do_auth()</function>.
+ Also add volatile qualifiers for shared-memory reads.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BY7OKp93zSqt1WUCh7ABC7kyZqrxJPFA8AC1woB30S8EQ%40mail.gmail.com">[PATCH] Segfault in pool_do_auth() when failover races with a new connection</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-08 [3ff98c1e4]
+ -->
+ <para>
+ Avoid unsafe operations in the Pgpool-II main process signal
+ handler. (Tatsuo Ishii)
+ </para>
+ <para>
+ Move main-process shutdown work out of the SIGTERM, SIGINT, and
+ SIGQUIT handler. The handler now records the request and wakes
+ the main loop, which performs shutdown in normal process context.
+ This avoids crashes, hangs, or memory corruption caused by unsafe
+ operations in the signal handler.
+ </para>
+ <para>
+ Problem reported by Emond Papegaaij.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260608.103312.126925225500634683.ishii%40postgresql.org">Fix signal handler in pgpool main</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-18 [346e54778]
+ -->
+ <para>
+ Fix a query context use-after-free after a backend node shutdown. (Tatsuo Ishii)
+ </para>
+ <para>
+ Allocate query contexts in the session memory context so they
+ remain valid for the session-scoped sent and pending message
+ lists. Previously, a backend shutdown could cause the
+ query-processing loop to free contexts still referenced by these
+ lists, leading to a use-after-free and crash.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BaFfv2_PUrEdCt8TousYP9dPmty3i%2B0mkJpWwVg%3DfVN%2BQ%40mail.gmail.com">Use-after-free crash</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [7a47706a2]
+ -->
+ <para>
+ Fix a COPY IN hang in extended query mode. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait for the backend CopyInResponse before forwarding COPY data,
+ and allow the frontend Sync to be processed after CopyDone. This
+ fixes a hang when <command>COPY FROM STDIN</command> is executed
+ using the extended query protocol in streaming replication mode.
+ </para>
+ <para>
+ Problem reported by liujinyang-highgo.
+ </para>
+ <para>
+ Discussion: <ulink url="https://github.com/pgpool/pgpool2/issues/162">use QGis import data cause pgpool hang. #162</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-07 [4ad45f625]
+ -->
+ <para>
+ Prevent pcp_node_info from hanging. (Tatsuo Ishii)
+ </para>
+ <para>
+ Copy the shared replication-state strings into local buffers
+ before calculating and sending a PCP node-info response.
+ Concurrent updates could otherwise make the declared packet
+ length differ from its payload and cause
+ <command>pcp_node_info</command> to hang.
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/CAGXsc%2BZhGjwm%2BF42Xmt8Qn1qP_h7woipiV0WsY-e-P7W3ZG2OA%40mail.gmail.com">Race condition in pcp_node_info can cause it to hang</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-05 [ba75b4b62]
+ -->
+ <para>
+ Fix a typo in a <function>read_kind_from_backend()</function> comment. (Tatsuo Ishii)
+ </para>
+ <para>
+ Discussion: <ulink url="https://www.postgresql.org/message-id/20260529.082051.533519450296185920.ishii%40postgresql.org">Fix comment for read_kind_from_backend</ulink>
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-04 [30b401a33]
+ -->
+ <para>
+ Fix query-cache handling with disable_load_balance_on_write.
+ (Tatsuo Ishii)
+ </para>
+ <para>
+ Track actual writes separately from the state used by
+ <varname>disable_load_balance_on_write</varname>. This fixes
+ incorrect query-cache use when the parameter is set to
+ <literal>trans_transaction</literal>,
+ <literal>dml_adaptive</literal>, or <literal>always</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Documents</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-06-25 [4071aa2e8]
+ -->
+ <!--
+ 2026-06-25 [a6a772422]
+ -->
+ <para>
+ Doc: Fix incorrect links. (Bo Peng)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+
+ <sect2>
+ <title>Regression Tests</title>
+ <itemizedlist>
+ <listitem>
+ <!--
+ 2026-09-20 [7bdc01fea]
+ -->
+ <para>
+ Test: enhance the 018.detach_primary regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Wait explicitly for watchdog quorum in
+ <literal>018.detach_primary</literal> before testing the
+ detachment of an invalid streaming replication primary node.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-09-19 [5f258a055]
+ -->
+ <para>
+ Test: stabilize the 006.memqcache regression test. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use synchronous replication in the streaming replication tests in
+ <literal>006.memqcache</literal>. This avoids intermittent
+ failures caused by replication delay, such as a newly created
+ role not yet being available on a standby.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-08-07 [315c05be1]
+ -->
+ <para>
+ Test: fix regress.sh to use a numeric PostgreSQL version number. (Tatsuo Ishii)
+ </para>
+ <para>
+ Remove nonnumeric suffixes from the PostgreSQL version used by
+ regression scripts, so development version strings such as
+ <literal>20devel</literal> can be used in numeric comparisons.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-07-17 [bdaccab93]
+ -->
+ <para>
+ Test: increase the test timeout from 300 to 360 seconds. (Tatsuo Ishii)
+ </para>
+ <para>
+ Increase the regression test timeout from 300 to 360 seconds to
+ accommodate longer runs of <literal>006.memqcache</literal>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <!--
+ 2026-06-25 [c91e846c8]
+ -->
+ <para>
+ Test: use wait_for_pgpool_startup instead of sleep. (Tatsuo Ishii)
+ </para>
+ <para>
+ Use <function>wait_for_pgpool_startup()</function> instead of a
+ fixed one-second sleep in <literal>110.memory_leak</literal> and
+ <literal>111.cancel_query</literal>, avoiding intermittent
+ startup-related test failures.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect2>
+</sect1>
+
<sect1 id="release-4-7-2">
<title>Release 4.7.2</title>
<note>
[parent: 6117bb7f6ee9]