CVE-2026-72852: Integer Overflow or Wraparound in hank-ai darknet
CVE-2026-72852 is an integer overflow vulnerability in hank-ai darknet's convolutional layer buffer size calculations. The vulnerability arises from unchecked 32-bit integer arithmetic when sizing heap buffers based on .cfg file parameters, causing buffer allocations to wrap to small or zero values. This leads to undersized allocations and subsequent out-of-bounds reads and writes during convolutional layer operations. Exploitation requires loading a crafted .cfg file for inference or training, without needing a valid weights file. The vulnerability can cause heap buffer overflow and allocator metadata corruption.
AI Analysis
Technical Summary
hank-ai darknet improperly calculates convolutional layer weight and output buffer sizes by multiplying configuration parameters from a .cfg file using unchecked 32-bit integer arithmetic. Specifically, l.nweights is computed as (c / groups) * n * size * size and l.outputs as l.out_h * l.out_w * l.out_c, both feeding directly into xcalloc. If the product of these dimensions exceeds INT_MAX, the value wraps around to a small or zero number, resulting in undersized buffer allocations. The forward_convolutional_layer function then recalculates GEMM dimensions with a different operand order, causing reads and writes beyond the allocated buffer boundaries. Loading a crafted .cfg file alone is sufficient to trigger this out-of-bounds access, leading to heap buffer overflow and glibc allocator metadata corruption as observed under AddressSanitizer and in release builds.
Potential Impact
The integer overflow causes heap buffer allocations to be smaller than required, leading to out-of-bounds memory reads and writes during convolutional layer processing. This can corrupt heap metadata and potentially destabilize or crash the application. The vulnerability requires only loading a maliciously crafted .cfg file, making it a high-risk issue for denial of service or potential memory corruption exploitation. No valid weights file is needed to trigger the flaw.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid loading untrusted or crafted .cfg files that specify convolutional layer dimensions large enough to cause integer overflow. Monitor vendor communications for patches or updates addressing this issue.
CVE-2026-72852: Integer Overflow or Wraparound in hank-ai darknet
Description
CVE-2026-72852 is an integer overflow vulnerability in hank-ai darknet's convolutional layer buffer size calculations. The vulnerability arises from unchecked 32-bit integer arithmetic when sizing heap buffers based on .cfg file parameters, causing buffer allocations to wrap to small or zero values. This leads to undersized allocations and subsequent out-of-bounds reads and writes during convolutional layer operations. Exploitation requires loading a crafted .cfg file for inference or training, without needing a valid weights file. The vulnerability can cause heap buffer overflow and allocator metadata corruption.
CVSS v4.0
Score 8.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
hank-ai darknet improperly calculates convolutional layer weight and output buffer sizes by multiplying configuration parameters from a .cfg file using unchecked 32-bit integer arithmetic. Specifically, l.nweights is computed as (c / groups) * n * size * size and l.outputs as l.out_h * l.out_w * l.out_c, both feeding directly into xcalloc. If the product of these dimensions exceeds INT_MAX, the value wraps around to a small or zero number, resulting in undersized buffer allocations. The forward_convolutional_layer function then recalculates GEMM dimensions with a different operand order, causing reads and writes beyond the allocated buffer boundaries. Loading a crafted .cfg file alone is sufficient to trigger this out-of-bounds access, leading to heap buffer overflow and glibc allocator metadata corruption as observed under AddressSanitizer and in release builds.
Potential Impact
The integer overflow causes heap buffer allocations to be smaller than required, leading to out-of-bounds memory reads and writes during convolutional layer processing. This can corrupt heap metadata and potentially destabilize or crash the application. The vulnerability requires only loading a maliciously crafted .cfg file, making it a high-risk issue for denial of service or potential memory corruption exploitation. No valid weights file is needed to trigger the flaw.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid loading untrusted or crafted .cfg files that specify convolutional layer dimensions large enough to cause integer overflow. Monitor vendor communications for patches or updates addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:16:31.371Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a874977acd9273b49fe8a0d
Added to database: 08/20/2026, 18:37:43 UTC
Last enriched: 08/20/2026, 18:52:08 UTC
Last updated: 08/20/2026, 19:39:04 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.