Remotely triggerable out-of-bounds heap write in dhclient
Summary
| CVE | CVE-2026-42512 |
|---|---|
| State | PUBLISHED |
| Assigner | freebsd |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-30 09:16:03 UTC |
| Updated | 2026-04-30 09:16:03 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-122 | CWE-122 CWE-122: Heap-based Buffer Overflow
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | FreeBSD | FreeBSD | affected 15.0-RELEASE p7 release | Not specified |
| CNA | FreeBSD | FreeBSD | affected 14.4-RELEASE p3 release | Not specified |
| CNA | FreeBSD | FreeBSD | affected 14.3-RELEASE p12 release | Not specified |
| CNA | FreeBSD | FreeBSD | affected 13.5-RELEASE p13 release | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| security.freebsd.org/advisories/FreeBSD-SA-26:15.dhclient.asc | [email protected] | security.freebsd.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Joshua Rogers of AISLE Research Team (en)
There are currently no legacy QID mappings associated with this CVE.