CVE-2026-42512CWE-122

Remotely triggerable out-of-bounds heap write in dhclient

High · published April 30, 2026

CVSS v3.1
8.1
EPSS
2%
Percentile
78.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01814 · 78.5th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2026-04-30T07:58Z
EPSS history
Timeline
  • 30 APR 07:58Z
    Remotely triggerable out-of-bounds heap write in dhclient
    cvelistv5