[php-src] Issue #24894: [SECURITY] BUG-069: Memory Safety - Null Pointer Dereference
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:50:50 +0000 |
| Subject: | [php-src] Issue #24894: [SECURITY] BUG-069: Memory Safety - Null Pointer Dereference | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253349@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24894
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-069
**Category:** Memory Safety
**Subcategory:** Null Pointer Dereference
**Severity:** High
**CWE:** CWE-476
**CVSS Score:** 6.5
**File:**
main/streams/xp_socket.c
**Line:** multiple
**Status:** UNFIXED
**Verified:** False
### Description
Missing NULL pointer check after emalloc()/malloc() call. Dereferencing potentially NULL pointer
causes segmentation fault.
### Impact
Denial of service (crash), potential information disclosure.
### Remediation
Add NULL check after every memory allocation before dereferencing the pointer.
### Exploitability
Local or remote depending on context
### Source
- Repository: https://github.com/php/php-src/
- Branch: master
- Analysis Date: 2026-10-27T16:38:37.937347Z
---
*Auto-generated from static security analysis of php-src.*
*Total bugs found: 161*