目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1000

100.0%

CWE-468 不正确的指针放大 类漏洞列表 2

CWE-468 不正确的指针放大 类弱点 2 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-468 是 C/C++ 中的指针算术错误漏洞,源于开发者误用内存地址运算。由于指针算术会自动按数据类型大小进行缩放,若开发者未考虑此机制,可能导致计算出的内存偏移量错误,进而访问非法或相邻内存区域。攻击者可利用此缺陷触发缓冲区溢出或越界读取,造成程序崩溃或执行任意代码。开发者应仔细验证指针运算逻辑,确保缩放因子正确,并优先使用安全库或静态分析工具检测此类错误。

MITRE CWE 官方描述
CWE:CWE-468 不正确的指针缩放(Incorrect Pointer Scaling) 英文:在 C 和 C++ 中,由于数学运算在隐式缩放时的语义,开发者可能会经常因意外而引用错误的内存地址。
常见影响 (1)
Confidentiality, IntegrityRead Memory, Modify Memory
Incorrect pointer scaling will often result in buffer overflow conditions. Confidentiality can be compromised if the weakness is in the context of a buffer over-read or under-read.
缓解措施 (3)
Architecture and DesignUse a platform with high-level memory abstractions.
ImplementationAlways use array indexing instead of direct pointer manipulation.
Architecture and DesignUse technologies for preventing buffer overflows.
代码示例 (1)
This example attempts to calculate the position of the second byte of a pointer.
int *p = x; char * second_char = (char *)(p + 1);
Bad · C
CVE ID标题CVSS风险等级Published
CVE-2024-1915 Mitsubishi Electric MELSEC-Q和MELSEC-L 安全漏洞 — MELSEC-Q Series Q03UDECPU 9.8 Critical2024-03-15
CVE-2024-0802 Mitsubishi Electric MELSEC-Q和MELSEC-L 安全漏洞 — MELSEC-Q Series Q03UDECPU 9.8 Critical2024-03-14

CWE-468(不正确的指针放大) 是常见的弱点类别,本平台收录该类弱点关联的 2 条 CVE 漏洞。