CVE-2026-42512

published 30 Apr 2026 · updated 11 Nov 2026

Remotely triggerable out-of-bounds heap write in dhclient

8.1HighCVSS 8.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in p13, p12, p3 and 1 more.

As dhclient is building an environment to pass to dhclient-script, it may need to resize the array of string pointers. The code which expands the array incorrectly calculates its new size when requesting memory, resulting in a heap buffer overrun. A specially crafted packet can cause dhclient to overrun its buffer of environment entries. This can result in a crash, but it may be possible to leverage this bug to achieve remote code execution.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSDfreebsd=13.5, =14.3, =14.4, =15.0
FreeBSD>=13.5-RELEASE <p13, >=14.3-RELEASE <p12, >=14.4-RELEASE <p3, >=15.0-RELEASE <p7p13, p12, p3, p7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-42512 severity on Zeptric[![CVE-2026-42512](https://zeptric.io/badge/cve/CVE-2026-42512.svg)](https://zeptric.io/cve/CVE-2026-42512)