Local vulnerabilities in Kea DHCP
The SUSE Security Team has published a detailed report about security vulnerabilities it discovered in the Kea DHCP server suite from the Internet Systems Consortium (ISC).
Since SUSE is also going to ship Kea DHCP in its products, we performed a routine review of its code base. Even before checking the network security of Kea, we stumbled over a range of local security issues, among them a local root exploit which is possible in many default installations of Kea on Linux and BSD distributions. [...]
This report is based on Kea release 2.6.1. Any source code references in this report relate to this version. Many systems still ship older releases of Kea, but we believe they are all affected as well by the issues described in this report.
The report details seven security issues including local-privilege-escalation and arbitrary file overwrite vulnerabilities. Security fixes for the vulnerabilities have been published in all of the currently supported release series of Kea: 2.4.2, 2.6.3, and the 2.7.9 development release were all released on May 28. Kea has assigned CVE-2025-32801, CVE-2025-32802, and CVE-2025-32803 to the vulnerabilities. Note that some of the CVEs cover multiple security flaws.
Posted May 29, 2025 18:50 UTC (Thu)
by tbleher (guest, #48307)
[Link]
Posted May 29, 2025 19:00 UTC (Thu)
by job (guest, #670)
[Link] (12 responses)
Posted May 30, 2025 13:11 UTC (Fri)
by Sesse (subscriber, #53779)
[Link] (11 responses)
I agree that Kea is overly complex; it fixes an issue almost nobody has (performance in installation with 100k+ nodes) in exchange for a bazillion daemons and a codebase that takes ages to compile even on my 5950X.
Posted May 30, 2025 14:35 UTC (Fri)
by zdzichu (subscriber, #17118)
[Link] (1 responses)
That's why Meta ❤️ Kea.
> a bazillion daemons
Where?
CGroup: /system.slice/kea-dhcp4.service
Posted May 30, 2025 14:40 UTC (Fri)
by Sesse (subscriber, #53779)
[Link]
Posted May 30, 2025 14:51 UTC (Fri)
by DemiMarie (subscriber, #164188)
[Link] (7 responses)
Posted May 30, 2025 14:54 UTC (Fri)
by Sesse (subscriber, #53779)
[Link] (6 responses)
Posted May 31, 2025 19:44 UTC (Sat)
by DemiMarie (subscriber, #164188)
[Link] (5 responses)
The documentation at https://kb.isc.org/docs/kea-performance-optimization is clear that external lease file backends are expensive, so presumably there are users for which this is a problem. External lease file backend would not be a performance problem in a system that operates as I described above: they would only impact latency, not throughput.
Posted May 31, 2025 20:07 UTC (Sat)
by Sesse (subscriber, #53779)
[Link] (4 responses)
Posted Jun 1, 2025 4:37 UTC (Sun)
by DemiMarie (subscriber, #164188)
[Link] (3 responses)
Posted Jun 1, 2025 7:32 UTC (Sun)
by Sesse (subscriber, #53779)
[Link] (2 responses)
Posted Jun 1, 2025 11:40 UTC (Sun)
by andresfreund (subscriber, #69562)
[Link] (1 responses)
Posted Jun 2, 2025 18:59 UTC (Mon)
by DemiMarie (subscriber, #164188)
[Link]
Posted Jun 3, 2025 4:13 UTC (Tue)
by raven667 (subscriber, #5198)
[Link]
I imagine the Enterprise distros that shipped dhcpd in their last release will continue to maintain it for the next 5+ years, and it's not as if there should be a ton of maintenance in such a mature codebase.
Posted May 29, 2025 20:54 UTC (Thu)
by bferrell (subscriber, #624)
[Link] (11 responses)
So... Suse selected a not yet complete project and wrote up the flaws.
The good news is that dhcpcd (used mostly in debian based distros at one time) wasn't used by default. I've not done a modern deb install in a while so it may still be in use.
I spent a full 36 hours troubleshooting an odd behavior... If ISC dhcp is set to send extra routes, the last extra route ends up the default route for dhcpcd. A lot of fiddling with ISC dhcpd will get dhcpcd to work right... But then it breaks dhcp in iphones, android devices, "smart" plugs and Windows.
The machines that caused me to look into it (raspberry pi) got dhcpcd yanked and the ISC dhcp client installed.
Yes, I DID discuss it with the dev and gave up. It does faithfully support an obscure RFC. But the RFC is broken (as far as I'm concerned).
Posted May 29, 2025 21:23 UTC (Thu)
by rschroev (subscriber, #4164)
[Link] (9 responses)
"ISC has announced the end of maintenance for ISC DHCP as of the end of 2022. ISC will continue providing professional support services for existing subscribers, but does not intend to issue any further maintenance releases. For resources that may help in migrating your existing ISC DHCP server deployment to our newer DHCP server, Kea, please see this page.
ISC DHCP was a complete open source solution for implementing DHCP servers, relay agents, and clients."
Clearly the ISC really wants you to use Kea instead of ISC DHCP server. You don't want to run network software that hasn't been maintained since 2022.
It does feel weird that ISC doesn't have a client or relay agent anymore. Did people migrate to other solutions?
Posted May 30, 2025 9:43 UTC (Fri)
by jengelh (guest, #33263)
[Link]
I migrated to IPv6/SLAAC :-p
Posted May 30, 2025 10:08 UTC (Fri)
by joib (subscriber, #8541)
[Link] (4 responses)
I'm not aware of any maintained open source relay agent. One particular brand of switches I'm aware of hasn't migrated off isc dhcp relay, presumably the vendor is supporting it themselves.
Posted May 30, 2025 16:46 UTC (Fri)
by auerswal (subscriber, #119876)
[Link] (1 responses)
Posted May 30, 2025 18:38 UTC (Fri)
by joib (subscriber, #8541)
[Link]
Posted Jun 1, 2025 13:18 UTC (Sun)
by bferrell (subscriber, #624)
[Link] (1 responses)
I spent a full 36 hours troubleshooting an odd behavior... If ISC dhcp is set to send extra routes, the last extra route ends up the default route for dhcpcd. A lot of fiddling with ISC dhcpd will get dhcpcd to work right... But then it breaks dhcp in iphones, android devices, "smart" plugs and Windows.
The machine that prompted me to investigate (a Raspberry Pi) had dhcpcd removed and the ISC DHCP client installed.
Yes, I DID discuss it with the dev and gave up. It does faithfully support an obscure RFC. But the RFC is broken (as far as I'm concerned).
Posted Jun 2, 2025 15:18 UTC (Mon)
by hmh (subscriber, #3838)
[Link]
Posted May 30, 2025 13:13 UTC (Fri)
by Sesse (subscriber, #53779)
[Link]
Posted May 30, 2025 14:52 UTC (Fri)
by DemiMarie (subscriber, #164188)
[Link]
Posted Jun 4, 2025 0:02 UTC (Wed)
by fratti (guest, #105722)
[Link]
You are talking to a Debian user. They only run software that hasn't been maintained since 2022.
Posted May 30, 2025 18:33 UTC (Fri)
by gherkin (guest, #177675)
[Link]
"The relay was never really popular - people mostly used their ethernet switches features for relaying - but it provided value by being a “tool in the toolbox” so to speak, useful in a pinch."
And the relay and client functionality was EoL'd from ISC DHCP about a year and a half before the rest of the project, so it's perhaps understandable that ISC saw little demand for that functionality in Kea from their sponsors and other funding sources.
https://www.isc.org/dhcphistory/ was interesting too, particularly Kea's origins in BIND 10.
(Given the links to BIND 10, and that era at ISC, I'd suspect that there are probably some fun bits of history that didn't make it past the PR machine ;) )
Thanks to the SUSE team!
Kea
Kea
Kea
└─3797 /usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf
Kea
Kea
Kea
Kea’s missing transaction batching
Kea’s missing transaction batching
Kea’s missing transaction batching
Kea’s missing transaction batching
Kea’s missing transaction batching
PostgreSQL parallelism
Kea
From the ISC web site
From the ISC web site
From the ISC web site
NetworkManager has its own client. And some people might have gone with udhcp or systemd-networkd.
From the ISC web site
From the ISC web site
From the ISC web site
From the ISC web site
From the ISC web site
From the ISC web site
OpenBSD dhcpd?
From the ISC web site
From the ISC web site