Release date:
2026-10-08 09:07:03 UTC
Description:
* SECURITY UPDATE: various packet overreads in the mysqlnd wire protocol
- debian/patches/php-7.4-CVE-2025-1218.patch: backport upstream commit
114dbb7436 in ext/mysqlnd/ - the packet readers decoded fields out of a
server response before checking that the packet still held enough bytes,
so a malicious or compromised MySQL server could make the client read
past the end of the packet buffer. BAIL_IF_NO_MORE_DATA, which only
noticed an overread after it happened, is replaced by
BAIL_IF_NOT_ENOUGH_DATA_EX(n); php_mysqlnd_net_field_length() and its
_ll variant take a remaining_size argument and reject length encodings
whose payload is not fully present; the auth-plugin-name branches use
memchr() instead of trusting a NUL terminator; and the prepared-statement
TIME/DATE/DATETIME readers stop decoding fixed offsets out of a shorter
declared length. The mysqlnd_ps.c hunk is a leak fix on the newly
reachable prepare-EOF failure path, and the prepare_read /
sha256_pk_request_response_read hunks are hardening only, not
memory-safety fixes. Also carries upstream's fake_server.inc additions
and 38 regression tests, adapted for PHP 7.4 (see the patch header).
- Also fixes a pre-existing use-after-free on the row-reader failure path.
The CVE-2024-8929 backport added error loops in the binary- and
text-protocol row readers that zval_ptr_dtor() every field decoded so far
and return FAIL without clearing the zvals, so the result set frees the
same zvals again when it is torn down. The loops were already reachable
before this change; the new too-short TIME/DATE/DATETIME check adds a
second way in. All 3 sites now clear the zval after freeing it.
Confirmed under AddressSanitizer with the Zend allocator disabled:
heap-use-after-free in mysqlnd_result_buffered_zval free_result before,
clean after, on both 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; php-8.1 is not affected.
- CVE-2025-1218
Updated packages:
-
alt-php74_7.4.33-80_amd64.deb
sha:360b28a0f6634ff8c3f5af220fcf72cf14b9d243
-
alt-php74-bcmath_7.4.33-80_amd64.deb
sha:61a56efaad7350dd3a46cda6a92b25a2e1e9056f
-
alt-php74-cli_7.4.33-80_amd64.deb
sha:6c244ce9be768d80e7727b4a4e9358610b24b44e
-
alt-php74-common_7.4.33-80_amd64.deb
sha:0f86c6a44d544a3baaf9b2a833913768cc5b9adc
-
alt-php74-dba_7.4.33-80_amd64.deb
sha:f06d5cdc0deffd224576d6353302e040e5637e27
-
alt-php74-dev_7.4.33-80_amd64.deb
sha:adc420f4660e1c9b19d7b1943f1da620f74b0ff7
-
alt-php74-enchant_7.4.33-80_amd64.deb
sha:1193cc2ea2e61dc80dc860dc99621e77d850e06c
-
alt-php74-firebird_7.4.33-80_amd64.deb
sha:9a0d4d616b2e9ea297ad6ab1f881c53bfe3747e8
-
alt-php74-gd_7.4.33-80_amd64.deb
sha:bc4d1851e5444ec7f3bf7853de46b66f2f5c93ec
-
alt-php74-imap_7.4.33-80_amd64.deb
sha:72d1b0f65b439f62773bdfefd20eb2671633a34e
-
alt-php74-intl_7.4.33-80_amd64.deb
sha:2700934cf7f5b39322b1d63ea0c154b76c8a55eb
-
alt-php74-ldap_7.4.33-80_amd64.deb
sha:778539909ac486db22bb3447974420cc3f208336
-
alt-php74-mbstring_7.4.33-80_amd64.deb
sha:d4bff724262e1baca5e38dcef4fc978361b2c8d7
-
alt-php74-mysqlnd_7.4.33-80_amd64.deb
sha:e0336f1e8df8fd01194728f962f2c3a164b1a496
-
alt-php74-odbc_7.4.33-80_amd64.deb
sha:e28aa9e5141e781cd6e571cc21365f4a6a9314db
-
alt-php74-opcache_7.4.33-80_amd64.deb
sha:aa303100be3ced97fd529193a82e7049a0b9625b
-
alt-php74-pdo_7.4.33-80_amd64.deb
sha:3c259ad8c7a95a2aea04d1a970f0807f2d105b37
-
alt-php74-pgsql_7.4.33-80_amd64.deb
sha:a28b669d5aa4c29198254140c272fb3d79154d96
-
alt-php74-php-fpm_7.4.33-80_amd64.deb
sha:189ba9a3e3af04f864bc3e6afa8b59f439138125
-
alt-php74-process_7.4.33-80_amd64.deb
sha:755e5019d54343b78f2bc34f800f57a34ee5d134
-
alt-php74-pspell_7.4.33-80_amd64.deb
sha:21b0cb6a4a5b8ee67ecae3276f1e15f764df1265
-
alt-php74-snmp_7.4.33-80_amd64.deb
sha:ff4a7e555318f56f10070ca543eda90f251addb9
-
alt-php74-soap_7.4.33-80_amd64.deb
sha:17d6ca668193ac4a12c6a8dc6e40ea44e0997696
-
alt-php74-sodium_7.4.33-80_amd64.deb
sha:b5e6a5da106c30badfe70380648531ceaaa83173
-
alt-php74-tidy_7.4.33-80_amd64.deb
sha:2fe88002532495b78a91b3408c4dc20ea74d7173
-
alt-php74-xml_7.4.33-80_amd64.deb
sha:9cbd9798de1821fcae115fb517cdacc5b7dc4576
-
alt-php74-xmlrpc_7.4.33-80_amd64.deb
sha:36209424d7a521d3b54b301ae703535dd17ea943
Notes:
This page is generated automatically and has not been checked for errors. For clarification or
corrections please contact the
CloudLinux Packaging Team.