Data race in Curl_dnscache_add_negative() corrupts shared DNS cache — heap corruption and double-free when using CURLOPT_SHARE with CURL_LOCK_DATA_DNS
业务逻辑 / Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') / #3645361
该报告还没有中文解读。
原文摘录
摘自原文(8297 字符中的一小部分)
Data race in Curl_dnscache_add_negative() corrupts shared DNS cache — heap corruption and double-free when using CURLOPT_SHARE with CURL_LOCK_DATA_DNS
原文中的代码
CURLcode Curl_dnscache_add_negative(struct Curl_easy *data,
uint8_t dns_queries,
const char *host,
uint16_t port)
{
struct Curl_dnscache *dnscache = dnscache_get(data);
// ...
// BUG: …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @intrax · 版权归作者与 curl 所有