CVE-2026-42512

8.1

FreeBSD · dhclient

A heap-based buffer overflow in the FreeBSD dhclient utility allows unauthenticated remote attackers to trigger a crash or potentially achieve remote code execution via a specially crafted packet.

Executive summary

A critical heap-based buffer overflow in FreeBSD dhclient allows unauthenticated remote attackers to execute arbitrary code or crash the system.

Vulnerability

This vulnerability is a heap-based buffer overflow occurring when dhclient incorrectly calculates memory allocation sizes while building an environment array for dhclient-script. An unauthenticated remote attacker can exploit this by sending a specially crafted packet to the target system.

Business impact

The vulnerability carries a CVSS score of 8.1, reflecting its potential for total impact on confidentiality, integrity, and availability. Successful exploitation could lead to full system compromise or service disruption, posing a significant risk to the availability and security of network-facing infrastructure.

Remediation

Immediate Action: Upgrade to the patched versions of FreeBSD as specified in the official FreeBSD-SA-26:15.dhclient advisory to resolve the memory allocation error.

Proactive Monitoring: Monitor system logs for unusual crashes related to the dhclient process and inspect network traffic for anomalous DHCP packets that may indicate exploitation attempts.

Compensating Controls: While no direct virtual patch exists, administrators should restrict network access to the DHCP client to trusted interfaces and utilize host-based firewalls to minimize the attack surface.

Exploitation status

Public Exploit Available: Unknown (no confirmed weaponized exploit or public proof-of-concept identified).

Analyst recommendation

Given the potential for remote code execution and the critical nature of the dhclient utility, this vulnerability poses a high risk to the integrity of FreeBSD environments. Administrators must prioritize applying the vendor provided security updates immediately to eliminate the buffer overflow condition and prevent potential unauthorized access.

More FreeBSD CVEs

Sources

Originally found and disclosed by Joshua Rogers of AISLE Research Team, per the CVE Program record.