Bug 2496905 - CVE-2026-6477 libpq: PostgreSQL libpq: Buffer overflow allows server superuser to overwrite client stack memory [fedora-all]
Summary: CVE-2026-6477 libpq: PostgreSQL libpq: Buffer overflow allows server superuse...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libpq
Version: 45
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Filip Januš
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["299335d6-222b-4c67-8f40-0...
Depends On:
Blocks: CVE-2026-6477
TreeView+ depends on / blocked
 
Reported: 2026-07-03 17:56 UTC by Mauro Matteo Cascella
Modified: 2026-08-17 15:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2026-07-03 17:56:49 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Aoife Moloney 2026-08-17 15:14:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


Note You need to log in before you can comment on or make changes to this bug.