[CLSA-2026:1791459303] alt-php54: Fix of CVE-2025-1218
Type:
security
Severity:
Important
Release date:
2026-10-08 11:35:16 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.el7.x86_64.rpm
    sha:2ee9ae4c0f62260307cdd377f4f7c3a0a7bd5a888ae43d8f9b24711a5ed2ac09
  • alt-php54-bcmath-5.4.45-202.el7.x86_64.rpm
    sha:1795e2c27ee35dd68052aff33eefc44e58de1e43c80aecb9ae52facf3653c7af
  • alt-php54-cli-5.4.45-202.el7.x86_64.rpm
    sha:aa0a25a7eb300102eabcfacf20e16b35db8388fffb8a5e2376be79f2ee38686e
  • alt-php54-common-5.4.45-202.el7.x86_64.rpm
    sha:0ec8d5ef561cf0613f220f527c701cfd88e8de8151547f8eaf435246d7874e67
  • alt-php54-dba-5.4.45-202.el7.x86_64.rpm
    sha:feb4c7c43d4eae150b4dc25edb1d8500aee0d06f13ecf95fb463b6e6708a5d22
  • alt-php54-dbx-5.4.45-202.el7.x86_64.rpm
    sha:0bbe82fa7bb844bc9cc821902c3f9cf9044f6909b4af2f1e08d1279ff628431f
  • alt-php54-devel-5.4.45-202.el7.x86_64.rpm
    sha:a8f071036ba7b5d20cd14a6ba0b1adb90ca33a0f184417dc53dab71706147776
  • alt-php54-enchant-5.4.45-202.el7.x86_64.rpm
    sha:ffa432fdfd700e37c9abaa9af63c4aaf9c1f154dabcab90ec8f6231cf6a0195b
  • alt-php54-firebird-5.4.45-202.el7.x86_64.rpm
    sha:f5ea8f52bf9d467e4e0211ff1dbe2db3449cfd928f2f5787f41f6c55d95cb145
  • alt-php54-gd-5.4.45-202.el7.x86_64.rpm
    sha:a432fa78bba63b0347c61bf1a23f1b20c3c4b12b8c0aa91c1f0495344748339a
  • alt-php54-imap-5.4.45-202.el7.x86_64.rpm
    sha:81c589ffc9d57d04033c1655d1095ddb957740e9c593fdf18379bd5f3a7e2354
  • alt-php54-intl-5.4.45-202.el7.x86_64.rpm
    sha:1ac7a66de038653829d756eddafcc752e79c0d18801f154dbb9a55a98c06a55a
  • alt-php54-ldap-5.4.45-202.el7.x86_64.rpm
    sha:ffda375a6d365e0ef5c929eb3b7d39665df749461716cf00fdc5455e83e55700
  • alt-php54-mbstring-5.4.45-202.el7.x86_64.rpm
    sha:889f78dea97a833273cbbadddcbda8eecda566d5fe423c719675d4e536609bb1
  • alt-php54-mcrypt-5.4.45-202.el7.x86_64.rpm
    sha:4fa8fd34580dd9cd7fd15b6a54ef81c06ecf077562eaba0edef1964cf093a3d8
  • alt-php54-mssql-5.4.45-202.el7.x86_64.rpm
    sha:167d808c4b6880b7faae1cc616c6cee0477c82db05dcb3d672b8d9cf9d807036
  • alt-php54-mysqlnd-5.4.45-202.el7.x86_64.rpm
    sha:35767c1dfb602bf5758fc752d2f6e1d113cb96a213d3c1f342f25965900f13b2
  • alt-php54-odbc-5.4.45-202.el7.x86_64.rpm
    sha:8acc7af987f4867f159005222d35d8ac9e3eb67e8c7c7100eaf6494383b9cb60
  • alt-php54-pdo-5.4.45-202.el7.x86_64.rpm
    sha:0fcfb709aa1c62ceeaaa8375604c62667a0a8dcf951e26a670330815aab84aa7
  • alt-php54-pgsql-5.4.45-202.el7.x86_64.rpm
    sha:0dac402b774eef32e279aea5d11d58094cb3b386a7e3fb5eb492bed0f8f81734
  • alt-php54-php-fpm-5.4.45-202.el7.x86_64.rpm
    sha:638c78d0e0420786fbf47d342bf723d2724e3e9a98296353f0892bd3b9173a6a
  • alt-php54-process-5.4.45-202.el7.x86_64.rpm
    sha:551d49e1d502eacadd7709c2891432d99b2e37705aa08c90be94ced98cd77b0a
  • alt-php54-pspell-5.4.45-202.el7.x86_64.rpm
    sha:0c2a05fa087622b59c9c5f26da8ed2f00d30d314c972e1a03d0380b666c34eab
  • alt-php54-recode-5.4.45-202.el7.x86_64.rpm
    sha:1cbb3553ff47a7c0235adb5e47b49dd50723a8e300c4307269e0502154cb1ef6
  • alt-php54-snmp-5.4.45-202.el7.x86_64.rpm
    sha:78ad040fc04848336cfe12904a039a51a05f63e419e7efb0b29021e0e1963073
  • alt-php54-soap-5.4.45-202.el7.x86_64.rpm
    sha:bbcc0f2aa91e1bc70e7a25559fc04d51f7f15183c6e3151c4b0383f3b1191c99
  • alt-php54-sybase-5.4.45-202.el7.x86_64.rpm
    sha:70b3f00e336743fa74b51dceed000cda2496de54b2c8557a0f4ad0705945249f
  • alt-php54-tidy-5.4.45-202.el7.x86_64.rpm
    sha:8a469deee0fe6281405342dbd954f03833a0ec0b2783df945ee7393559620d56
  • alt-php54-xml-5.4.45-202.el7.x86_64.rpm
    sha:74f08b6b70e89158703ae1f317c394899a1b1ea09162349b90aa9aaee08b5169
  • alt-php54-xmlrpc-5.4.45-202.el7.x86_64.rpm
    sha:c6440058513f998e3d19a4127a114a43bae92ad68f8f7959465a30dd1d3945dd
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.