🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
3 messages
3 total messages Started by Peter C Thu, 22 Oct 2026 17:30
Bug#1151659: php8.2-curl: Version 8.2.35-1~deb12u1 fails to load dynamic library
#1713
Author: Peter C
Date: Thu, 22 Oct 2026 17:30
126 lines
5947 bytes
Package: php8.2-curl
Version: 8.2.34-1~deb12u1
Severity: important
X-Debbugs-Cc: pch13@myzel.net, debian-lts@lists.debian.org

Dear Maintainer,


   * What led up to the situation?

     Updating to the version with the security fix, 8.2.35-1~deb12u1

   * What exactly did you do (or not do) that was effective (or ineffective)?
	  
     Had to downgrade the packages 8.2.34-1~deb12u1

   * What was the outcome of this action?

     The updated module produces the folling error in apache log:

	  AH00171: Graceful restart requested, doing restart
	  PHP Warning:  PHP Startup: Unable to load dynamic library 'curl.so'
	  (tried: /usr/lib/php/20220829/curl.so
	  (/usr/lib/php/20220829/curl.so: undefined symbol:
	  smart_str_ferealloc), /usr/lib/php/20220829/curl.so.so
	  (/usr/lib/php/20220829/curl.so.so: cannot open shared object file:
	  No such file or directory)) in Unknown on line 0

	  All of the following modules affected: curl, dom, exif, fileinfo,
	  iconv, mbstring, phar, readline, shmop, simplexml, sockets,
	  tokenizer, xmlreader, xmlwriter, xsl. Different symbols though.

   * What outcome did you expect instead?

     That the symbols are resolved and no runtime errors in php



-- Package-specific info:
==== Additional PHP 8.2 information ====

++++ PHP @PHP_VERSION SAPI (php8.2query -S): ++++

++++ PHP 8.2 Extensions (php8.2query -M -v): ++++

++++ Configuration files: ++++
**** /etc/php/8.2/mods-available/curl.ini ****
extension=curl.so


-- System Information:
Debian Release: 12.15
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-47-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages php8.2-curl depends on:
ii  libc6          2.36-9+deb12u14
ii  libcurl4       7.88.1-10+deb12u15
ii  php-common     2:93
ii  php8.2-common  8.2.34-1~deb12u1
ii  ucf            3.0043+nmu1+deb12u1

php8.2-curl recommends no packages.

php8.2-curl suggests no packages.

Versions of packages php8.2-common depends on:
ii  libc6       2.36-9+deb12u14
ii  libffi8     3.4.4-1
ii  libssl3     3.0.22-1~deb12u1
ii  php-common  2:93
ii  ucf         3.0043+nmu1+deb12u1

Versions of packages php8.2-cli depends on:
ii  libargon2-1      0~20171227-0.3+deb12u1
ii  libc6            2.36-9+deb12u14
ii  libedit2         3.1-20221030-2
ii  libmagic1        1:5.44-3
ii  libpcre2-8-0     10.42-1+deb12u2
ii  libsodium23      1.0.18-1+deb12u1
ii  libssl3          3.0.22-1~deb12u1
ii  libxml2          2.9.14+dfsg-1.3~deb12u6
ii  media-types      10.0.0
ii  mime-support     3.66
ii  php8.2-common    8.2.34-1~deb12u1
ii  php8.2-opcache   8.2.34-1~deb12u1
ii  php8.2-readline  8.2.34-1~deb12u1
ii  tzdata           2026c-0+deb12u1
ii  ucf              3.0043+nmu1+deb12u1
ii  zlib1g           1:1.2.13.dfsg-1

Versions of packages php8.2-cli suggests:
pn  php-pear  <none>

Versions of packages libapache2-mod-php8.2 depends on:
ii  apache2-bin [apache2-api-20120211]  2.4.68-1~deb12u1
ii  libargon2-1                         0~20171227-0.3+deb12u1
ii  libc6                               2.36-9+deb12u14
ii  libmagic1                           1:5.44-3
ii  libpcre2-8-0                        10.42-1+deb12u2
ii  libsodium23                         1.0.18-1+deb12u1
ii  libssl3                             3.0.22-1~deb12u1
ii  libxml2                             2.9.14+dfsg-1.3~deb12u6
ii  media-types                         10.0.0
ii  mime-support                        3.66
ii  php8.2-cli                          8.2.34-1~deb12u1
ii  php8.2-common                       8.2.34-1~deb12u1
ii  php8.2-opcache                      8.2.34-1~deb12u1
ii  tzdata                              2026c-0+deb12u1
ii  ucf                                 3.0043+nmu1+deb12u1
ii  zlib1g                              1:1.2.13.dfsg-1

Versions of packages libapache2-mod-php8.2 recommends:
ii  apache2  2.4.68-1~deb12u1

Versions of packages libapache2-mod-php8.2 suggests:
pn  php-pear  <none>

-- no debconf information
Bug#1151659: php8.2-curl: Version 8.2.35-1~deb12u1 fails to load dynamic library
#2197
Author: Kevin Koster
Date: Mon, 26 Oct 2026 01:00
30 lines
3370 bytes
I encountered this same issue with many PHP modules failing to load
after updating PHP packages including php8.2-curl and
libapache2-mod-php8.2 from 8.2.34-1~deb12u1 to 8.2.35-1~deb12u1 on
Devuan Daedalus (based on Debian 12 (Bookworm)). Also on a Debian 13
(Trixie) system after upgrading libapache2-mod-php8.4 (etc.) from
8.4.26-1~deb13u1 to 8.4.27-1~deb13u1.

The libapache2-mod-php package's post-install script
(libapache2-mod-php.postinst.extra) triggers an Apache "restart" action
via the apache2_reload function in
/usr/share/apache2/apache2-maintscript-helper after the updated package
is installed. This appears to be equivalent to running "apache2ctl
restart".

However Apache still continues to run the old PHP module already loaded
in memory, as seen in the output of the "phpinfo()" function run from a
PHP script accessed via HTTP, which still reports the previous version
number and build date. But Apache does attempt to reload PHP's own
modules, which are for the new Apache PHP module and therefore fail to
load due to missing symbols in the old Apache PHP module that's still
running.

Running "apache2ctl stop", then "apache2ctl start" causes the Apache PHP
module to be truely reloaded, and "phpinfo()" then reports the
newly-installed PHP version as well as now showing details of the PHP
modules that were failing to load before. I would guess that before this
manual stop/start is done, the server also remains vulnerable to the
PHP2Shell exploit.

Kevin Koster.
Bug#1151659: php8.2-curl: Version 8.2.35-1~deb12u1 fails to load dynamic library
#5663
Author: Kevin Koster
Date: Mon, 23 Nov 2026 02:50
100 lines
7371 bytes
On Mon, 26 Oct 2026 11:40:42 +1100
Kevin Koster <contact@ombertech.com> wrote:

> I encountered this same issue with many PHP modules failing to load
> after updating PHP packages including php8.2-curl and
> libapache2-mod-php8.2 from 8.2.34-1~deb12u1 to 8.2.35-1~deb12u1 on
> Devuan Daedalus (based on Debian 12 (Bookworm)). Also on a Debian 13
> (Trixie) system after upgrading libapache2-mod-php8.4 (etc.) from
> 8.4.26-1~deb13u1 to 8.4.27-1~deb13u1.

Although not causing any errors from enabled modules this time, the same
root issue happened again on both these systems when upgrading PHP
packages from 8.2.35-1~deb12u1 to 8.2.36-1~deb12u1, and
8.4.27-1~deb13u1 to 8.4.28-1~deb13u1. Apache continued running the old
PHP module version.

> The libapache2-mod-php package's post-install script
> (libapache2-mod-php.postinst.extra) triggers an Apache "restart"
> action via the apache2_reload function in
> /usr/share/apache2/apache2-maintscript-helper after the updated
> package is installed. This appears to be equivalent to running
> "apache2ctl restart".

I was wrong, it's supposed to run "invoke-rc.d apache2 restart"
after installation, which the Apache logs show causes it to do a
"graceful stop" after receiving SIGWINCH when run manually, and will
reload the PHP module. But for some reason this doesn't happen - the
Apache logs show no stop event happened when the package was updated.

> However Apache still continues to run the old PHP module already
> loaded in memory, as seen in the output of the "phpinfo()" function
> run from a PHP script accessed via HTTP, which still reports the
> previous version number and build date. But Apache does attempt to
> reload PHP's own modules, which are for the new Apache PHP module and
> therefore fail to load due to missing symbols in the old Apache PHP
> module that's still running.

Until "apache2ctl stop" then "apache2ctl start" were run manually,
"phpinfo()" continued to show PHP versions 8.2.35 and 8.4.27 were
running on the web servers after the newer packages were installed.

Here is the log of unattended-upgrades installing the PHP 8.4.28
packages on Debian 13 (Trixie):
------------------------------------------------------------------------
Log started: 2026-11-21  06:45:42
apt-listchanges: Reading changelogs...
apt-listchanges: Reading changelogs...
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Readi>
Preparing to unpack .../0-php8.4-xml_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-xml (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../1-php8.4-readline_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-readline (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../2-php8.4-opcache_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-opcache (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../3-php8.4-mbstring_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-mbstring (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../4-php8.4-curl_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-curl (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../5-libapache2-mod-php8.4_8.4.28-1~deb13u1_amd64.deb ...
Unpacking libapache2-mod-php8.4 (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../6-php8.4-cli_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-cli (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Preparing to unpack .../7-php8.4-common_8.4.28-1~deb13u1_amd64.deb ...
Unpacking php8.4-common (8.4.28-1~deb13u1) over (8.4.27-1~deb13u1) ...
Setting up php8.4-common (8.4.28-1~deb13u1) ...
Setting up php8.4-curl (8.4.28-1~deb13u1) ...
Setting up php8.4-xml (8.4.28-1~deb13u1) ...
Setting up php8.4-opcache (8.4.28-1~deb13u1) ...
Setting up php8.4-readline (8.4.28-1~deb13u1) ...
Setting up php8.4-mbstring (8.4.28-1~deb13u1) ...
Setting up php8.4-cli (8.4.28-1~deb13u1) ...
Setting up libapache2-mod-php8.4 (8.4.28-1~deb13u1) ...
libapache2-mod-php8.4: not switching MPM - already enabled
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for php8.4-cli (8.4.28-1~deb13u1) ...
Processing triggers for libapache2-mod-php8.4 (8.4.28-1~deb13u1) ...
Log ended: 2026-11-21  06:46:31
------------------------------------------------------------------------

"phpinfo()" still showed "PHP Version 8.4.27" two days later, before the
manual stop/start of Apache was done, which should have been done
automatically at the "Setting up libapache2-mod-php8.4" step. The Apache
logs show no restart happened on 2026-11-21 around 06:45. I installed
the previous PHP package update (with the PHP2Shell bugfixes) manually
using Aptitude, so it's not just an issue with unattended-upgrades.

Note that the "libapache2-mod-php8.4: not switching MPM - already
enabled" message suggests that the libapache2-mod-php.postinst.extra
script has been run, but the Apache restart part at the end seems to
have failed. Or Apt doesn't run it with the "triggered" command?

It would nice not to have PHP modules on Apache all potentially break
any time PHP is automatically updated. Not to mention that it leaves the
server still vulnerable to the security issues that have been fixed in
the update, so potentially still vulnerable to PHP2Shell if no manual
Apache stop/start had been run since then.
-- 
Kevin Koster <contact@ombertech.com>

Kevin Koster.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads