SECURITY UPDATE: integer overflows leading to out-of-bounds writes in
libpq
debian/patches/CVE-2025-12818.patch: guard size and length
computations against int and size_t overflow in
src/interfaces/libpq/fe-connect.c, src/interfaces/libpq/fe-exec.c,
src/interfaces/libpq/fe-print.c, src/interfaces/libpq/fe-protocol3.c
and src/interfaces/libpq/libpq-int.h.
CVE-2025-12818
SECURITY UPDATE: out-of-bounds reads via missing validation of
multibyte character length
debian/patches/CVE-2026-2006.patch: add bounds-checked pg_mblen_cstr(),
pg_mblen_range(), pg_mblen_with_len() and pg_mblen_unbounded() and use
them in place of pg_mblen() across the backend and contrib modules,
fix EUC_CN maximum length and mb2wchar functions on short input in
src/backend/utils/mb/wchar.c, and require PGP-decrypted text to pass
encoding validation in contrib/pgcrypto/pgp-pgsql.c, with tests.
CVE-2026-2006
SECURITY UPDATE: arbitrary code execution via non-built-in selectivity
estimators
debian/patches/CVE-2026-2004.patch: require superuser to install a
non-built-in selectivity estimator in
src/backend/commands/operatorcmds.c, and check input types in
src/backend/tsearch/ts_selfuncs.c and
src/backend/utils/adt/network_selfuncs.c.
CVE-2026-2004
SECURITY UPDATE: buffer overflow in pgcrypto pgp_pub_decrypt_bytea()
debian/patches/CVE-2026-2005.patch: reject oversized session keys in
contrib/pgcrypto/pgp-pubdec.c, add PXE_PGP_KEY_TOO_BIG to
contrib/pgcrypto/px.h and contrib/pgcrypto/px.c, with tests.