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

目标: 1000 元 · 已筹: 1336 元

100%

CWE-416 释放后使用 类漏洞列表 3703

CWE-416 释放后使用 类弱点 3703 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-416 释放后使用是一种内存安全漏洞,指程序在释放内存后仍引用该内存区域。攻击者常利用此缺陷,通过重新分配内存并控制其内容,诱导程序执行恶意代码或读取敏感数据,从而引发远程代码执行或信息泄露。开发者应避免此类风险,确保在指针置空前彻底解除引用,采用智能指针等自动内存管理机制,并严格验证内存生命周期,防止悬空指针操作。

MITRE CWE 官方描述
CWE:CWE-416 Use After Free 英文:产品在内存被释放后重新使用或引用该内存。在此之后,该内存可能会被重新分配并保存到另一个指针中,而原始指针则指向新分配内存中的某个位置。由于内存“属于”操作新指针的代码,因此使用原始指针的任何操作均不再有效。
常见影响 (4)
Integrity Modify Memory
The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.
Availability DoS: Crash, Exit, or Restart
If chunk consolidation occurs after the use of previously freed data, the process may crash when invalid data is used as chunk information.
Confidentiality Read Memory
Read operations on freed memory can sometimes leak sensitive information instead of causing a crash
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
If malicious data is entered before chunk consolidation can take place, it may be possible to take advantage of a write-what-where primitive to execute arbitrary code. If the newly allocated data happens to hold a class, in C++ for example, various function pointers may be scattered within the heap …
缓解措施 (2)
Architecture and Design Choose a language that provides automatic memory management.
Implementation When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Effectiveness: Defense in Depth
代码示例 (2)
The following example demonstrates the weakness.
#include <stdio.h> #include <unistd.h> #define BUFSIZER1 512 #define BUFSIZER2 ((BUFSIZER1/2) - 8) int main(int argc, char **argv) { char *buf1R1; char *buf2R1; char *buf2R2; char *buf3R2; buf1R1 = (char *) malloc(BUFSIZER1); buf2R1 = (char *) malloc(BUFSIZER1); free(buf2R1); buf2R2 = (char *) malloc(BUFSIZER2); buf3R2 = (char *) malloc(BUFSIZER2); strncpy(buf2R1, argv[1], BUFSIZER1-1); free(buf1R1); free(buf2R2); free(buf3R2); }
Bad · C
The following code illustrates a use after free error:
char* ptr = (char*)malloc (SIZE); if (err) { abrt = 1; free(ptr); } ... if (abrt) { logError("operation aborted before commit", ptr); }
Bad · C
CVE ID 标题 CVSS 风险等级 Published
CVE-2021-20232 GnuTLS 资源管理错误漏洞 — gnutls 9.8 - 2021-03-12
CVE-2021-20231 GnuTLS 资源管理错误漏洞 — gnutls 9.8 - 2021-03-12
CVE-2021-27646 Synology DiskStation Manager 资源管理错误漏洞 — Synology DiskStation Manager (DSM) 9.8 Critical 2021-03-12
CVE-2020-1900 Facebook HHVM 资源管理错误漏洞 — HHVM 9.4 - 2021-03-11
CVE-2021-3403 ytnef 资源管理错误漏洞 — ytnef 7.8 - 2021-03-04
CVE-2020-13558 WebKitGTK 资源管理错误漏洞 — Webkit 8.8 - 2021-03-03
CVE-2020-25632 grub2 资源管理错误漏洞 — grub2 8.2 - 2021-03-03
CVE-2021-22662 FATEK FvDesigner 资源管理错误漏洞 — Fatek FvDesigner 7.8 - 2021-03-03
CVE-2021-20226 Linux kernel 资源管理错误漏洞 — kernel 7.8 - 2021-02-23
CVE-2021-21039 Acrobat Reader DC 资源管理错误漏洞 — Acrobat Reader 7.8 High 2021-02-11
CVE-2021-21041 Acrobat Reader DC 资源管理错误漏洞 — Acrobat Reader 7.8 High 2021-02-11
CVE-2021-21021 Acrobat Reader DC 资源管理错误漏洞 — Acrobat Reader 8.8 - 2021-02-11
CVE-2021-21028 Acrobat Reader DC 资源管理错误漏洞 — Acrobat Reader 8.8 - 2021-02-11
CVE-2021-21033 Acrobat Reader DC 资源管理错误漏洞 — Acrobat Reader 8.8 - 2021-02-11
CVE-2021-21035 Acrobat Reader DC 资源管理错误漏洞 — Acrobat Reader 8.8 - 2021-02-11
CVE-2021-21040 Acrobat Reader DC 资源管理错误漏洞 — Acrobat Reader 7.8 High 2021-02-11
CVE-2021-21061 Adobe Acrobat and Reader DC 资源管理错误漏洞 — Acrobat Reader 3.3 - 2021-02-11
CVE-2020-13548 Adobe Reader 资源管理错误漏洞 — Foxit 8.8 - 2021-02-10
CVE-2020-27280 Delta Electronics ISPSoft 资源管理错误漏洞 — ISPSoft 7.8 - 2021-01-26
CVE-2020-16119 Linux kernel 资源管理错误漏洞 — Linux kernel 6.3 Medium 2021-01-14
CVE-2020-27267 Kepware Kepserverex 缓冲区错误漏洞 — PTC Kepware KEPServerEX 9.8 - 2021-01-13
CVE-2020-27835 Linux kernel 资源管理错误漏洞 — kernel 5.5 - 2021-01-07
CVE-2020-8265 nodejs 资源管理错误漏洞 — Node 8.1 - 2021-01-06
CVE-2020-13570 Foxit Reader 资源管理错误漏洞 — Foxit 8.8 - 2020-12-22
CVE-2020-13560 Foxit Reader 资源管理错误漏洞 — Foxit 8.8 - 2020-12-22
CVE-2020-13557 Foxit Reader 资源管理错误漏洞 — Foxit 8.8 - 2020-12-22
CVE-2020-8231 Haxx libcurl 资源管理错误漏洞 — https://github.com/curl/curl - - 2020-12-14
CVE-2020-27786 Linux kernel 资源管理错误漏洞 — kernel 7.8 - 2020-12-11
CVE-2020-25663 Imagemagick Studio ImageMagick 资源管理错误漏洞 — ImageMagick 5.5 - 2020-12-08
CVE-2020-14351 Linux kernel 资源管理错误漏洞 — kernel 7.8 - 2020-12-03

CWE-416(释放后使用) 是常见的弱点类别,本平台收录该类弱点关联的 3703 条 CVE 漏洞。