REDHAT-BUG-2572576: Use After Free
Use after free in PostgreSQL coordination of anonymous RECORD type identifiers among parallel workers allows a database user to execute arbitrary code as the operating system user running the database, via causing one process to free a shared tuple descriptor while another process retains and later uses its address. 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
What level of access does an attacker need to exploit this issue?
An attacker needs to be a database user. Successful exploitation can allow that user to execute arbitrary code as the operating system account that runs the PostgreSQL database.
Which PostgreSQL releases need to be updated?
PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25 are affected. Update to the applicable listed release or a later version in the same supported branch.
Is this limited to a particular query execution scenario?
The issue involves coordination of anonymous RECORD type identifiers among parallel workers. Exploitation requires causing one process to free a shared tuple descriptor while another process later uses its retained address.