Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-6637: Stack buffer overflow in PostgreSQL module "refint" allows an unprivileged database user to execute arbitrary code as the operating system user running the database. A distinct attack is possible if the application declares a user-controlled column as a "refint" cascade primary key and facilitates user-controlled updates to that column. In that case, a SQL injection allows a primary key update value provider to execute arbitrary SQL as the database user performing the primary key update. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected. CVE-2026-6477: Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(), lo_lseek64(), and lo_tell64() functions allows the server superuser to overwrite a client stack buffer with an arbitrarily-large response. Like gets(), PQfn(..., result_is_int=0, ...) stores arbitrary-length, server-determined data into a buffer of unspecified size. Because both the \lo_export command in psql and pg_dump call lo_read(), the server superuser can overwrite pg_dump or psql stack memory. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.
Fixed packages 13
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | postgresql | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-contrib | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-debuginfo | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-devel | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-docs | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-libs | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-plperl | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-plpython | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-pltcl | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-server | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-static | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-test | 0:9.2.24-8.amzn2.0.10 |
| Amazon Linux · 2 | postgresql-upgrade | 0:9.2.24-8.amzn2.0.10 |
Vulnerabilities 2
-
High 8.8
PostgreSQL libpq lo_* functions let server superuser overwrite client stack memory
Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(), lo_lseek64(), and lo_tell64() functions allows the server superuser to overwrite a client stack buffer with an arbitrarily-large response. Like ge…
-
High 8.8
PostgreSQL refint allows stack buffer overflow and SQL injection
Stack buffer overflow in PostgreSQL module "refint" allows an unprivileged database user to execute arbitrary code as the operating system user running the database. A distinct attack is possible if the application declares a user-controlled column as a "refi…