Bounty
XE-0662 · Bounty

[VM/High] LimaManager panics on short leaseHash — no bounds check before vmName slice

Closed · duplicate —claimed High web filed 2026-11-05 10:25 UTC by Ashev Ardiansyah

Report

Summary

vm/lima_manager.go:90-92 slices leaseHash[:12] without any length check. Unlike QEMUManager which guards Provision with len(lh) != 64, LimaManager.Provision has no such guard. A short leaseHash causes an index-out-of-range panic.

Affected Code

// lima_manager.go:90-92
func (m *LimaManager) vmName(lh string) string {
    return "xe-" + lh[:12]  // panics if len(lh) < 12
}

No length check in Provision before reaching this call.

Impact

Node panic / crash from slice bounds. Denial of service triggered by any caller submitting a provisioning request with a short leaseHash.

Severity

High — node crash, remotely triggerable.

Fix

if len(leaseHash) < 12 {
    return nil, fmt.Errorf("lease hash too short: %d", len(leaseHash))
}

Thread

Joseph Denneteam2026-11-05 22:19 UTCdesk

Thanks. This is the same finding as https://bounty.xe.network/XE-0660, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, reply with what differs and we will look again.