Bug 2414826 (CVE-2025-12818)

Summary: CVE-2025-12818 postgresql: libpq: 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: 2415320, 2415321, 2415322, 2415323, 2417274, 2415314, 2415315, 2415316, 2415317, 2415318, 2415319, 2417273    
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

Comment 22 errata-xmlrpc 2026-01-12 10:55:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

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

Comment 23 errata-xmlrpc 2026-01-12 10:58:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

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

Comment 24 errata-xmlrpc 2026-01-12 13:25:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 25 errata-xmlrpc 2026-01-13 12:34:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 26 errata-xmlrpc 2026-01-13 13:04:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

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

  Red Hat Enterprise Linux 9

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

Comment 28 errata-xmlrpc 2026-01-13 16:27:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 29 errata-xmlrpc 2026-01-13 16:38:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

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

Comment 30 errata-xmlrpc 2026-01-13 16:44:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 31 errata-xmlrpc 2026-01-13 17:04:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 32 errata-xmlrpc 2026-01-14 12:47:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

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

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

  Red Hat Enterprise Linux 8

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

Comment 34 errata-xmlrpc 2026-01-19 00:37:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

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

Comment 35 errata-xmlrpc 2026-01-19 00:39:16 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:0744 https://access.redhat.com/errata/RHSA-2026:0744

Comment 36 errata-xmlrpc 2026-01-19 00:48:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

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

Comment 37 errata-xmlrpc 2026-01-20 05:10:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

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

Comment 38 errata-xmlrpc 2026-01-20 14:43:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

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