Release date:
2026-10-09 09:53:14 UTC
Description:
- CVE-2025-1218: various packet over-reads in the mysqlnd wire protocol parser
- The same mysqlnd_ps.c hunk also corrects that path's result free from
mnd_efree() to upstream's php-7.0 form, mnd_pefree(stmt->result,
stmt->result->persistent): mysqlnd_result_init() allocates the result with
mnd_pecalloc(..., persistent), so on a persistent connection the Zend
allocator was being handed a malloc()ed block. Before the change a hostile
prepare over p:127.0.0.1 aborts with "zend_mm_heap corrupted" on a build
with the Zend MM heap checks compiled in; after it the same run completes,
and a non-persistent connection is unaffected either way
- Also fixes a pre-existing use-after-free on the row-reader failure path: the
CVE-2024-8929 error loops free every field decoded so far without clearing
the zvals, and the result set frees them again at teardown. All 2 sites now
clear after freeing. Confirmed under AddressSanitizer with the Zend allocator
disabled - heap-use-after-free before, clean after, on the three new
short-length tests and the nine CVE-2024-8929 stmt-row tests. Upstream still
carries the same loops unguarded in php-8.2.34 through php-8.5.11
- mysqlnd: initialise every pre-allocated row field before decoding
(php-5.4.45-mysqlnd-rowp-init-fields.patch). The row readers pre-allocate a
zval per column with MAKE_STD_ZVAL(), which sets no type, and only type it
when the decode loop reaches that column; the CVE-2024-8929 error paths
abandon a row part-way, leaving the rest allocated but never typed, and the
result set still frees the whole row at teardown. Each column is now
ZVAL_NULL()ed at allocation. Verified with valgrind under USE_ZEND_ALLOC=0.
PHP 5 only, and kept separate from the CVE patch because the defect predates
it and is reachable without it
Updated packages:
-
alt-php54-5.4.45-202.el6.x86_64.rpm
sha:63772c43107fbaa6c300c76829737126563a71f50aa97256d81d614c752bc799
-
alt-php54-bcmath-5.4.45-202.el6.x86_64.rpm
sha:10b8aa928a76a7f4584421572f5f30f070b781c255e54da7fa4ae093ced93fa8
-
alt-php54-cli-5.4.45-202.el6.x86_64.rpm
sha:4750633d0fdd6b4d4c658ebf55b59d77810e8232f056a71aa80d8855f15ec306
-
alt-php54-common-5.4.45-202.el6.x86_64.rpm
sha:64f1c53d93f5e8692fa59dde6a63006d11b106005a729bedf6e00dba5150dedb
-
alt-php54-dba-5.4.45-202.el6.x86_64.rpm
sha:fca4ba760e2e297aef7a6a2f32f6515edcd5a8c5751460bc11b1b5756640a3f8
-
alt-php54-dbx-5.4.45-202.el6.x86_64.rpm
sha:52cb870e9021b4ce4291b1fe88060637897b16aa2857fa829801e4ba5383eef1
-
alt-php54-devel-5.4.45-202.el6.x86_64.rpm
sha:4d742ea8a964761b8d41d9dc602f988c3802e50652b8c873f17a86bcbc3bc5ad
-
alt-php54-enchant-5.4.45-202.el6.x86_64.rpm
sha:a8a8b9e1f1f33454a9a0509aaee14333c15420043d2ae4834c7a96df86cd61f5
-
alt-php54-firebird-5.4.45-202.el6.x86_64.rpm
sha:4a60131df62ccfe3d1b812dd63c64dab67d141b3121c3b2d2d3ac15fc81c1b78
-
alt-php54-gd-5.4.45-202.el6.x86_64.rpm
sha:b58afcfea585bab49144a9274a4001818591ba1155845580317bdecceb76a016
-
alt-php54-imap-5.4.45-202.el6.x86_64.rpm
sha:805f6bb3265a9916051de7038d652d1b470c96aede8e9e73c33d422f36ea09a0
-
alt-php54-intl-5.4.45-202.el6.x86_64.rpm
sha:7d9207bc6f555491bf046078eb8ec49b376243dea981a181890f4e8212cf5cc1
-
alt-php54-ldap-5.4.45-202.el6.x86_64.rpm
sha:5c82dea5e893a948c50bdfdf82af49004497bfb023ffdd707fd70ad0ecffb400
-
alt-php54-mbstring-5.4.45-202.el6.x86_64.rpm
sha:38268695e723e7012863f6a0546f8c0ad6f706d124066cf3fd6621f4213ff054
-
alt-php54-mcrypt-5.4.45-202.el6.x86_64.rpm
sha:b3679ecc6153a1dc83e7c796cbd5c82f75cee62049dcc77c9dac23fa25fd20b7
-
alt-php54-mssql-5.4.45-202.el6.x86_64.rpm
sha:e7d8711a6764d205c8c0508523b806026c92b2fa62b26820ab3bf0ce8842c895
-
alt-php54-mysqlnd-5.4.45-202.el6.x86_64.rpm
sha:bf44223a2e99ffa2b77e31dc4d8152db6f0c911bdf59b4f52ff0224ed250bca5
-
alt-php54-odbc-5.4.45-202.el6.x86_64.rpm
sha:c47e6af142704cd19bc468c781c5498c26c523d6ac588c94804952b8dff85f17
-
alt-php54-pdo-5.4.45-202.el6.x86_64.rpm
sha:4d3ed9f3293e079579e0d16ba2cd3dbbb060c61817da8b5b648b8c39e4963695
-
alt-php54-pgsql-5.4.45-202.el6.x86_64.rpm
sha:d60b7ff5c7ef9c8bb77ca13e0397006e2788df372673c1a9fca3ecc7f13484fd
-
alt-php54-php-fpm-5.4.45-202.el6.x86_64.rpm
sha:4ed6b5391cfaae08968e0309fd9aa730192b6f9d451d4cf2809909e2027e981c
-
alt-php54-process-5.4.45-202.el6.x86_64.rpm
sha:a6a7008711a53c9be93673e42ad57925171f87c120227a62db494f9b291e8b38
-
alt-php54-pspell-5.4.45-202.el6.x86_64.rpm
sha:73994393278169b82fef85ab499e0d5c532b3ccbfdcd72bcf7a07b8de57ca775
-
alt-php54-recode-5.4.45-202.el6.x86_64.rpm
sha:7ab2f8b675d9e81f5bc3031fda05b8c955170cb5ac98573ea5b57e8fd1ad3de2
-
alt-php54-snmp-5.4.45-202.el6.x86_64.rpm
sha:deac5dd68afea7c55290bd14cd362fd6aecb888b3eeca63ace49f8708a8ac21c
-
alt-php54-soap-5.4.45-202.el6.x86_64.rpm
sha:f3d186f6804fe3348a8ef765e39a261bb600fb51f27c7d5662f8ef77d57b5699
-
alt-php54-sybase-5.4.45-202.el6.x86_64.rpm
sha:69a04331e68f012944bbc48bac14cf90bf9eea214da01937a46d58ffb826dbf8
-
alt-php54-tidy-5.4.45-202.el6.x86_64.rpm
sha:159cfe243091936ada11793a69a8542e31ecdf3cb5e9b93980628777465d567e
-
alt-php54-xml-5.4.45-202.el6.x86_64.rpm
sha:05f9a67aa1be7a647947a644c1628ba483293fc17015139937088d206ddc75ed
-
alt-php54-xmlrpc-5.4.45-202.el6.x86_64.rpm
sha:bda1d90a3d8aa4af5a556fcbdeb030715aed824b892c8d2ba59ae28a188ea477
Notes:
This page is generated automatically and has not been checked for errors. For clarification or
corrections please contact the
CloudLinux Packaging Team.