Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.

insomniacslk DHCP library can crash from malformed IPv4 packet

published 3 months ago
Summary

The DHCP library from insomniacslk does not check the size of an incoming IPv4 packet before processing it. A specially crafted packet with an incorrect length can cause the software to stop working unexpectedly, potentially interrupting network services. Update to the latest version of the library or apply the vendor's patch to add proper length validation.

What to do
  • Update insomniacslk github.com/insomniacslk/dhcp to version 0.0.0-20260719225207-c76316d4aa82.
Affected software
Ecosystem VendorProductAffected versions
Go insomniacslk github.com/insomniacslk/dhcp < 0.0.0-20260719225207-c76316d4aa82
Fix: upgrade to 0.0.0-20260719225207-c76316d4aa82
Original advisory text
Denial of service via malformed IPv4 packet in github.com/insomniacslk/dhcp
In github.com/insomniacslk/dhcp/dhcpv4/nclient4, BroadcastRawUDPConn.ReadFrom does not validate that the IPv4 payload length is sufficient to hold a UDP header before calculating the DHCP payload length. A frame with an IPv4 total-length field specifying fewer than eight payload bytes results in a negative DHCP length, causing a panic in buf.Consume due to a negative slice bound.
Timeline
Published18 Aug 2026
Updated23 Nov 2026
First seen23 Nov 2026
Sources
GO-2026-6237 · OSV
Track software like this
Free during beta