Bug 2537748 (CVE-2026-95508) - CVE-2026-95508 libslirp: libslirp: heap buffer overflow in DHCPv6/TFTP response builders on small interface MTU
Summary: CVE-2026-95508 libslirp: libslirp: heap buffer overflow in DHCPv6/TFTP respon...
Keywords:
Status: NEW
Alias: CVE-2026-95508
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2537751
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-22 07:30 UTC by OSIDB Bzimport
Modified: 2026-09-23 09:06 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-22 07:30:07 UTC
A flaw was found in libslirp. The DHCPv6 (src/dhcpv6.c) and TFTP (src/tftp.c) response builders write guest-influenced, variable-length data into a reply mbuf sized according to SlirpConfig.if_mtu, without checking that the write stays within that buffer. In dhcpv6_info_request(), a guest-supplied DHCPv6 CLIENTID option (up to 256 bytes, capped independently of if_mtu) is memcpy'd into the reply with no bounds check against the mbuf's actual size, overflowing the heap buffer whenever if_mtu is smaller than the client_id length plus fixed overhead. A related sink in the same function computes a signed 'smaxlen' for the boot-file-URL option that can go negative once earlier options have consumed the MTU window, which, when passed as an unsigned size to slirp_fmt(), defeats its length truncation entirely. An analogous pattern exists in tftp_read_data() (src/tftp.c) via the guest-supplied blksize option. These sinks are only reachable when the host/hypervisor operator has configured a small interface MTU (below the IPv6 minimum link MTU of 1280, down to the library's accepted floor of 68); the default MTU of 1500 is not affected.


Note You need to log in before you can comment on or make changes to this bug.