Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-72852— darknet Integer Overflow in Convolutional Layer Buffer Sizing Leads to Heap Buffer Overflow

Quick assessment

Affected
hank-ai darknet
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

hank-ai/darknet 在使用来自 .cfg 文件的配置字段、通过未进行溢出检查的 32 位整数算术运算,来计算卷积层的权重和输出堆缓冲区的尺寸。在 src-lib/convolutional_layer.cpp 中,l.nweights 被计算为 (c / groups) n size size,l.outputs 被计算为 l.out_h l.out_w l.out_c,这两个值随后直接传递给 xcalloc 用于内存分配。如果一个 .cfg 文件中真正的维度乘积超过 INT_MAX,结果会在 32 位

CVSS 7.8 · High EPSS 0.14% · P4

Affected Version Matrix 1

VendorProduct Version RangeStatus
hank-ai darknet ≤ 6.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-72852

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
darknet Integer Overflow in Convolutional Layer Buffer Sizing Leads to Heap Buffer Overflow
Source: CVE Program / CVE List V5
Vulnerability Description
hank-ai/darknet sizes a convolutional layer's weight and output heap buffers by multiplying configuration fields taken from a .cfg file in unchecked 32-bit int arithmetic. In src-lib/convolutional_layer.cpp, l.nweights is computed as (c / groups) * n * size * size and l.outputs as l.out_h * l.out_w * l.out_c, and both feed xcalloc directly. A .cfg whose true dimension product exceeds INT_MAX wraps to a small or zero value, so the allocation is undersized; for example width and height of 256 with filters of 65536 gives 2^32, which wraps to 0. forward_convolutional_layer then re-derives the GEMM dimensions with a different operand order, computing k as l.size*l.size*l.c / l.groups where the allocation divided before multiplying, and reads and writes through the undersized buffer. Loading the crafted .cfg for inference or training is sufficient and no valid .weights file is required. The reported proof of concept observed a heap buffer overflow read in gemm_nn_fast under AddressSanitizer and glibc allocator metadata corruption in a release build of the same input, indicating an out-of-bounds write.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
整数溢出或超界折返
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
hank-ai darknet 0 ~ 6.0 -

II. Public POCs for CVE-2026-72852

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8214 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-72852

登录查看更多情报信息。

Vendor Advisories for CVE-2026-72852 (1)

Proof of Concept for CVE-2026-72852 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-72852

No comments yet


Leave a comment