Skip to main content
← All vulnerabilities
CVE-2026-42512

Remotely triggerable out-of-bounds heap write in dhclient

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in p7, p3, p12, p13
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • FreeBSD FreeBSD

    From 15.0-RELEASE · fixed in p7; From 14.4-RELEASE · fixed in p3; From 14.3-RELEASE · fixed in p12; From 13.5-RELEASE · fixed in p13

References 1

security.freebsd.org