New PostgreSQL upstream microreleases 14.20, 16.11, and 17.7

Bug #2127667 reported by Lena Voytek
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresql-14 (Ubuntu)
Invalid
Wishlist
Athos Ribeiro
Jammy
Fix Released
Undecided
Athos Ribeiro
postgresql-16 (Ubuntu)
Invalid
Wishlist
Athos Ribeiro
Noble
Fix Released
Undecided
Athos Ribeiro
postgresql-17 (Ubuntu)
Invalid
Wishlist
Athos Ribeiro
Plucky
Fix Released
Undecided
Athos Ribeiro
Questing
Fix Released
Undecided
Athos Ribeiro

Bug Description

[Impact]

 * MRE for latest stable fixes of Postgres 14, 16, and 17 released in November 2025.

[Test Case]

 * The Postgres MREs traditionally rely on the large set of autopkgtests
   to run for verification. In a PPA, those are all already pre-checked to
   be good for this upload.

[Regression Potential]

 * Upstream tests are usually great and in addition in the Archive there
   are plenty of autopkgtests that in the past caught issues before being
   released.
   But nevertheless there always is a risk for something to break. Since
   these are general stable releases I can't pinpoint them to a most-likely area.
   - usually this works smoothly except a few test hiccups (flaky) that need to be clarified to be sure. Pre-checks will catch those to be discussed upfront (as last time)

[Other Info]

 * This is a reoccurring MRE, see below and all the references
 * CVEs addressed by this MRE:
  - CVE-2025-12817
  - CVE-2025-12818

Current versions in supported releases that got updates:

 postgresql-14 | 14.19-0ubuntu0.22.04.1 | jammy-security | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
 postgresql-16 | 16.10-0ubuntu0.24.04.1 | noble-security | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
 postgresql-17 | 17.6-0ubuntu0.25.04.1 | plucky-security | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
 postgresql-17 | 17.6-1build1 | questing | source, amd64, arm64, armhf, i386, ppc64el, riscv64, s390x

Special cases:
- Since there are 2 CVEs being fixed here, we will push these MREs through the security pocket.
- resolute is transitioning to postgresql-18, which contains those fixes as well. Therefore, we will not update posrgresql-17 there.

Standing MRE - Consider last updates as template:

- https://pad.lv/1637236
- https://pad.lv/1664478
- https://pad.lv/1690730
- https://pad.lv/1713979
- https://pad.lv/1730661
- https://pad.lv/1747676
- https://pad.lv/1752271
- https://pad.lv/1786938
- https://pad.lv/1815665
- https://pad.lv/1828012
- https://pad.lv/1833211
- https://pad.lv/1839058
- https://pad.lv/1863108
- https://pad.lv/1892335
- https://pad.lv/1915254
- https://pad.lv/1928773
- https://pad.lv/1939396
- https://pad.lv/1950268
- https://pad.lv/1961127
- https://pad.lv/1973627
- https://pad.lv/1978249
- https://pad.lv/1984012
- https://pad.lv/1996770
- https://pad.lv/2006406
- https://pad.lv/2019214
- https://pad.lv/2028426
- https://pad.lv/2040469
- https://pad.lv/2067388
- https://pad.lv/2076183
- https://pad.lv/2085196
- https://pad.lv/2099900
- https://pad.lv/2110377
- https://pad.lv/2112531

As usual we test and prep from the PPA and then push through SRU/Security as applicable.

Once ready, the test packages should be available at https://launchpad.net/~canonical-server/+archive/ubuntu/postgresql-sru-preparation/+packages

Related branches

CVE References

Lena Voytek (lvoytek)
Changed in postgresql-14 (Ubuntu):
importance: Undecided → Wishlist
milestone: none → ubuntu-26.02
Changed in postgresql-16 (Ubuntu):
importance: Undecided → Wishlist
milestone: none → ubuntu-26.02
Changed in postgresql-17 (Ubuntu):
importance: Undecided → Wishlist
milestone: none → ubuntu-26.02
Athos Ribeiro (athos)
Changed in postgresql-17 (Ubuntu):
assignee: nobody → Athos Ribeiro (athos)
Changed in postgresql-16 (Ubuntu):
assignee: nobody → Athos Ribeiro (athos)
Changed in postgresql-14 (Ubuntu):
assignee: nobody → Athos Ribeiro (athos)
Athos Ribeiro (athos)
description: updated
Athos Ribeiro (athos)
description: updated
no longer affects: postgresql-17 (Ubuntu Noble)
no longer affects: postgresql-17 (Ubuntu Jammy)
no longer affects: postgresql-14 (Ubuntu Questing)
no longer affects: postgresql-14 (Ubuntu Plucky)
no longer affects: postgresql-14 (Ubuntu Noble)
no longer affects: postgresql-16 (Ubuntu Jammy)
no longer affects: postgresql-16 (Ubuntu Questing)
no longer affects: postgresql-16 (Ubuntu Plucky)
Athos Ribeiro (athos)
Changed in postgresql-17 (Ubuntu Plucky):
assignee: nobody → Athos Ribeiro (athos)
Changed in postgresql-17 (Ubuntu Questing):
assignee: nobody → Athos Ribeiro (athos)
Changed in postgresql-16 (Ubuntu Noble):
assignee: nobody → Athos Ribeiro (athos)
Changed in postgresql-14 (Ubuntu Jammy):
assignee: nobody → Athos Ribeiro (athos)
Athos Ribeiro (athos)
summary: - Backport of postgresql for jammy, noble and questing
+ New PostgreSQL upstream microreleases 14.20, 16.11, and 17.7
Revision history for this message
Athos Ribeiro (athos) wrote :

The packages are now available in the PPA (https://launchpad.net/~canonical-server/+archive/ubuntu/postgresql-sru-preparation) for testing.

Revision history for this message
Athos Ribeiro (athos) wrote :

The relevant tests are passing. This is ready to be released in the security pocket

Athos Ribeiro (athos)
Changed in postgresql-17 (Ubuntu):
milestone: ubuntu-26.02 → ubuntu-25.12
Changed in postgresql-16 (Ubuntu):
milestone: ubuntu-26.02 → ubuntu-25.12
Changed in postgresql-14 (Ubuntu):
milestone: ubuntu-26.02 → ubuntu-25.12
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postgresql-14 - 14.20-0ubuntu0.22.04.1

---------------
postgresql-14 (14.20-0ubuntu0.22.04.1) jammy-security; urgency=medium

  * New upstream version (LP: #2127667).

    + A dump/restore is not required for those running 14.X.

    + However, if you are upgrading from a version earlier than 14.19, see
      those release notes as well please.

    + Check for CREATE privileges on the schema in CREATE STATISTICS (Jelte
      Fennema-Nio)

      This omission allowed table owners to create statistics in any schema,
      potentially leading to unexpected naming conflicts. (CVE-2025-12817)

    + Avoid integer overflow in allocation-size calculations within libpq
      (Jacob Champion)

      Several places in libpq were not sufficiently careful about computing
      the required size of a memory allocation. Sufficiently large inputs
      could cause integer overflow, resulting in an undersized buffer, which
      would then lead to writing past the end of the buffer. (CVE-2025-12818)

    + Details about these and many further changes can be found at:
      https://www.postgresql.org/docs/14/release-14-20.html.

  * d/postgresql-14.NEWS: Update NEWS file.

 -- Athos Ribeiro <email address hidden> Mon, 24 Nov 2025 10:34:10 -0300

Changed in postgresql-14 (Ubuntu Jammy):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postgresql-16 - 16.11-0ubuntu0.24.04.1

---------------
postgresql-16 (16.11-0ubuntu0.24.04.1) noble-security; urgency=medium

  * New upstream version (LP: #2127667).

    + A dump/restore is not required for those running 16.X.

    + However, if you are upgrading from a version earlier than 16.10, see
      those release notes as well please.

    + Check for CREATE privileges on the schema in CREATE STATISTICS (Jelte
      Fennema-Nio)

      This omission allowed table owners to create statistics in any schema,
      potentially leading to unexpected naming conflicts. (CVE-2025-12817)

    + Avoid integer overflow in allocation-size calculations within libpq
      (Jacob Champion)

      Several places in libpq were not sufficiently careful about computing
      the required size of a memory allocation. Sufficiently large inputs
      could cause integer overflow, resulting in an undersized buffer, which
      would then lead to writing past the end of the buffer. (CVE-2025-12818)

    + Details about these and many further changes can be found at:
      https://www.postgresql.org/docs/16/release-16-11.html.

  * d/postgresql-16.NEWS: Update NEWS file.

 -- Athos Ribeiro <email address hidden> Mon, 24 Nov 2025 09:58:56 -0300

Changed in postgresql-16 (Ubuntu Noble):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postgresql-17 - 17.7-0ubuntu0.25.10.1

---------------
postgresql-17 (17.7-0ubuntu0.25.10.1) questing-security; urgency=medium

  * New upstream version (LP: #2127667).

    + A dump/restore is not required for those running 17.X.

    + However, if you are upgrading from a version earlier than 17.6, see
      those release notes as well please.

    + Check for CREATE privileges on the schema in CREATE STATISTICS (Jelte
      Fennema-Nio)

      This omission allowed table owners to create statistics in any schema,
      potentially leading to unexpected naming conflicts. (CVE-2025-12817)

    + Avoid integer overflow in allocation-size calculations within libpq
      (Jacob Champion)

      Several places in libpq were not sufficiently careful about computing
      the required size of a memory allocation. Sufficiently large inputs
      could cause integer overflow, resulting in an undersized buffer, which
      would then lead to writing past the end of the buffer. (CVE-2025-12818)

    + Details about these and many further changes can be found at:
      https://www.postgresql.org/docs/17/release-17-7.html.

  * d/postgresql-17.NEWS: Create NEWS file.

 -- Athos Ribeiro <email address hidden> Wed, 19 Nov 2025 10:23:51 -0300

Changed in postgresql-17 (Ubuntu Questing):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postgresql-17 - 17.7-0ubuntu0.25.04.1

---------------
postgresql-17 (17.7-0ubuntu0.25.04.1) plucky-security; urgency=medium

  * New upstream version (LP: #2127667).

    + A dump/restore is not required for those running 17.X.

    + However, if you are upgrading from a version earlier than 17.6, see
      those release notes as well please.

    + Check for CREATE privileges on the schema in CREATE STATISTICS (Jelte
      Fennema-Nio)

      This omission allowed table owners to create statistics in any schema,
      potentially leading to unexpected naming conflicts. (CVE-2025-12817)

    + Avoid integer overflow in allocation-size calculations within libpq
      (Jacob Champion)

      Several places in libpq were not sufficiently careful about computing
      the required size of a memory allocation. Sufficiently large inputs
      could cause integer overflow, resulting in an undersized buffer, which
      would then lead to writing past the end of the buffer. (CVE-2025-12818)

    + Details about these and many further changes can be found at:
      https://www.postgresql.org/docs/17/release-17-7.html.

  * d/postgresql-17.NEWS: Update NEWS file.

 -- Athos Ribeiro <email address hidden> Wed, 19 Nov 2025 14:54:01 -0300

Changed in postgresql-17 (Ubuntu Plucky):
status: New → Fix Released
Athos Ribeiro (athos)
Changed in postgresql-14 (Ubuntu):
status: New → Invalid
Changed in postgresql-16 (Ubuntu):
status: New → Invalid
Changed in postgresql-17 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.