CVE-2026-42512: Remotely triggerable out-of-bounds heap write in dhclient

Published Apr 30, 2026
·
Updated

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 Software

38 affected components
Internet Systems Consortium dhclient
FreeBSD FreeBSD=13.5
FreeBSD FreeBSD=13.5-beta3
FreeBSD FreeBSD=13.5-p1
FreeBSD FreeBSD=13.5-p10
FreeBSD FreeBSD=13.5-p11
FreeBSD FreeBSD=13.5-p12
FreeBSD FreeBSD=13.5-p2
FreeBSD FreeBSD=13.5-p3
FreeBSD FreeBSD=13.5-p4
FreeBSD FreeBSD=13.5-p5
FreeBSD FreeBSD=13.5-p6
FreeBSD FreeBSD=13.5-p7
FreeBSD FreeBSD=13.5-p8
FreeBSD FreeBSD=13.5-p9
FreeBSD FreeBSD=14.3
FreeBSD FreeBSD=14.3-p1
FreeBSD FreeBSD=14.3-p10
FreeBSD FreeBSD=14.3-p11
FreeBSD FreeBSD=14.3-p2
FreeBSD FreeBSD=14.3-p3
FreeBSD FreeBSD=14.3-p4
FreeBSD FreeBSD=14.3-p5
FreeBSD FreeBSD=14.3-p6
FreeBSD FreeBSD=14.3-p7
FreeBSD FreeBSD=14.3-p8
FreeBSD FreeBSD=14.3-p9
FreeBSD FreeBSD=14.4
FreeBSD FreeBSD=14.4-p1
FreeBSD FreeBSD=14.4-p2
FreeBSD FreeBSD=14.4-rc1
FreeBSD FreeBSD=15.0
FreeBSD FreeBSD=15.0-p1
FreeBSD FreeBSD=15.0-p2
FreeBSD FreeBSD=15.0-p3
FreeBSD FreeBSD=15.0-p4
FreeBSD FreeBSD=15.0-p5
FreeBSD FreeBSD=15.0-p6

Event History

Apr 30, 2026
CVE Published
via MITRE·07:58 AM
Data Sourced
via MITRE·07:58 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeaknessAffected Software
Jul 28, 58301
Event
via NVD·03:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-42512?

CVE-2026-42512 has been classified with a high severity due to its potential for exploitation, leading to remote code execution.

2

How do I fix CVE-2026-42512?

To fix CVE-2026-42512, ensure you update the affected versions of dhclient to the latest patched versions provided by your vendor.

3

What versions of dhclient are affected by CVE-2026-42512?

CVE-2026-42512 affects multiple versions of Internet Systems Consortium dhclient and various FreeBSD versions including 13.5 and 14.3.

4

Can CVE-2026-42512 be exploited remotely?

Yes, CVE-2026-42512 can be remotely triggered, allowing an attacker to exploit the vulnerability without physical access.

5

What could be the impact of CVE-2026-42512?

The impact of CVE-2026-42512 includes potential system crashes or remote code execution, compromising system security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203