From: Amit Langote <amitlan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix use-after-free in ri_LoadConstraintInfo
Date: Tue, 31 Mar 2026 08:05:40 +0000
Message-ID: <E1w7U6V-002H6n-0o@gemulon.postgresql.org> (raw)
Fix use-after-free in ri_LoadConstraintInfo
conindid was read from conForm after ReleaseSysCache(tup). Move
the read to before the release.
Introduced by commit 2da86c1ef9b5.
Per buildfarm member prion.
Discussion: https://postgr.es/m/CA+HiwqGGYjN6F2oL7yAk=hvSs-sj3TPqZ9JC9iyLkCqJadECrw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/68a8601ee9ec7285b5a3839e17360c0a9d0e52a3
Modified Files
--------------
src/backend/utils/adt/ri_triggers.c | 9 +++++----
1 file changed, 5 insertions(+), 4 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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: amitlan@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix use-after-free in ri_LoadConstraintInfo
In-Reply-To: <E1w7U6V-002H6n-0o@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