| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Harden some allocations against integer wraparound |
| Date: | 2026-11-09 14:21:55 |
| Message-ID: | E1xQQFv-000000003XU-4ACy@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)kurilemu(dot)de>
Security: CVE-2026-120139
Backpatch-through: 14
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/839b1a04ecca525d08f0348035bb941420061162
Author: Álvaro Herrera <alvherre(at)kurilemu(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2026-11-09 14:21:56 | pgsql: Add tests for row type changes causing issues |
| Previous Message | Noah Misch | 2026-11-09 14:21:54 | pgsql: Check for Consts in domain DEFAULTs |