5.7medium
dhcpcd Heap Use-After-Free via Control Socket Handling
- Severity
- 5.7medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.09% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| NetworkConfiguration dhcpcd | up to 10.3.2 Not affected: 78ea09ed1633a583dbcde6e7bab9df4639ec8a34 | CVE List |
| dhcpcd_project dhcpcd | up to 10.3.2 | NVD |
All scores
| VulnCheck | 5.7medium CVSS:4.0 | 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 |
| VulnCheck | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
dhcpcd hasta la versión 10.3.2, corregido en el commit 78ea09e, contiene una vulnerabilidad de uso después de liberación (use-after-free) en el heap en el manejo del socket de control dentro de src/control.c que permite a atacantes locales sin privilegios desencadenar corrupción de memoria cuando la separación de privilegios está deshabilitada. Los atacantes pueden conectarse al socket de control y enviar un comando privilegiado como -x, lo que provoca que control_recvdata() libere el objeto cliente mientras que el mismo evento READ+HANGUP llega posteriormente a control_hangup() con el puntero obsoleto, lo que resulta en una condición de uso después de liberación (use-after-free) explotable en implementaciones que utilizan --disable-privsep o donde la inicialización de privsep ha fallado con el socket de control operando en modo 0666.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56117 changed 2026-07-28 | CVE Terms of Use |
| NVD | CVE-2026-56117 changed 2026-10-25 | Public domain |