[php-src] Issue #24925: [SECURITY] BUG-100: Memory Safety - Memory Leak - Allocation Without Free
| From: | Codeleafly | Date: | Wed, 28 Oct 2026 01:51:15 +0000 |
| Subject: | [php-src] Issue #24925: [SECURITY] BUG-100: Memory Safety - Memory Leak - Allocation Without Free | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-253379@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/24925
Author: Codeleafly
## 🐛 Security Bug Report
**Bug ID:** BUG-100
**Category:** Memory Safety
**Subcategory:** Memory Leak - Allocation Without Free
**Severity:** Medium
**CWE:** CWE-401
**CVSS Score:** 4.5
**File:**
main/streams/streams.c
**Line:** multiple
**Status:** UNFIXED
**Verified:** False
### Description
Memory allocated via emalloc()/malloc() may not be freed on all code paths (error conditions, early
returns).
### Impact
Denial of service via memory exhaustion, information disclosure.
### Remediation
Ensure all allocation paths have corresponding free() calls. Use cleanup handlers/goto error
pattern.
### Exploitability
Local or remote via repeated requests
### 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*