POJIA破甲
地图 / CVE-2021-22945: UAF and double-free in MQTT sending

CVE-2021-22945: UAF and double-free in MQTT sending

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

厂商
curl
严重程度
低危
赏金
—
弱点
双重释放
研究员
@z2_
披露日期
2021-09-15
资产
https://github.com/curl/curl
CVE
CVE-2021-22945

该报告还没有中文解读。

原文摘录

摘自原文(3859 字符中的一小部分)
Vulnerability Description libcurl version 7.77.0 has a [Use-After-Free](https://github.com/curl/curl/blob/curl-7_77_0/lib/mqtt.c#L559) and a [Double-Free](https://github.com/curl/curl/blob/curl-7_77_0/lib/mqtt.c#L560) in `lib/mqtt.c` in the function `mqtt_doing` on [lines 556 - …
原文中的代码
if(mq->nsend) {
  /* send the remainder of an outgoing packet */
  char *ptr = mq->sendleftovers;
  result = mqtt_send(data, mq->sendleftovers, mq->nsend);
  free(ptr);
  if(result)
    return result;
}

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

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @z2_ · 版权归作者与 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-2023-27537: HSTS double-freecurl · 2023-03-20