9 vulnerabilities classified as CWE-762 (不匹配的内存管理例程). AI Chinese analysis included.
CWE-762 represents a critical memory management weakness where developers incorrectly pair allocation and deallocation routines, such as freeing stack-allocated memory or using mismatched heap functions like malloc and free. This inconsistency typically leads to severe runtime errors, including heap corruption, double-free vulnerabilities, or application crashes, which attackers can exploit to execute arbitrary code or cause denial of service. To prevent this, developers must strictly adhere to consistent memory management practices, ensuring that every allocation function has a corresponding, compatible deallocation routine. Utilizing static analysis tools and automated memory sanitizers during the development lifecycle helps identify these mismatches early. Furthermore, adopting higher-level languages with automatic garbage collection or employing smart pointers in C++ can significantly reduce the risk of manual memory management errors, thereby enhancing overall software stability and security.
void foo(){ BarObj *ptr = new BarObj() /* do some work with ptr here */ ... free(ptr); }void foo(){ BarObj *ptr = new BarObj() /* do some work with ptr here */ ... delete ptr; }class A { void foo(); }; void A::foo(){ int *ptr; ptr = (int*)malloc(sizeof(int)); delete ptr; }| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2025-48431 | Apache Thrift: Specially crafted input can crash a c_glib Thrift server with invalid pointer error. — Apache Thrift | 7.5AI | HighAI | 2026-04-28 |
| CVE-2025-11015 | OGRECave Ogre OgreSTBICodec.cpp encode mismatched memory management routines — Ogre | 5.3 | Medium | 2025-09-26 |
| CVE-2025-48755 | Rust 安全漏洞 — sdk | 2.9 | Low | 2025-05-24 |
| CVE-2025-47737 | Trailer 安全漏洞 — trailer | 2.9 | Low | 2025-05-09 |
| CVE-2025-20189 | Cisco IOS XE 安全漏洞 — Cisco IOS XE Software | 7.4 | High | 2025-05-07 |
| CVE-2024-4853 | Mismatched Memory Management Routines in editcap — editcap | 3.6 | Low | 2024-05-14 |
| CVE-2024-2955 | Mismatched Memory Management Routines in Wireshark — Wireshark | 7.8 | High | 2024-03-26 |
| CVE-2023-41056 | Redis vulnerable to integer overflow in certain payloads — redis | 8.1 | High | 2024-01-10 |
| CVE-2023-3648 | Mismatched Memory Management Routines in Wireshark — Wireshark | 5.3 | Medium | 2023-07-14 |
Vulnerabilities classified as CWE-762 (不匹配的内存管理例程) represent 9 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.