CVE-2026-42512

Remotely triggerable out-of-bounds heap write in dhclient

State
Published
Severity
8.1 High
Published
Apr 30, 2026
Updated
May 1, 2026
Reserved
Apr 28, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.0-RELEASE to before p7Affected
  • 14.4-RELEASE to before p3Affected
  • 14.3-RELEASE to before p12Affected
  • 13.5-RELEASE to before p13Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.