← 返回地图破甲

CVE-2024-6197: freeing stack buffer in utf8asn1str

内存破坏 / Free of Memory not on the Heap / #2559516

厂商
curl
严重程度
低危
赏金
—
弱点
Free of Memory not on the Heap
研究员
@z2_
披露日期
2024-07-24
资产
https://github.com/curl/curl
CVE
CVE-2024-6197

该报告还没有中文解读。

原文摘录

摘自原文(3574 字符中的一小部分)
Libcurl at commit [04739054cdac5a0614fb94e3655e313c03399f35](https://github.com/curl/curl/tree/04739054cdac5a0614fb94e3655e313c03399f35) contains an invalid invocation of `free()` in the function `utf8asn1str()` at …
原文中的代码
static CURLcode
utf8asn1str(struct dynbuf *to, int type, const char *from, const char *end)
{
    // --- snip ---
    
    if(type == CURL_ASN1_UTF8_STRING) {
        // --- snip ---
    }
    else {
        while(!result && (from < end)) {
            char buf[4]; /* decode buffer */ …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。

时间线

阅读 HackerOne 原文 ↗作者 @z2_ · 版权归作者与 curl 所有