POJIA破甲
地图 / Incorrect sizeof() in Rustls Backend Memory Allocation

Incorrect sizeof() in Rustls Backend Memory Allocation

内存破坏 / Incorrect Calculation of Buffer Size / #3427460

厂商
curl
严重程度
低危
赏金
—
弱点
Incorrect Calculation of Buffer Size
研究员
@pelioro
披露日期
2025-11-15
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(1922 字符中的一小部分)
There's a bug in `lib/vtls/rustls.c` where `malloc()` uses `sizeof(cipher_suites)` instead of `sizeof(*cipher_suites)`. This allocates memory based on pointer size rather than element size.
原文中的代码
const struct rustls_supported_ciphersuite **cipher_suites = NULL;

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

时间线

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

同类报告

size_t-to-int vulnerability in exFAT leads to memory corruption via malformed USB flash drivesPlayStation · 2022-09-21 · $10,000CVE-2019-5435: An integer overflow found in /lib/urlapi.ccurl · 2020-12-05Zip bombTor · 2023-11-28High memory usage for generating preview of broken imageNextcloud · 2022-03-09KILL authorization trusts the presented login name instead of the authenticated anonymous accountMariaDB · 2026-09-07first name and last name restrictions bypassLegal Robot · 2017-09-05