CWE-362 使用共享资源的并发执行不恰当同步问题(竞争条件) 类弱点 596 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-362 属于并发执行漏洞,指代码序列在需要独占访问共享资源时,因缺乏同步机制导致存在时间窗口,使其他并发序列能修改该资源。攻击者通常利用此竞态条件,通过精心构造并发请求篡改数据或绕过安全检查,从而引发逻辑错误或权限提升。开发者应避免此类问题,确保对共享资源的访问具备原子性,通过加锁、事务或原子操作等同步机制消除竞争窗口,保障数据一致性。
$transfer_amount = GetTransferAmount(); $balance = GetBalanceFromDatabase(); if ($transfer_amount < 0) { FatalError("Bad Transfer Amount"); } $newbalance = $balance - $transfer_amount; if (($balance - $transfer_amount) < 0) { FatalError("Insufficient Funds"); } SendNewBalanceToDatabase($newbalance); NotifyUser("Transfer of $transfer_amount succeeded."); NotifyUser("New balance: $newbalance");
In the following pseudocode, the attacker makes two simultaneous calls of the program, CALLER-1 and CALLER-2. Both callers are for the same user account. CALLER-1 (the attacker) is associated with PROGRAM-1 (the instance that handles CALLER-1). CALLER-2 is associated with PROGRAM-2. CALLER-1 makes a transfer request of 80.00. PROGRAM-1 calls GetBalanceFromDatabase and sets $balance to 100.00 PROGRAM-1 calculates $newbalance as 20.00, then calls SendNewBalanceToDatabase(). Due to high server load, the PROGRAM-1 call to SendNewBalanceToDatabase() encounters a delay. CALLER-2 makes a transfer req
void f(pthread_mutex_t *mutex) { pthread_mutex_lock(mutex); /* access shared resource */ pthread_mutex_unlock(mutex); }
int f(pthread_mutex_t *mutex) { int result; result = pthread_mutex_lock(mutex); if (0 != result) return result; /* access shared resource */ return pthread_mutex_unlock(mutex); }
| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2023-28984 | Juniper Networks Junos OS 资源管理错误漏洞 — Junos OS | 5.3 | Medium | 2023-04-17 |
| CVE-2023-1582 | Linux kernel 竞争条件问题漏洞 — Linux | 4.7 | - | 2023-04-05 |
| CVE-2021-20251 | Samba 竞争条件问题漏洞 — samba | 5.9 | - | 2023-03-06 |
| CVE-2023-0739 | answer 竞争条件问题漏洞 — answerdev/answer | 7.1 | - | 2023-02-08 |
| CVE-2023-22499 | Deno 竞争条件问题漏洞 — deno | 7.5 | High | 2023-01-17 |
| CVE-2022-46174 | Amazon efs-utils 竞争条件问题漏洞 — efs-utils | 4.2 | Medium | 2022-12-28 |
| CVE-2022-39134 | Google Pixel 竞争条件问题漏洞 — SC9863A/SC9832E/SC7731E/T610/T310/T606/T760/T610/T618/T606/T612/T616/T760/T770/T820/S8000 | 4.7 | - | 2022-12-06 |
| CVE-2022-42770 | Google Pixel 竞争条件问题漏洞 — SC9863A/SC9832E/SC7731E/T610/T310/T606/T760/T610/T618/T606/T612/T616/T760/T770/T820/S8019 | 4.7 | - | 2022-12-06 |
| CVE-2022-42771 | Google Pixel 竞争条件问题漏洞 — SC9863A/SC9832E/SC7731E/T610/T310/T606/T760/T610/T618/T606/T612/T616/T760/T770/T820/S8020 | 4.7 | - | 2022-12-06 |
| CVE-2022-39328 | Grafana 竞争条件问题漏洞 — grafana | 9.8 | Critical | 2022-11-08 |
| CVE-2022-27626 | Synology DiskStation Manager 竞争条件问题漏洞 — DiskStation Manager (DSM) | 10.0 | Critical | 2022-10-20 |
| CVE-2022-3623 | Linux kernel 竞争条件问题漏洞 — Kernel | 5.0 | Medium | 2022-10-20 |
| CVE-2022-3566 | Linux kernel 竞争条件问题漏洞 — Kernel | 4.6 | Medium | 2022-10-17 |
| CVE-2022-3567 | Linux kernel 竞争条件问题漏洞 — Kernel | 4.6 | Medium | 2022-10-17 |
| CVE-2022-3521 | Linux kernel 竞争条件问题漏洞 — Kernel | 2.6 | Low | 2022-10-16 |
| CVE-2021-43980 | Apache Tomcat 竞争条件问题漏洞 — Apache Tomcat | 3.7 | - | 2022-09-28 |
| CVE-2022-1247 | Linux kernel 竞争条件问题漏洞 — Kernel | 7.0 | - | 2022-08-31 |
| CVE-2022-2590 | Linux kernel 竞争条件问题漏洞 — Linux kernel | 7.0 | - | 2022-08-31 |
| CVE-2022-0207 | vdsm 竞争条件问题漏洞 — vdsm | 4.7 | - | 2022-08-26 |
| CVE-2021-3702 | Ansible Runner 竞争条件问题漏洞 — ansible-runner | 6.3 | - | 2022-08-23 |
| CVE-2021-20316 | Red Hat Enterprise Linux 竞争条件问题漏洞 — samba | 6.8 | - | 2022-08-23 |
| CVE-2022-24949 | Eternal Terminal 安全漏洞 — Eternal Terminal | 7.5 | - | 2022-08-16 |
| CVE-2022-24950 | Eternal Terminal 竞争条件问题漏洞 — Eternal Terminal | 8.5 | - | 2022-08-16 |
| CVE-2022-24951 | Eternal Terminal 竞争条件问题漏洞 — Eternal Terminal | 7.0 | - | 2022-08-16 |
| CVE-2022-34892 | Corel Parallels Desktop 竞争条件问题漏洞 — Desktop | 7.8 | - | 2022-07-18 |
| CVE-2022-24800 | October CMS 竞争条件问题漏洞 — october | 8.1 | High | 2022-07-12 |
| CVE-2022-1462 | Linux kernel 竞争条件问题漏洞 — kernel | 6.3 | - | 2022-05-31 |
| CVE-2021-3597 | Red Hat Undertow 竞争条件问题漏洞 — undertow | 5.9 | - | 2022-05-24 |
| CVE-2021-4207 | QEMU 安全漏洞 — QEMU | 8.2 | - | 2022-04-29 |
| CVE-2022-1195 | Linux kernel 资源管理错误漏洞 — kernel | 5.5 | - | 2022-04-29 |
CWE-362(使用共享资源的并发执行不恰当同步问题(竞争条件)) 是常见的弱点类别,本平台收录该类弱点关联的 596 条 CVE 漏洞。