CVE-2026-42512
JSON

8.1high

Remotely triggerable out-of-bounds heap write in dhclient

Severity
8.1high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.45% (higher than 74% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
FreeBSD FreeBSDfrom 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.0CVE List, NVD

Classification

CWE-122

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Mientras dhclient está construyendo un entorno para pasar a dhclient-script, puede necesitar redimensionar el array de punteros de cadena. El código que expande el array calcula incorrectamente su nuevo tamaño al solicitar memoria, lo que resulta en un desbordamiento de búfer de pila. Un paquete especialmente diseñado puede causar que dhclient desborde su búfer de entradas de entorno. Esto puede resultar en un fallo, pero puede ser posible aprovechar este error para lograr ejecución remota de código.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42512 changed 2026-05-01CVE Terms of Use
NVDCVE-2026-42512 changed 2026-11-11Public domain