Projects
home:rottame:vhosts-ng:php80
php8
php8-CVE-2026-126714.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php8-CVE-2026-126714.patch of Package php8
From 41c0941ae27d1033129e0e09ce3af034ffee86ba Mon Sep 17 00:00:00 2001 From: Ilija Tovilo <ilija.tovilo@me.com> Date: Wed, 11 Nov 2026 16:53:47 +0100 Subject: [PATCH] Fix GHSA-fm2m-fjf5-v3cp: RCE via corrupted session file If the session write is interrupted, and the previous session file wasn't truncated, we can end up with two partial sessions concatenated together. The approximate location of failure may be attacker-controllable in threaded environments if another thread causes the process to _exit(). --- ext/session/mod_files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: php-8.0.30/ext/session/mod_files.c =================================================================== --- php-8.0.30.orig/ext/session/mod_files.c +++ php-8.0.30/ext/session/mod_files.c @@ -238,9 +238,9 @@ static int ps_files_write(ps_files *data return FAILURE; } - /* Truncate file if the amount of new data is smaller than the existing data set. */ - if (ZSTR_LEN(val) < data->st_size) { - php_ignore_value(ftruncate(data->fd, 0)); + if (ftruncate(data->fd, 0) != 0) { + php_error_docref(NULL, E_WARNING, "ftruncate() failed: %s (%d)", strerror(errno), errno); + return FAILURE; } #ifdef HAVE_PWRITE
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.