Skip to main content

dhcpcd EUVDEUVD-2026-38498

| CVE-2026-56117 MEDIUM
Use After Free (CWE-416)
2026-06-23 VulnCheck GHSA-p284-r695-7gxf
5.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify host running dhcpcd without privsep
  2. Delivery
    Connect to world-writable control socket (mode 0666)
  3. Exploit
    Send privileged -x shutdown command
  4. Execution
    control_recvdata() frees client fd_list object
  5. Persist
    Pending HANGUP event delivers stale pointer to control_hangup()
  6. Impact
    Heap use-after-free crashes dhcpcd daemon

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all three of the following conditions simultaneously: (1) dhcpcd must be running with privilege separation disabled, either explicitly via the --disable-privsep command-line argument or implicitly because the privsep subprocess failed to initialize at startup; (2) the control socket must be operating in mode 0666 - world-readable and world-writable - so that unprivileged local users can connect to it; and (3) the attacker must have local unprivileged user access to the host. The default dhcpcd configuration on most modern Linux distributions enables privilege separation, which makes the vulnerable control_handle_read() and control_recvdata() code paths unreachable from unprivileged contexts and entirely prevents exploitation. Remote exploitation is not possible - AV:L confirms local access is mandatory. The combination of non-default configuration and local-only access substantially limits the realistic exposed population.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N, score 5.7) accurately captures the threat profile: local-only attack surface, a specific non-default attack prerequisite (privsep disabled), low but required privilege, and exclusively availability impact. The AT:P metric is the critical limiting factor - the default dhcpcd configuration on most modern distributions enables privilege separation, which entirely removes the vulnerable code path from unprivileged reach. No EPSS score was included in the provided data, so probabilistic exploitation likelihood cannot be quantified; however, the absence of a CISA KEV listing and any public exploit code suggests this has not been observed in active exploitation campaigns. The practical real-world risk is denial of service against the DHCP client, causing loss of network configuration on the affected host. While heap use-after-free vulnerabilities can in principle enable arbitrary code execution, the constrained local attack vector, specific configuration prerequisite, and availability-only CVSS impact assignment suggest code execution has not been demonstrated.

Exploit ScenarioDerived

A local unprivileged user on a host running dhcpcd with --disable-privsep (or after a privsep initialization failure leaves the control socket world-writable) connects to the mode-0666 control socket and issues the -x command to request daemon shutdown. The command causes control_recvdata() to free the fd_list client object, after which the pending HANGUP event on the same file descriptor triggers control_hangup() with the now-stale pointer, producing a heap use-after-free that crashes the dhcpcd daemon and drops all dynamically assigned network configuration from the host. No public proof-of-concept exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 23, 2026

Heap use-after-free in dhcpcd through version 10.3.2 allows local unprivileged attackers to crash the DHCP client daemon by exploiting a double-free race between READ and HANGUP events on the control socket. When an attacker sends a privileged command such as -x, control_recvdata() frees the client fd_list object while the subsequent HANGUP event delivers the same stale pointer to control_hangup(), triggering memory corruption that results in denial of network service on the affected host. No public exploit code or CISA KEV listing exists at time of analysis; the upstream fix is available as commit 78ea09e.

RemediationAI

Upgrade dhcpcd to a version incorporating upstream commit 78ea09ed1633a583dbcde6e7bab9df4639ec8a34 (https://github.com/NetworkConfiguration/dhcpcd/commit/78ea09ed1633a583dbcde6e7bab9df4639ec8a34) once distribution packages are available; an exact patched release tag is not confirmed from current data. The VulnCheck advisory at https://www.vulncheck.com/advisories/dhcpcd-heap-use-after-free-via-control-socket-handling provides additional vendor context. As an immediate compensating control, verify that privilege separation is active by ensuring --disable-privsep is not passed to dhcpcd and that privsep initialization completes successfully at startup - this removes the vulnerable code path entirely. Additionally, restrict control socket filesystem permissions so that the socket does not operate in mode 0666; limiting access to root or a dedicated group prevents unprivileged users from connecting, though this may break management tools or scripts that depend on world-accessible socket access. Restarting dhcpcd with privsep confirmed active is the most effective interim mitigation before patching.

Affected VersionsENISA

dhcpcd 0 ≤10.3.2
dhcpcd patch: 78ea09ed1633a583dbcde6e7bab9df4639ec8a34

Affected Packages

euvd dhcpcd no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

dhcpcd is a portable DHCP client daemon (CPE: cpe:2.3:a:networkconfiguration:dhcpcd:*:*:*:*:*:*:*:*) that exposes a Unix domain control socket for runtime management. The root cause is CWE-416 (Use After Free) in src/control.c: the original code allowed control_recvdata() - which previously had a void return type - to call control_free() to release the fd_list client object, while the same epoll/kqueue event loop could subsequently deliver a HANGUP event to control_hangup() referencing the now-deallocated pointer. The commit 78ea09e fixes this by changing control_recvdata() to return an int error code, restructuring the event dispatch in control_handle_read() to propagate that return value upward, and centralizing all cleanup through a single goto hangup label so the fd_list object is freed exactly once. Privilege separation (privsep), when functioning, isolates the control socket handler in a dedicated subprocess, making the vulnerable code path unreachable by unprivileged callers.

Know when Dhcpcd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.7 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 4.7 MEDIUM

Local-only access with high complexity due to required non-default privsep-disabled configuration; low privileges to connect; availability-only impact from daemon crash with no confidentiality or integrity consequence.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Red Hat 4.7 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

dhcpcd through 10.3.2, fixed in commit 78ea09e, contains a heap use-after-free vulnerability in the control socket handling within src/control.c that allows local unprivileged attackers to trigger memory corruption when privilege separation is disabled. Attackers can connect to the control socket and send a privileged command such as -x, causing control_recvdata() to free the client object while the same READ+HANGUP event subsequently reaches control_hangup() with the stale pointer, resulting in a use-after-free condition exploitable in deployments using --disable-privsep or where privsep initialization has failed with the control socket operating in mode 0666.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
common DHCP client on Linux and embedded systems, not universal
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in Dhcpcd

View all
CVE-2016-1503 CRITICAL
9.8 Apr 18

dhcpcd before 6.10.0, as used in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-0

CVE-2019-11766 CRITICAL
9.8 May 05

dhcp6.c in dhcpcd before 6.11.7 and 7.x before 7.2.2 has a buffer over-read in the D6_OPTION_PD_EXCLUDE feature. Rated c

CVE-2019-11577 CRITICAL
9.8 Apr 28

dhcpcd before 7.2.1 contains a buffer overflow in dhcp6_findna in dhcp6.c when reading NA/TA addresses. Rated critical s

CVE-2026-56115 HIGH
8.7 Jun 23

Stack out-of-bounds write in dhcpcd (the widely-used DHCP/DHCPv6 client) through version 10.3.2 lets a same-link attacke

CVE-2012-2152 HIGH
7.5 Jul 25

Stack-based buffer overflow in the get_packet method in socket.c in dhcpcd 3.2.3 allows remote attackers to cause a deni

CVE-2016-1504 HIGH
7.5 Feb 07

dhcpcd before 6.10.0 allows remote attackers to cause a denial of service (invalid read and crash) via vectors related t

CVE-2012-6699 HIGH
7.5 Apr 11

The decode_search function in dhcp.c in dhcpcd 3.x allows remote DHCP servers to cause a denial of service (out-of-bound

CVE-2012-6698 HIGH
7.5 Apr 11

The decode_search function in dhcp.c in dhcpcd 3.x allows remote DHCP servers to cause a denial of service (out-of-bound

CVE-2012-6700 HIGH
7.5 Apr 11

The decode_search function in dhcp.c in dhcpcd 3.x does not properly free allocated memory, which allows remote DHCP ser

CVE-2026-56116 HIGH
7.1 Jun 23

Denial of service in dhcpcd through version 10.3.2 allows an adjacent-network attacker to exhaust memory in the daemon b

CVE-2014-7913 MEDIUM
6.8 Jul 30

The print_option function in dhcp-common.c in dhcpcd through 6.9.1, as used in dhcp.c in dhcpcd 5.x in Android before 5.

CVE-2014-7912 MEDIUM
6.8 Jul 30

The get_option function in dhcp.c in dhcpcd before 6.2.0, as used in dhcpcd 5.x in Android before 5.1 and other products

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.0 Affected
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.0 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Micro 6.2 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy