Bug 2414826 (CVE-2025-12818)

Summary: CVE-2025-12818 postgresql: libpq undersizes allocations, via integer wraparound
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A vulnerability has been identified in PostgreSQL’s libpq client library, where integer wraparound in several allocation-size calculations allows a peer or input provider to cause an undersized buffer and then write out-of-bounds by hundreds of megabytes. This can lead to a client application segmentation fault or crash when using libpq to connect to a PostgreSQL server.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2415317, 2415318, 2415319, 2415320, 2415321, 2415322, 2415323, 2417273, 2417274, 2415314, 2415315, 2415316    
Bug Blocks:    

Description OSIDB Bzimport 2025-11-13 14:01:46 UTC
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.

Comment 3 errata-xmlrpc 2025-12-04 07:49:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:22728 https://access.redhat.com/errata/RHSA-2025:22728

Comment 6 errata-xmlrpc 2025-12-10 09:37:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2025:23022 https://access.redhat.com/errata/RHSA-2025:23022

Comment 7 errata-xmlrpc 2025-12-10 09:49:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2025:23023 https://access.redhat.com/errata/RHSA-2025:23023

Comment 8 errata-xmlrpc 2025-12-11 10:53:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2025:23124 https://access.redhat.com/errata/RHSA-2025:23124

Comment 9 errata-xmlrpc 2025-12-11 11:11:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:23123 https://access.redhat.com/errata/RHSA-2025:23123

Comment 11 errata-xmlrpc 2025-12-15 01:43:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2025:23158 https://access.redhat.com/errata/RHSA-2025:23158

Comment 12 errata-xmlrpc 2025-12-15 01:48:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2025:23157 https://access.redhat.com/errata/RHSA-2025:23157

Comment 13 errata-xmlrpc 2026-01-08 00:13:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2026:0263 https://access.redhat.com/errata/RHSA-2026:0263

Comment 14 errata-xmlrpc 2026-01-08 00:31:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:0265 https://access.redhat.com/errata/RHSA-2026:0265

Comment 15 errata-xmlrpc 2026-01-08 00:33:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2026:0267 https://access.redhat.com/errata/RHSA-2026:0267

Comment 16 errata-xmlrpc 2026-01-08 00:34:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:0266 https://access.redhat.com/errata/RHSA-2026:0266

Comment 17 errata-xmlrpc 2026-01-08 00:56:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:0270 https://access.redhat.com/errata/RHSA-2026:0270

Comment 18 errata-xmlrpc 2026-01-08 01:20:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:0262 https://access.redhat.com/errata/RHSA-2026:0262

Comment 19 errata-xmlrpc 2026-01-08 01:24:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:0264 https://access.redhat.com/errata/RHSA-2026:0264

Comment 20 errata-xmlrpc 2026-01-08 01:46:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:0269 https://access.redhat.com/errata/RHSA-2026:0269

Comment 21 errata-xmlrpc 2026-01-08 02:32:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:0268 https://access.redhat.com/errata/RHSA-2026:0268