Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network peer to cause libpq to undersize an allocation and write out-of-bounds by hundreds of megabytes. This results in a segmentation fault for the application using libpq. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | RedHat | libpq-0:13.23-1.el9_0 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | postgresql:15-9020020251119134335.rhel9 | * |
| Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | postgresql:15-9040020251126171752.rhel9 | * |
| Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | libpq-0:13.23-1.el9_4 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | postgresql:15-9060020251205100237.rhel9 | * |
| Postgresql-10 | Ubuntu | upstream | * |
| Postgresql-12 | Ubuntu | upstream | * |
| Postgresql-14 | Ubuntu | jammy | * |
| Postgresql-14 | Ubuntu | upstream | * |
| Postgresql-16 | Ubuntu | noble | * |
| Postgresql-16 | Ubuntu | upstream | * |
| Postgresql-17 | Ubuntu | plucky | * |
| Postgresql-17 | Ubuntu | questing | * |
| Postgresql-17 | Ubuntu | upstream | * |
| Postgresql-18 | Ubuntu | devel | * |
| Postgresql-18 | Ubuntu | upstream | * |
| Postgresql-9.3 | Ubuntu | upstream | * |
| Postgresql-9.5 | Ubuntu | upstream | * |