CVE-2026-42512: freebsd Heap-based Buffer Overflow
Vulnerability summary
CVE-2026-42512 is a high (CVSS 8.1) Heap-based Buffer Overflow vulnerability in freebsd. EPSS estimates a 1.81% chance of exploitation in the next 30 days, higher than 78.3% of scored vulnerabilities.
Timeline
- 30-04-2026PublishedVulnerability first disclosed.
- 01-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.81%
Chance of exploitation in the next 30 days
Percentile
78%
Versus all other CVEs
30-day change
+0.39 pp
From 1.42% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Freebsd1 product
- freebsdEOL≥ 15.0-RELEASE, < p7 | ≥ 14.4-RELEASE, < p3 | ≥ 14.3-RELEASE, < p12 | ≥ 13.5-RELEASE, < p13 | 13.5 | 13.5:beta3 | 13.5:p1 | 13.5:p10 | 13.5:p11 | 13.5:p12 | 13.5:p2 | 13.5:p3 | 13.5:p4 | 13.5:p5 | 13.5:p6 | 13.5:p7 | 13.5:p8 | 13.5:p9 | 14.3 | 14.3:p1 | 14.3:p10 | 14.3:p11 | 14.3:p2 | 14.3:p3 | 14.3:p4 | 14.3:p5 | 14.3:p6 | 14.3:p7 | 14.3:p8 | 14.3:p9 | 14.4 | 14.4:p1 | 14.4:p2 | 14.4:rc1 | 15.0 | 15.0:p1 | 15.0:p2 | 15.0:p3 | 15.0:p4 | 15.0:p5 | 15.0:p6
1 vendor · 1 product