POJIA破甲
地图 / CVE-2019-5481: krb5: double-free in read_data() after realloc() fail

CVE-2019-5481: krb5: double-free in read_data() after realloc() fail

内存破坏 / 双重释放 / #686823

厂商
curl
严重程度
低危 · CVSS 6.3
赏金
—
弱点
双重释放
研究员
@thomas_v
披露日期
2020-11-14
资产
https://github.com/curl/curl
CVE
CVE-2019-5481

该报告还没有中文解读。

原文摘录

摘自原文(1106 字符中的一小部分)
Summary: In 'lib/security.c', there is a double-free of the reference 'buf->data' on the teardown path if 'Curl_saferealloc()' fails.
原文中的代码
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    void *ptr = malloc(10);
    if (!ptr)
        return -1;
    int len = 0x7fffffff;
    void *ptr2 = realloc(ptr, len);
    if (!ptr2) {
        printf("Triggered realloc failure\n");
        return 0;
    }
    return -1;
}

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

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @thomas_v · 版权归作者与 curl 所有

同类报告

SOCK_RAW sockets reachable from Webkit process allows triggering double free in IP6_EXTHDR_CHECKPlayStation · 2021-01-12 · $10,000Double fdrop on a socket through sys_netcontrolPlayStation · 2026-05-01 · $10,000Access Violation Reading EXPLOITABLE_0228VLC (European Commission - DIGIT) · 2019-07-24 · $1,135Double Free Vulnerability in `libcurl` Cookie Management (`cookie.c`)curl · 2025-04-29CVE-2022-28738: Double free in Regexp compilationInternet Bug Bounty · 2022-05-28 · $4,000CVE-2021-22945: UAF and double-free in MQTT sendingcurl · 2021-09-15