REDHAT-BUG-2572547: Use After Free
Use after free in PostgreSQL expanded-record domain checks allows an object creator to execute arbitrary code as the operating system user running the database, via repeated checks of a domain over a composite type that cause reuse of a dangling memory-context pointer. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 18.7 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 17.12 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 16.16 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 15.20 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 14.25
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be able to create an object in PostgreSQL and trigger repeated domain checks involving a domain over a composite type. Successful exploitation can execute arbitrary code as the operating system user running the database.
Which PostgreSQL releases contain the fix?
The issue affects versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25. Upgrade to the applicable listed release or a later release in the same supported branch.
How can I assess whether an installation is affected?
Check the PostgreSQL server version. Versions older than the fixed release for their branch are affected; exposure additionally depends on whether untrusted users can create objects and invoke the relevant domain-over-composite-type checks.