PHP-FPM epoll use-after-free can lead to local privilege escalation. When catch_workers_output is enabled and the epoll event backend is used, the PHP...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSphp5 |
< 5.5.9+dfsg-1ubuntu4.29+esm19→ 5.5.9+dfsg-1ubuntu4.29+esm19 |
5.5.9+dfsg-1ubuntu4.29+esm19 |
| Ubuntu:Pro:16.04:LTSphp7.0 |
< 7.0.33-0ubuntu0.16.04.16+esm23→ 7.0.33-0ubuntu0.16.04.16+esm23 |
7.0.33-0ubuntu0.16.04.16+esm23 |
| Ubuntu:Pro:18.04:LTSphp7.2 |
< 7.2.24-0ubuntu0.18.04.17+esm15→ 7.2.24-0ubuntu0.18.04.17+esm15 |
7.2.24-0ubuntu0.18.04.17+esm15 |
| Ubuntu:Pro:20.04:LTSphp7.4 |
< 7.4.3-4ubuntu2.29+esm6→ 7.4.3-4ubuntu2.29+esm6 |
7.4.3-4ubuntu2.29+esm6 |
| Ubuntu:22.04:LTSphp8.1 |
< 8.1.2-1ubuntu2.29→ 8.1.2-1ubuntu2.29 |
8.1.2-1ubuntu2.29 |
| Ubuntu:24.04:LTSphp8.3 |
< 8.3.6-0ubuntu0.24.04.14→ 8.3.6-0ubuntu0.24.04.14 |
8.3.6-0ubuntu0.24.04.14 |
| Ubuntu:26.10php8.5 |
< 8.5.9-0ubuntu2.2→ 8.5.9-0ubuntu2.2 |
8.5.9-0ubuntu2.2 |
| Ubuntu:26.04:LTSphp8.5 |
< 8.5.4-0ubuntu1.6→ 8.5.4-0ubuntu1.6 |
8.5.4-0ubuntu1.6 |
Original description The description as published by the source.
PHP-FPM epoll use-after-free can lead to local privilege escalation. When catch_workers_output is enabled and the epoll event backend is used, the PHP-FPM master can close a worker's output pipe in fpm_child_close() without removing the associated event, and the delayed cleanup can free the worker record while its epoll registration is still active. A later event is then dispatched through a pointer into freed memory. A local attacker who can execute PHP code in an FPM worker can crash the master or execute code with its privileges, commonly root. catch_workers_output is disabled by default but enabled in the official PHP-FPM Docker images. This issue affects PHP versions from 8.1.20 through 8.1.34, from 8.2.7 before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report github.com