From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Harden some allocations against integer wraparound
Date: Mon, 09 Nov 2026 14:22:00 +0000
Message-ID: <E1xQQG0-000000003hk-48Pz@gemulon.postgresql.org> (raw)
Harden some allocations against integer wraparound
This isn't closing any specific security bug, but attacks are perhaps
conceivable due to various forms of type confusion or data corruption.
Tighten that up a bit. More is undoubtely possible.
Author: Álvaro Herrera <alvherre@kurilemu.de>
Security: CVE-2026-120139
Backpatch-through: 14
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f1b226dee1cbbc74b5df45185a5e94a547a38e4a
Author: Álvaro Herrera <alvherre@kurilemu.de>
Modified Files
--------------
src/backend/access/common/detoast.c | 9 +++++++
src/backend/access/common/toast_compression.c | 37 ++++++++++++++++++++++++---
src/backend/utils/adt/array_userfuncs.c | 6 +++++
src/include/access/tableam.h | 6 +++++
src/include/varatt.h | 5 ++--
5 files changed, 57 insertions(+), 6 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: noah@leadboat.com
Subject: Re: pgsql: Harden some allocations against integer wraparound
In-Reply-To: <E1xQQG0-000000003hk-48Pz@gemulon.postgresql.org>
References: <E1xQQG0-000000003hk-48Pz@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox