diff options
| author | Guocai He <guocai.he.cn@windriver.com> | 2026-05-25 15:42:06 +0800 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-05-31 03:08:46 -0700 |
| commit | 1289a88977b3c3279d0ce4e70d0783e25786510d (patch) | |
| tree | a9056f5daf133f86b58846aa7d0ff700b8f0e5e0 /meta-oe | |
| parent | d802e1d79b3ee2016ff023dbe66c672e8c0ef7c6 (diff) | |
| download | meta-openembedded-1289a88977b3c3279d0ce4e70d0783e25786510d.tar.gz | |
postgresql: fix CVE-2026-6479
CVE-2026-6479 was partially fixed by the 17.8 -> 17.10 version upgrade,
but an additional patch is needed to completely fix the issue.
Add missing include of IO::Socket::INET in Cluster.pm test module.
The postmaster test 004_negotiate.pl could fail due to IO::Socket::INET
gone missing, in environments that cannot use Unix sockets.
Reference:
https://security-tracker.debian.org/tracker/CVE-2026-6479
https://github.com/postgres/postgres/commit/eb5559b7df98581bd9a5142433122d1ba076d568
Signed-off-by: Guocai He <guocai.he.cn@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0001-Add-missing-include-in-Cluster.pm.patch | 38 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql_17.10.bb | 3 |
2 files changed, 40 insertions, 1 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-Add-missing-include-in-Cluster.pm.patch b/meta-oe/recipes-dbs/postgresql/files/0001-Add-missing-include-in-Cluster.pm.patch new file mode 100644 index 0000000000..d4e6273e6d --- /dev/null +++ b/meta-oe/recipes-dbs/postgresql/files/0001-Add-missing-include-in-Cluster.pm.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From eb5559b7df98581bd9a5142433122d1ba076d568 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Paquier <michael@paquier.xyz> | ||
| 3 | Date: Tue, 12 May 2026 16:44:28 +0900 | ||
| 4 | Subject: [PATCH] Add missing include in Cluster.pm | ||
| 5 | |||
| 6 | The postmaster test 004_negotiate.pl could fail due to IO::Socket::INET | ||
| 7 | gone missing, in environments that cannot use Unix sockets. | ||
| 8 | |||
| 9 | Oversight in the backport done in 6dffaeb8e54c, so like the other commit | ||
| 10 | this is applied across the v14~17 range. Per buildfarm member drongo. | ||
| 11 | |||
| 12 | Security: CVE-2026-6479 | ||
| 13 | Backpatch-through: 14 | ||
| 14 | |||
| 15 | CVE: CVE-2026-6479 | ||
| 16 | |||
| 17 | Upstream-Status: Backport [https://github.com/postgres/postgres/commit/eb5559b7df] | ||
| 18 | |||
| 19 | Signed-off-by: Guocai He <guocai.he.cn@windriver.com> | ||
| 20 | --- | ||
| 21 | src/test/perl/PostgreSQL/Test/Cluster.pm | 1 + | ||
| 22 | 1 file changed, 1 insertion(+) | ||
| 23 | |||
| 24 | diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm | ||
| 25 | index a8635f4e6ad..4c2428a9247 100644 | ||
| 26 | --- a/src/test/perl/PostgreSQL/Test/Cluster.pm | ||
| 27 | +++ b/src/test/perl/PostgreSQL/Test/Cluster.pm | ||
| 28 | @@ -104,6 +104,7 @@ use File::Path qw(rmtree mkpath); | ||
| 29 | use File::Spec; | ||
| 30 | use File::stat qw(stat); | ||
| 31 | use File::Temp (); | ||
| 32 | +use IO::Socket::INET; | ||
| 33 | use IPC::Run; | ||
| 34 | use PostgreSQL::Version; | ||
| 35 | use PostgreSQL::Test::RecursiveCopy; | ||
| 36 | -- | ||
| 37 | 2.34.1 | ||
| 38 | |||
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_17.10.bb b/meta-oe/recipes-dbs/postgresql/postgresql_17.10.bb index 98b8d4891a..7afd8b4dbf 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql_17.10.bb +++ b/meta-oe/recipes-dbs/postgresql/postgresql_17.10.bb | |||
| @@ -10,7 +10,8 @@ SRC_URI += "\ | |||
| 10 | file://0004-config_info.c-not-expose-build-info.patch \ | 10 | file://0004-config_info.c-not-expose-build-info.patch \ |
| 11 | file://0005-postgresql-fix-ptest-failure-of-sysviews.patch \ | 11 | file://0005-postgresql-fix-ptest-failure-of-sysviews.patch \ |
| 12 | file://0001-tcl.m4-Recognize-tclsh9.patch \ | 12 | file://0001-tcl.m4-Recognize-tclsh9.patch \ |
| 13 | " | 13 | file://0001-Add-missing-include-in-Cluster.pm.patch \ |
| 14 | " | ||
| 14 | 15 | ||
| 15 | SRC_URI[sha256sum] = "078a03516dcdbdb705fecaf415ea3d13a956c589e46f09fed68a06fb00598c90" | 16 | SRC_URI[sha256sum] = "078a03516dcdbdb705fecaf415ea3d13a956c589e46f09fed68a06fb00598c90" |
| 16 | 17 | ||
