[CLSA-2026:1794755531] Fix of 17 CVEs
Type:
security
Severity:
Important
Release date:
2026-11-15 15:12:13 UTC
Description:
* SECURITY UPDATE: type confusion in PL/Perl get_perl_array_ref() A trusted PL/Perl function could return a reference blessed into PostgreSQL::InServer::ARRAY that does not point at a hash; the server then treated the referent as a hash and read memory out of it. The referent type is now checked before the object is used. - debian/patches/CVE-2026-116309.patch: require the referent of a PostgreSQL::InServer::ARRAY object to be a hash in src/pl/plperl/plperl.c (upstream c032c0fbdc0). - CVE-2026-116309 * SECURITY UPDATE: use-after-free in PL/Perl while scanning Perl arrays/hashes PL/Perl and the hstore_plperl transform walked Perl arrays and hashes without holding their own reference, so code run while converting an element (tied-variable methods, re-entrant PL/Perl) could free the container mid-scan. A reference is now held for the duration of the scan. - debian/patches/CVE-2026-116320.patch: hold a mortal reference on the array/hash being scanned in src/pl/plperl/plperl.c and contrib/hstore_plperl/hstore_plperl.c (upstream bd76c497e962). - CVE-2026-116320 * SECURITY UPDATE: use-after-free in PL/Perl return_next() on re-entry PL/Perl's return_next() built each result row in a temporary memory context that was shared across calls and reset at the end of every call. A re-entrant return_next() (e.g. from a tied variable's FETCH method run while converting a row value) reset that context and freed data the outer call was still using. Each call now creates and deletes its own context. - debian/patches/CVE-2026-116319.patch: use a per-call temporary memory context in plperl_return_next_internal() in src/pl/plperl/plperl.c (upstream 556614e0428a). - CVE-2026-116319 * SECURITY UPDATE: use-after-free in PL/Perl spi_freeplan() spi_freeplan() freed a prepared query's plan and the memory context holding its argument input functions without checking whether the query was still running. A nested PL/Perl call made while spi_exec_prepared() or spi_query_prepared() was executing the query could free it, leaving the outer execution using freed memory. Executions in progress are now counted per query and spi_freeplan() refuses to free a query in use. - debian/patches/CVE-2026-116307.patch: add a use_count to plperl_query_desc, pin the query in plperl_spi_exec_prepared() and plperl_spi_query_prepared(), and make plperl_spi_freeplan() croak while it is in use, in src/pl/plperl/plperl.c (upstream c148f9509ed5). - CVE-2026-116307 * SECURITY UPDATE: PL/Perl error-stack desynchronisation via tied objects Errors thrown by Perl code run from tied or overloaded values outside call_sv() could longjmp through stale PostgreSQL error frames, leading to crashes or memory corruption. PL/Perl now keeps Perl's and PostgreSQL's jmp_buf stacks in sync, runs get magic on tied values, safely tests ERRSV, and traps errors in encode_typed_literal(). - debian/patches/CVE-2026-116326.patch: add PG_PERL_TRY/CATCH/END_TRY and HaveCompleteError(), restructure the PL/Perl call handlers, materialize tied SVs, harden error reporting (upstream 68abacacac0, 8ab0f897d41, a389439963d, 209e8c88dce). - CVE-2026-116326 * SECURITY UPDATE: pg_restore out-of-bounds access and path traversal A crafted archive could make pg_restore read and write out of bounds (unchecked dependency IDs, malformed DROP statements, a tar member placed before toc.dat, negative tar member lengths, overflowing dump-ID array sizes) or read files outside a directory-format archive. - debian/patches/CVE-2026-116314.patch: validate dependency IDs, DROP statement prefixes, tar member order and length, dump-ID array sizes, and reject directory-archive file names with separators or that are not regular files (upstream 179c2c37). - CVE-2026-116314 * SECURITY UPDATE: types created in pg_temp from security-restricted code Code running inside a security-restricted operation (e.g. an index expression or materialized view query run during REFRESH, ANALYZE or VACUUM) could create a domain, enum or range type in the calling session's temporary schema, shadowing an unqualified type name later used by the caller and allowing SQL execution with its privileges. - debian/patches/CVE-2026-116316.patch: refuse to create domain, enum and range types in a temporary schema within a security-restricted operation in src/backend/commands/typecmds.c (upstream 44ebef3b5dd). - CVE-2026-116316 * SECURITY UPDATE: SQL function output parameter of type "any" bypasses row type checks fmgr_sql_validator() rejected pseudo-type input parameters but not output parameters, so an SQL function could declare an OUT/TABLE column of type "any" and return rows of an unrelated row type, which were then read with a mismatched tuple descriptor (server memory disclosure, possible code execution). - debian/patches/CVE-2026-18447.patch: apply the pseudo-type check in fmgr_sql_validator() to parameters of every mode, still allowing polymorphic types and record/record[] output columns (upstream ded6c00d3e26). - CVE-2026-18447 * SECURITY UPDATE: type confusion via ALTER of a row type used in stored expressions ALTER TABLE/TYPE ... ALTER COLUMN/ATTRIBUTE TYPE (and table rewrites) only rejected the change when another table column stored the row type; Consts of the row type kept in views/rules, column, function and domain DEFAULTs, CHECK constraints, index expressions/predicates (and partition keys, 10 only) were left in the old layout and later deformed with the new one. This is a declared partial fix (DDL-side hardening only, no datum versioning). - debian/patches/CVE-2026-6460.patch: forbid altering a row type by default when other objects depend on it, check function/domain DEFAULTs, CHECK constraints, index expressions and foreign tables, scan pg_index for missing dependencies, record result-type dependencies, and fix the related locking races (upstream 6be4e665dff, 9d0efd64bff, f5782736cd2 and others). - CVE-2026-6460 * SECURITY UPDATE: use-after-free in PL/Tcl on re-entrant interpreter use PL/Tcl passed strings owned by the Tcl interpreter to SQL datatype input functions. An input function that re-entered the same interpreter (for example a PL/Tcl function in a domain CHECK constraint) could free or overwrite those strings while they were still in use. - debian/patches/CVE-2026-116323.patch: copy Tcl-owned strings with a new utf_u2e_copy() helper before calling any input function, in the function result, error and SPI_execute_plan argument paths (and, where present, return_next and composite result paths) (upstream b2b0f9507ab4). - CVE-2026-116323 * SECURITY UPDATE: pg_dump --format=tar restore.sql not protected by \restrict The restore.sql script embedded in pg_dump tar archives was written with no psql \restrict key, so psql meta-commands injected by a malicious source server could run when the script was replayed with psql. pg_dump now generates a restrict key for tar format too. - debian/patches/CVE-2026-116330.patch: generate the \restrict key for --format=tar as well as plain and allow --restrict-key with tar (upstream 9d2cda9f). - CVE-2026-116330 * SECURITY UPDATE: type confusion via MIN/MAX optimization of aggregates An aggregate defined with a SORTOP whose result type differs from its input type could be turned by the planner into an index-scan subquery, yielding a value of the wrong type and leading to crashes or memory disclosure. Any role allowed to create aggregates could exploit this. - debian/patches/CVE-2026-116331.patch: ignore the sort operator in fetch_agg_sort_op() unless the aggregate takes exactly one argument of its result type, in src/backend/optimizer/plan/planagg.c (upstream 0eba2949). - CVE-2026-116331 * SECURITY UPDATE: use-after-free when a portal is closed while being set up User-defined code that runs while a portal is still being created (for example a function evaluated during planning of a PL/pgSQL OPEN or an extended-protocol Bind) could CLOSE that portal or run CLOSE ALL, freeing it while its creator kept using it, leading to memory corruption. - debian/patches/CVE-2026-116332.patch: refuse to drop portals that are still being set up, skip them in CLOSE ALL, and mark them failed on (sub)transaction abort so cleanup can drop them (upstream 69b973c656b). - CVE-2026-116332 * SECURITY UPDATE: type confusion via operator commutator/negator links CREATE OPERATOR did not check that a commutator or negator returns the same data type as the operator, and filling in a shell operator could drop or overwrite its existing links, so the planner could swap in an operator with a different result type, allowing code execution. - debian/patches/CVE-2026-116335.patch: make DROP OPERATOR reset the links pointing at the dropped operator, check result types and keep reciprocal links in src/backend/catalog/pg_operator.c, require the same role to fill in a shell operator, reject self-negators (upstream c94959d4110, 7282f7dfe14). - CVE-2026-116335 * SECURITY UPDATE: integer overflow in tuple size computation heap_compute_data_size() summed attribute sizes without overflow checks and the TOAST code stored the result in 32-bit variables, so a very wide row could wrap the computed length and lead to a heap buffer overflow with attacker-controlled contents. - debian/patches/CVE-2026-120139.patch: use overflow-checked additions in heap_compute_data_size() and reject tuples beyond the 1 GB palloc limit, let the toaster loops use the uncapped variant, widen the offset in nocachegetattr(), and add pg_add_size_overflow() and friends to common/int.h (upstream 9fe1c78135f4, 37842f3dc6). - CVE-2026-120139 * SECURITY UPDATE: use-after-free in dblink on nested disconnect While dblink converted rows of a remote result, a column type's input function (e.g. a domain CHECK constraint) could run user SQL that re-entered dblink and closed or replaced the connection still being read, so the outer call then used a freed PGconn. A connection is now marked as in use while its result is materialized, and every other dblink call on that connection is refused until it is done. - debian/patches/CVE-2026-120147.patch: track an in-use flag on dblink connections and reject disconnect, connect-replace, open, close, fetch, exec, get_result and the other dblink calls on a connection that is materializing a result, in contrib/dblink/dblink.c (upstream 887f6fee58f). - CVE-2026-120147 * SECURITY UPDATE: SQL injection via extension script @extschema@ substitution Schema names substituted for @extschema@ into extension scripts were only checked for quote, backslash and dollar characters, so a name containing a newline, carriage return, comment delimiter or a substitution token could still inject SQL when a superuser created or updated a non-relocatable extension in that schema. Reject those too. - debian/patches/CVE-2026-120153.patch: add check_substitution_name() and use it for the @extschema@ substitution in src/backend/commands/extension.c (upstream f233bee1ed). - CVE-2026-120153
Updated packages:
  • libecpg-compat3_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:48cc4f7dfd001a9550d7e6b840f2cf4c0fb8dc33
  • libecpg-dev_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:79279fdabbf3ce4b0fc911c95bd6024b7f15b403
  • libecpg6_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:9a2af6c9c28f2c4b4598f7ab85175964f3c90da3
  • libpgtypes3_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:f3e9c28faa003beffd90d70721a8d0493bacdff9
  • libpq-dev_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:a58a62e7840862cf16960076ed1157d1b0c18304
  • libpq5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:9d086d8d0a50781ddfba38b6886a200719ebc893
  • postgresql-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:8102a9f8cc1584f73b3bc663a69a3fd11339f0d7
  • postgresql-client-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:dbaa80cd9fedf96766e863aaf9a6dda9bfc39a88
  • postgresql-contrib-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:809b3bcc89570826bd390377778c055989480df5
  • postgresql-doc-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_all.deb
    sha:8dbfacea30cd52717a3658508db4dd32451b4f1e
  • postgresql-plperl-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:9c259835962049cd014b433efe8a91af154be0a9
  • postgresql-plpython-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:1880e259d41ace4b2d4f6aa34e0239890cf73848
  • postgresql-plpython3-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:8800981c95eb4b9d15912b69c9ef93ba4338ade1
  • postgresql-pltcl-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:5e5d4129a890e1058d14100d5cf880d38d4907a5
  • postgresql-server-dev-9.5_9.5.25-0ubuntu0.16.04.1+tuxcare.els23_amd64.deb
    sha:42423d2aac10874f409a7ef4b502abe4fca2b05e
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.