DHCPv6 too strict when the response is missing IAID for some sections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Systemd incorrectly ignores whole messages when IAID is missing for some sections.
This has been reported upstream [1] and fixed [2].
$ lsb_release -rd
Description: Ubuntu 21.04
Release: 21.04
$ apt-cache policy systemd
systemd:
Installed: 247.3-3ubuntu3.6
Candidate: 247.3-3ubuntu3.6
Version table:
*** 247.3-3ubuntu3.6 500
500 http://
100 /var/lib/
247.
500 http://
247.3-3ubuntu3 500
500 http://
What is expected to happen is that systemd will ignore only the relevant part of the message, not the entire message.
What is happening is that the entire message is ignored, leading to DHCP leases not being renewed. This is fairly easy to replicate e.g in AWS by enabling both an IPv6 prefix and an IPv6 single address to the same interface.
[1] https:/
[2] https:/
Related branches
- Dan Streetman (community): Needs Fixing
-
Diff: 295 lines (+63/-42)4 files modifiedsrc/libsystemd-network/dhcp6-internal.h (+1/-1)
src/libsystemd-network/dhcp6-option.c (+32/-3)
src/libsystemd-network/sd-dhcp6-client.c (+4/-25)
src/libsystemd-network/test-dhcp6-client.c (+26/-13)
Status changed to 'Confirmed' because the bug affects multiple users.