<!-- XE-0662 · [VM/High] LimaManager panics on short leaseHash — no bounds check before vmName slice · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0662>. The page is the record; this is the same page for reading.*

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

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   —

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-05 22:19 UTC

Told
:   2026-11-05 22:19 UTC

### Patches

None linked.

### History

- [10206](https://bounty.xe.network/log/10206) 2026-11-05 22:19 UTC reply.sent
- [10205](https://bounty.xe.network/log/10205) 2026-11-05 22:19 UTC proposal.adopted
- [10204](https://bounty.xe.network/log/10204) 2026-11-05 22:19 UTC proposal.adopted
- [10203](https://bounty.xe.network/log/10203) 2026-11-05 22:19 UTC ticket.status new → closed
- [10202](https://bounty.xe.network/log/10202) 2026-11-05 22:19 UTC proposal.adopted
- [10201](https://bounty.xe.network/log/10201) 2026-11-05 22:19 UTC ticket.facts
- [10200](https://bounty.xe.network/log/10200) 2026-11-05 22:19 UTC proposal.adopted
- [10199](https://bounty.xe.network/log/10199) 2026-11-05 22:19 UTC ticket.facts
- [7604](https://bounty.xe.network/log/7604) 2026-11-05 14:02 UTC proposal.created
- [7603](https://bounty.xe.network/log/7603) 2026-11-05 14:02 UTC proposal.created
- [7602](https://bounty.xe.network/log/7602) 2026-11-05 14:02 UTC proposal.created
- [7601](https://bounty.xe.network/log/7601) 2026-11-05 14:02 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-0662) · [JSON](https://bounty.xe.network/v1/tickets/XE-0662) · [markdown](https://bounty.xe.network/XE-0662.md)

### 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 Denne**team2026-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.
