CWE-362 使用共享资源的并发执行不恰当同步问题(竞争条件) 类弱点 693 条 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-2024-24858 | Linux kernel 竞争条件问题漏洞 — Linux kernel | 4.6 | Medium | 2024-02-05 |
| CVE-2024-24859 | Linux kernel 竞争条件问题漏洞 — Linux kernel | 4.6 | Medium | 2024-02-05 |
| CVE-2024-24860 | Linux kernel 代码问题漏洞 — Linux kernel | 4.6 | Medium | 2024-02-05 |
| CVE-2024-24861 | Linux kernel 竞争条件问题漏洞 — Linux kernel | 3.3 | Low | 2024-02-05 |
| CVE-2024-24855 | Linux kernel 代码问题漏洞 — Linux kernel | 5.0 | Medium | 2024-02-05 |
| CVE-2024-23196 | Linux kernel 代码问题漏洞 — Linux kernel | 5.3 | Medium | 2024-02-05 |
| CVE-2024-22386 | Linux kernel 代码问题漏洞 — Linux kernel | 5.3 | Medium | 2024-02-05 |
| CVE-2024-23651 | BuildKit 竞争条件问题漏洞 — buildkit | 8.7 | High | 2024-01-31 |
| CVE-2023-6200 | Linux Kernel 安全漏洞 — kernel | 7.5 | High | 2024-01-28 |
| CVE-2023-6531 | Linux Kernel 安全漏洞 — Red Hat Enterprise Linux 9 | 7.0 | High | 2024-01-21 |
| CVE-2024-21601 | Juniper Networks Junos OS 竞争条件问题漏洞 — Junos OS | 5.9 | Medium | 2024-01-12 |
| CVE-2023-49619 | Apache Answer 竞争条件问题漏洞 — Apache Answer | - | - AI | 2024-01-10 |
| CVE-2024-20700 | Microsoft Hyper-V 安全漏洞 — Windows 10 Version 1809 | 7.5 | High | 2024-01-09 |
| CVE-2024-22047 | Audited 安全漏洞 | 3.1 | Low | 2024-01-04 |
| CVE-2016-15036 | Deis Workflow Manager 竞争条件问题漏洞 — Workflow Manager | 4.6 | Medium | 2023-12-23 |
| CVE-2023-46132 | Hyperledger Fabric 安全漏洞 — fabric | 7.1 | High | 2023-11-14 |
| CVE-2023-36405 | Microsoft Windows Kernel 安全漏洞 — Windows 10 Version 1809 | 7.0 | High | 2023-11-14 |
| CVE-2023-6109 | WordPress Plugin YOP Poll 安全漏洞 — YOP Poll | 5.3 | Medium | 2023-11-14 |
| CVE-2023-47111 | ZITADEL 竞争条件问题漏洞 — zitadel | 7.3 | High | 2023-11-08 |
| CVE-2022-48613 | Huawei HarmonyOS 竞争条件问题漏洞 — HarmonyOS | 5.3 | - | 2023-11-08 |
| CVE-2023-36698 | Microsoft Windows Kernel 安全漏洞 — Windows 10 Version 1809 | 4.4 | Medium | 2023-10-10 |
| CVE-2023-42756 | Linux kernel 竞争条件问题漏洞 — Red Hat Enterprise Linux 9 | 4.4 | Medium | 2023-09-28 |
| CVE-2023-41306 | Huawei HarmonyOS 竞争条件问题漏洞 — HarmonyOS | 5.3 | - | 2023-09-26 |
| CVE-2023-37904 | Discourse 竞争条件问题漏洞 — discourse | 2.6 | Low | 2023-07-28 |
| CVE-2023-32257 | Linux kernel 安全漏洞 — kernel | 8.1 | High | 2023-07-24 |
| CVE-2023-32258 | Linux kernel 安全漏洞 — kernel | 8.1 | High | 2023-07-24 |
| CVE-2023-36884 | Microsoft Office 安全漏洞 — Windows 10 Version 1507 | 7.5 | High | 2023-07-11 |
| CVE-2023-33170 | Microsoft ASP.NET 和 Visual Studio 竞争条件问题漏洞 — Microsoft Visual Studio 2022 version 17.2 | 8.1 | High | 2023-07-11 |
| CVE-2023-35361 | Microsoft Windows Kernel 竞争条件问题漏洞 — Windows 10 Version 1809 | 7.0 | High | 2023-07-11 |
| CVE-2023-1672 | Tang 竞争条件问题漏洞 — tang | 5.3 | Medium | 2023-07-11 |
CWE-362(使用共享资源的并发执行不恰当同步问题(竞争条件)) 是常见的弱点类别,本平台收录该类弱点关联的 693 条 CVE 漏洞。