Exploit databaseDownload repository ZIP
GH-68a106f50640b22c0bb32b6b806a797e
ahallais/php82-ubuntu2404-backport
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files53
ahallais/php82-ubuntu2404-backportRevision 7995f69c237f
- ↑..Parent directory
- tests/
- .gdbinit
- .phpdbginit
- CREDITS
- Makefile.frag
- config.m4
- config.w32
- create-test.php
- phpdbg.1.in
- phpdbg.c
- phpdbg.h
- phpdbg.init.d
- phpdbg.stub.php
- phpdbg_arginfo.h
- phpdbg_bp.c
- phpdbg_bp.h
- phpdbg_break.c
- phpdbg_break.h
- phpdbg_btree.c
- phpdbg_btree.h
- phpdbg_cmd.c
- phpdbg_cmd.h
- phpdbg_frame.c
- phpdbg_frame.h
- phpdbg_help.c
- phpdbg_help.h
- phpdbg_info.c
- phpdbg_info.h
- phpdbg_io.c
- phpdbg_io.h
- phpdbg_lexer.h
- phpdbg_lexer.l
- phpdbg_list.c
- phpdbg_list.h
- phpdbg_out.c
- phpdbg_out.h
- phpdbg_parser.y
- phpdbg_print.c
- phpdbg_print.h
- phpdbg_prompt.c
- phpdbg_prompt.h
- phpdbg_set.c
- phpdbg_set.h
- phpdbg_sigsafe.c
- phpdbg_sigsafe.h
- phpdbg_utils.c
- phpdbg_utils.h
- phpdbg_watch.c
- phpdbg_watch.h
- phpdbg_win.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
sury/build/php8.2-8.2.35/sapi/phpdbg/phpdbg_sigsafe.c
C · 1,596 bytes#include "phpdbg_sigsafe.h"
#include "phpdbg.h"
ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
#define STR(x) #x
#define EXP_STR(x) STR(x)
static void* zend_mm_mem_alloc(zend_mm_storage *storage, size_t size, size_t alignment) {
if (EXPECTED(size <= PHPDBG_SIGSAFE_MEM_SIZE && !PHPDBG_G(sigsafe_mem).allocated)) {
PHPDBG_G(sigsafe_mem).allocated = 1;
return (void *) (((size_t) PHPDBG_G(sigsafe_mem).mem & ~(alignment - 1)) + alignment);
}
zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Tried to allocate more than " EXP_STR(PHPDBG_SIGSAFE_MEM_SIZE) " bytes from stack memory in signal handler ... bailing out of signal handler\n"));
if (*EG(bailout)) {
LONGJMP(*EG(bailout), FAILURE);
}
zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Bailed out without a bailout address in signal handler!\n"));
return NULL;
}
static void zend_mm_mem_free(zend_mm_storage *storage, void *ptr, size_t size) {
}
void phpdbg_set_sigsafe_mem(char *buffer) {
phpdbg_signal_safe_mem *mem = &PHPDBG_G(sigsafe_mem);
const zend_mm_handlers phpdbg_handlers = {
zend_mm_mem_alloc,
zend_mm_mem_free,
NULL,
NULL,
};
mem->mem = buffer;
mem->allocated = 0;
mem->heap = zend_mm_startup_ex(&phpdbg_handlers, NULL, 0);
mem->old_heap = zend_mm_set_heap(mem->heap);
}
zend_mm_heap *phpdbg_original_heap_sigsafe_mem(void) {
return PHPDBG_G(sigsafe_mem).old_heap;
}
void phpdbg_clear_sigsafe_mem(void) {
zend_mm_set_heap(phpdbg_original_heap_sigsafe_mem());
PHPDBG_G(sigsafe_mem).mem = NULL;
}
bool phpdbg_active_sigsafe_mem(void) {
return !!PHPDBG_G(sigsafe_mem).mem;
}