What’s Vulnerable › Vulnerabilities
CVE-2026-42512: Remotely triggerable out-of-bounds heap write in dhclient
- Severity: high (CVSS 8.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-30 · updated 2026-06-17
- Weakness: CWE-122
Description
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 products
- FreeBSD: 13.5, 13.5-beta3, 13.5-p1, 13.5-p10, 13.5-p11, 13.5-p12 (+31)
References
Get alerted when CVE-2026-42512 or the next vulnerability affects your stack