#1148659 dhcpcd: 50-timesyncd.conf hook creates malformed NTP server list (superfluous spaces)

#1148659#5
Date:
2026-09-21 15:37:28 UTC
From:
To:
Version: 1:10.1.0-11+deb13u4

Severity: normal

Description: In Debian 13 (Trixie), the dhcpcd hook for
systemd-timesyncd (50-timesyncd.conf) generates a malformed string for
NTP servers under certain DHCPv6 conditions. It injects superfluous
spaces into the variables, which subsequently prevents
systemd-timesyncd from parsing the network-assigned NTP servers
correctly. Furthermore, any manual corrections applied to the hook
file within the system are overwritten and reverted upon every package
upgrade (apt upgrade).

Upstream Fix:
This issue has already been identified and resolved upstream in the
NetworkConfiguration/dhcpcd repository about six months ago. The fix
cleans up the new_ntp_servers string construction:

Upstream Commit: https://github.com/NetworkConfiguration/dhcpcd/commit/84c95b689c3903a66b6f5688ee26696be8c3ad60

Steps to reproduce:

   1. Use dhcpcd on a network providing NTP servers via DHCPv6.
   2. Observe the generated configuration snippet for systemd-timesyncd.
   3. The server list contains syntax-breaking spaces.

Please consider backporting this specific commit to the Debian package
to fix the configuration generation and prevent updates from
overwriting local stability fixes.