[CLSA-2026:1791453120] alt-php54: Fix of CVE-2025-1218
Type:
security
Severity:
Important
Release date:
2026-10-08 09:52: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
CVEs fixed:
Updated packages:
  • alt-php54-5.4.45-202.el8.x86_64.rpm
    sha:cdf70468e25917337a353c9088d7ea8b1480e36d8095afa924795ce61b174162
  • alt-php54-bcmath-5.4.45-202.el8.x86_64.rpm
    sha:aed40b80413f6e96495d15cbd16878e76b992283af92ce9b8905841c52f13b50
  • alt-php54-cli-5.4.45-202.el8.x86_64.rpm
    sha:0dd99f6336bd85b3e616064d407e266deaf731fece44c42232bbc2487ab3c20e
  • alt-php54-common-5.4.45-202.el8.x86_64.rpm
    sha:a83e738e7cd98dae60c8c0cba6fdfc4d07aec38e70d87a2b57cb66dd3b040b37
  • alt-php54-dba-5.4.45-202.el8.x86_64.rpm
    sha:7f23b3cda810055ff087e798df283f92a3802ef42b9df30132e1787e6fc37b76
  • alt-php54-dbx-5.4.45-202.el8.x86_64.rpm
    sha:97bec64c4721b04b08f9b3e72279e8d759990d53fb3ca33e47d7e57237f722bb
  • alt-php54-devel-5.4.45-202.el8.x86_64.rpm
    sha:56a40f180dac29eab069a2e5d972c5576fd8697f168821179ebd87a64b8a6916
  • alt-php54-enchant-5.4.45-202.el8.x86_64.rpm
    sha:18b37fa0d2c67015865dd9edce67849e249f82ebbb1d4275ef054290f39890de
  • alt-php54-firebird-5.4.45-202.el8.x86_64.rpm
    sha:e046785586ad9beb50f33557507ad902b385c2336b2fe6ebfe34fdc99c34fe44
  • alt-php54-gd-5.4.45-202.el8.x86_64.rpm
    sha:bd637751e8187d8a6171de47d8ca6c2569e3f724f23087ebfd5d77284305bf92
  • alt-php54-imap-5.4.45-202.el8.x86_64.rpm
    sha:d1cd06ec55ae2f4993f0b97c45b86c02124b5733b37734c6d47c31104c482e2a
  • alt-php54-intl-5.4.45-202.el8.x86_64.rpm
    sha:be08f5f0b8dcb1554aa2ab548f6bd187fbe10490dcf8e54db710771a6403e746
  • alt-php54-ldap-5.4.45-202.el8.x86_64.rpm
    sha:782f286c4120444e33fd189531136f536d224b525212cf02e44822c88763c781
  • alt-php54-mbstring-5.4.45-202.el8.x86_64.rpm
    sha:a9583e95661b63845b12b379b3c94c6d8aec1dff2a08b607cc25b1d1e95fb922
  • alt-php54-mcrypt-5.4.45-202.el8.x86_64.rpm
    sha:fee2c84f641dc58d2805ff6ed62829b921880df70fc5534e927881d55f3b9b08
  • alt-php54-mssql-5.4.45-202.el8.x86_64.rpm
    sha:8dc0df6bd232a607b89e02fc5f15ffb9ee0cb0fa0976396088715ef713afd335
  • alt-php54-mysqlnd-5.4.45-202.el8.x86_64.rpm
    sha:8a6e98b09e280b77f4a0ac91bbec1a7abb66058ac3b336cec8923a6f3c0406f8
  • alt-php54-odbc-5.4.45-202.el8.x86_64.rpm
    sha:ac3bd3129fa31e9c4b2e0406dfd6d6ba23c9f9dd8797dd236f9ea5c076dac87f
  • alt-php54-pdo-5.4.45-202.el8.x86_64.rpm
    sha:33b1e6219745c18966268d3707bf524124948b24cca1884f99ff6a0a4694a4d4
  • alt-php54-pgsql-5.4.45-202.el8.x86_64.rpm
    sha:c2bcaa1f0ce825aeee87b56e637350d41f7cd7f51052c69992c75efcf37dd08a
  • alt-php54-php-fpm-5.4.45-202.el8.x86_64.rpm
    sha:92c8321a4acc47ab068539f3f017c0c46e3a0586616c58425382d98f3a420a57
  • alt-php54-process-5.4.45-202.el8.x86_64.rpm
    sha:f21ab1ce10c8434f4685de650b0b8697672333752f674633ddcbedbf9959b892
  • alt-php54-pspell-5.4.45-202.el8.x86_64.rpm
    sha:a984d09125e3a68e2dd0321294d61771c8887a7c1c452fd49dcbdc5480dab657
  • alt-php54-recode-5.4.45-202.el8.x86_64.rpm
    sha:dd49400a8374b449a5658475616f64a3445518e8205e21987d498cbc34dbf4d1
  • alt-php54-snmp-5.4.45-202.el8.x86_64.rpm
    sha:471b34a494ccc27a2493f529659f20e7467568d7e1828633ba6a02a94c74ed0c
  • alt-php54-soap-5.4.45-202.el8.x86_64.rpm
    sha:ad2173c02131a45b7d418b12cd3fc1284bdb58179dca393eef2d0d2dc09c7ca8
  • alt-php54-sybase-5.4.45-202.el8.x86_64.rpm
    sha:d8b557fc668f0811df8ceb727effcee0a3b50db4b77dbb6f137b8eba1669fc59
  • alt-php54-tidy-5.4.45-202.el8.x86_64.rpm
    sha:a75a5b1e00be15decec83afa54b73a3eb4a7e4857b57ac30933a14e0a52b3f33
  • alt-php54-xml-5.4.45-202.el8.x86_64.rpm
    sha:f86c592214143c69d2a09473a6654e2e603ffcc5540c661dbc60b20ef904a0c8
  • alt-php54-xmlrpc-5.4.45-202.el8.x86_64.rpm
    sha:2a98544063b6867d723d25bbba42ba92f8f5e07940d258454cac7181078aa33d
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.