6.0medium
dhcpcd Heap Use-After-Free in dhcp6_deprecateaddrs via DHCPv6 RENEW
- Severity
- 6.0medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
dhcpcd through 10.3.2, fixed in commit 5733d3c, contains a heap use-after-free vulnerability that allows unauthenticated same-link attackers to crash the daemon by sending a crafted DHCPv6 RENEW reply with RFC6603 OPTION_PD_EXCLUDE and both preferred and valid lifetimes set to zero. Attackers acting as or impersonating a DHCPv6 server can trigger dhcp6_deprecatedele() to free a delegated child address while an outer TAILQ_FOREACH_SAFE iterator in dhcp6_deprecateaddrs() still holds the freed pointer, causing a use-after-free when TAILQ_REMOVE is reached.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| NetworkConfiguration dhcpcd | up to 10.3.2 Not affected: 5733d3c59a5651f64357ac11c98b4f39895c8d25 | CVE List |
| dhcpcd_project dhcpcd | up to 10.3.2 | NVD |
All scores
| VulnCheck | 6.0medium CVSS:4.0 | CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 5.3medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/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 5733d3c, contains a heap use-after-free vulnerability that allows unauthenticated same-link attackers to crash the daemon by sending a crafted DHCPv6 RENEW reply with RFC6603 OPTION_PD_EXCLUDE and both preferred and valid lifetimes set to zero. Attackers acting as or impersonating a DHCPv6 server can trigger dhcp6_deprecatedele() to free a delegated child address while an outer TAILQ_FOREACH_SAFE iterator in dhcp6_deprecateaddrs() still holds the freed pointer, causing a use-after-free when TAILQ_REMOVE is reached.
NVD (es)
dhcpcd hasta la versión 10.3.2, corregido en el commit 5733d3c, contiene una vulnerabilidad de uso después de liberación en el heap que permite a atacantes no autenticados en el mismo enlace bloquear el demonio enviando una respuesta DHCPv6 RENEW manipulada con RFC6603 OPTION_PD_EXCLUDE y con ambas duraciones preferida y válida establecidas a cero. Atacantes que actúan como o suplantan a un servidor DHCPv6 pueden activar dhcp6_deprecatedele() para liberar una dirección secundaria delegada mientras un iterador TAILQ_FOREACH_SAFE externo en dhcp6_deprecateaddrs() aún mantiene el puntero liberado, causando un uso después de liberación cuando se alcanza TAILQ_REMOVE.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56113 changed 2026-07-28 | CVE Terms of Use |
| NVD | CVE-2026-56113 changed 2026-10-25 | Public domain |