CWE-364 信号处理例程中的竞争条件 类弱点 10 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-364 指信号处理程序竞争条件,属于并发安全漏洞。由于信号处理程序支持异步操作,易引发竞态条件。攻击者利用此缺陷可破坏产品状态,导致数据损坏、拒绝服务甚至代码执行。开发者应避免在信号处理程序中调用非异步安全函数,确保关键操作的原子性,并采用线程安全机制来防止状态竞争,从而消除潜在风险。
char *logMessage; void handler (int sigNum) { syslog(LOG_NOTICE, "%s\n", logMessage); free(logMessage); /* artificially increase the size of the timing window to make demonstration of this weakness easier. */ sleep(10); exit(0); } int main (int argc, char* argv[]) { logMessage = strdup(argv[1]); /* Register signal handlers. */ signal(SIGHUP, handler); signal(SIGTERM, handler); /* artificially increase the size of the timing window to make demonstration of this weakness easier. */ sleep(10); }#include <signal.h> #include <syslog.h> #include <string.h> #include <stdlib.h> void *global1, *global2; char *what; void sh (int dummy) { syslog(LOG_NOTICE,"%s\n",what); free(global2); free(global1); /* Sleep statements added to expand timing window for race condition */ sleep(10); exit(0); } int main (int argc,char* argv[]) { what=argv[1]; global1=strdup(argv[2]); global2=malloc(340); signal(SIGHUP,sh); signal(SIGTERM,sh); /* Sleep statements added to expand timing window for race condition */ sleep(10); exit(0); }| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2026-33565 | OpenHarmony 安全漏洞 — OpenHarmony | 3.3 | Low | 2026-05-19 |
| CVE-2026-27766 | OpenHarmony 安全漏洞 — OpenHarmony | 5.5 | Medium | 2026-05-19 |
| CVE-2026-24792 | OpenHarmony 安全漏洞 — OpenHarmony | 8.1 | High | 2026-05-19 |
| CVE-2025-4598 | Linux systemd-coredump 安全漏洞 | 4.7 | Medium | 2025-05-30 |
| CVE-2024-6409 | OpenSSH 安全漏洞 | 7.0 | High | 2024-07-08 |
| CVE-2024-6387 | OpenSSH 安全漏洞 | 8.1 | High | 2024-07-01 |
| CVE-2023-5676 | Eclipse OpenJ9 竞争条件问题漏洞 — OpenJ9 | 4.1 | Medium | 2023-11-15 |
| CVE-2023-1285 | Mitsubishi Electric GC-ENET-COM 竞争条件问题漏洞 — GC-ENET-COM | 7.5 | High | 2023-04-14 |
| CVE-2020-14317 | Red Hat Wildfly 安全漏洞 — Wildfly | 7.5 | - | 2021-06-02 |
| CVE-2019-3805 | Red Hat Wildfly 竞争条件问题漏洞 — wildfly | 4.7 | - | 2019-05-03 |
CWE-364(信号处理例程中的竞争条件) 是常见的弱点类别,本平台收录该类弱点关联的 10 条 CVE 漏洞。