Skip to content

[uk-ai-resilience] go/allocation-size-overflow findings in tools.go and experiments_analyze_statistics.go (Tier B) #55434

Description

@github-actions

Summary

CodeQL identified two go/allocation-size-overflow findings (warning severity): #661 in pkg/workflow/tools.go and #660 in pkg/cli/experiments_analyze_statistics.go. Both flag potential integer overflow feeding an allocation size, which can lead to unexpected allocation sizes, panics, or resource-exhaustion (DoS) conditions if the size expression is derived from untrusted/large input.

Both files were recently touched as part of this week's value-grader / experiments-analysis feature work (#55155) and are not yet tracked by any existing governance issue.

Tier and risk-scoring breakdown

  • Tier: B — Open With Conditions
  • Exposure amplification: Low (requires attacker-controlled size input to reach the allocation)
  • Patchability: High (bound/validate size expressions before allocation; add explicit overflow checks)
  • Detectability: High (CodeQL already flags it in CI)
  • Operational fragility: Low (worst case is a crash/panic, not code execution)
  • Ownership confidence: Medium (recently changed files, active feature development)

Remediation action

Review the flagged allocation sites in pkg/workflow/tools.go and pkg/cli/experiments_analyze_statistics.go; add explicit bounds checking or safe-multiplication/overflow guards before using computed sizes in make()/allocation calls. Add unit test coverage for boundary/overflow inputs.

SLA urgency

High

Reference

Full governance report: see the linked discussion "UK AI Open Code Risk & Resilience Governance — Weekly Report (2026-08-24)" created in this same run.

Generated by UK AI Operational Resilience · copilot · auto · 39.6 AIC · ⌖ 7.78 AIC · ⊞ 8.1K ·

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions