Impact
hank-ai darknet performs convolutional layer buffer sizing using unchecked 32‑bit arithmetic, causing integer overflows when configuration values from a .cfg file multiply to exceed INT_MAX. The undersized buffers are allocated with xcalloc but later accessed through derived dimensions that fail to match the allocation size, leading to out‑of‑bounds reads and writes. This can corrupt heap metadata or read arbitrary memory, which in turn could enable arbitrary code execution. The weakness is a classic integer overflow (CWE‑190) combined with an unchecked buffer usage (CWE‑787).
Affected Systems
The flaw exists in the hank‑ai darknet project, specifically in source files convolutional_layer.cpp compiled in version 6.0 as referenced in the advisory. No other version information is available in the current data set.
Risk and Exploitability
The CVSS score of 8.5 indicates high severity. With no EPSS data available, the exact exploitation probability cannot be quantified at present, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to supply a crafted .cfg file to darknet during inference or training, which is a local or host‑dependent action. Nevertheless, due to the potential for uncontrolled heap writes, the risk of arbitrary code execution remains significant if an attacker can run or influence the darknet process.
OpenCVE Enrichment