CVE-2026-42512 in Freebsd
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Freebsd | Freebsd | 13.5 14.3 14.4 15.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-42512 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-152833-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-04-30 |
| Last modified | 2026-11-11 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-122: Heap-Based Buffer Overflow
Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.
Related attack patterns (CAPEC)
CAPEC-92 Forced Integer Overflow via CWE-122
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2026-42512 affects dhclient due to an incorrect memory allocation size calculation when resizing the array of string pointers, leading to a heap buffer overrun.
A specially crafted DHCP packet can trigger the buffer overrun, potentially leading to a crash or code execution.
Questions
What is CVE-2026-42512?
CVE-2026-42512 affects dhclient due to an incorrect memory allocation size calculation when resizing the array of string pointers, leading to a heap buffer overrun.
What is the CVSS score for CVE-2026-42512?
CVE-2026-42512 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.9%.
Is CVE-2026-42512 actively exploited?
No confirmed active exploitation of CVE-2026-42512 as of 2026-11-12.
How do I remediate CVE-2026-42512?
Priority: HIGH. Advisory: https://security.freebsd.org/advisories/FreeBSD-SA-26:15.dhclient.asc PSIRT: [email protected]
What systems are affected by CVE-2026-42512?
CVE-2026-42512 affects Freebsd Freebsd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Freebsd","product":"Freebsd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-11.