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

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.45%, higher than 74% of CVEs (2026-12-01)
- Published: 2026-04-30T07:58:37.145Z
- Modified: 2026-11-11T21:10:00.200Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: freebsd

## 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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 15.0-RELEASE before p7; from 14.4-RELEASE before p3; from 14.3-RELEASE before p12; from 13.5-RELEASE before p13; 13.5; 14.3; 14.4; 15.0

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-26:15.dhclient.asc> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-42512](https://www.cve.org/CVERecord?id=CVE-2026-42512), CVE Terms of Use, modified 2026-05-01
- NVD: [CVE-2026-42512](https://nvd.nist.gov/vuln/detail/CVE-2026-42512), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-42512 · Whole record: https://cve.day/CVE-2026-42512.json · Rebuilt by cve.day 2026-11-25T22:59:20.273Z
