1 vulnerabilities classified as CWE-761 (释放一个不在缓冲区起始位置的指针). AI Chinese analysis included.
CWE-761 represents a critical memory management weakness where software attempts to deallocate heap memory using a pointer that does not reference the beginning of the allocated buffer. This error typically arises when developers manipulate pointers, such as incrementing them to traverse data structures, and subsequently pass the modified address to the free function. Exploitation of this flaw can lead to immediate application crashes, heap corruption, or the modification of critical program variables, potentially enabling arbitrary code execution if the memory allocator’s internal state is compromised. To prevent this vulnerability, developers must ensure that only the original base pointers returned by allocation functions like malloc are passed to free. Implementing strict pointer tracking mechanisms and avoiding arithmetic operations on allocation pointers before deallocation are essential practices for maintaining memory integrity and preventing heap-based exploits.
#define SUCCESS (1) #define FAILURE (0) int contains_char(char c){ char *str; str = (char*)malloc(20*sizeof(char)); strcpy(str, "Search Me!"); while( *str != NULL){ if( *str == c ){ /* matched char, free string and return success */ free(str); return SUCCESS; } /* didn't match yet, increment pointer and try next char */ str = str + 1; } /* we did not match the char in the string, free mem and return failure */ free(str); return FAILURE; }#define SUCCESS (1) #define FAILURE (0) int cointains_char(char c){ char *str; int i = 0; str = (char*)malloc(20*sizeof(char)); strcpy(str, "Search Me!"); while( i < strlen(str) ){ if( str[i] == c ){ /* matched char, free string and return success */ free(str); return SUCCESS; } /* didn't match yet, increment pointer and try next char */ i = i + 1; } /* we did not match the char in the string, free mem and return failure */ free(str); return FAILURE; }char **ap, *argv[10], *inputstring; for (ap = argv; (*ap = strsep(&inputstring, " \t")) != NULL;) if (**ap != '\0') if (++ap >= &argv[10]) break; /.../ free(ap[4]);| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2025-47749 | Fuji Electric V-SFT 安全漏洞 — V-SFT | 7.8 | High | 2025-05-19 |
Vulnerabilities classified as CWE-761 (释放一个不在缓冲区起始位置的指针) represent 1 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.