Secure config still picks up DHCP-advertised server
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| chrony (Ubuntu) |
Fix Released
|
Low
|
Lukas Märdian | ||
Bug Description
I installed questing snapshot-2, with the Network Time Security change. Checking "chronyc -n sources" afterwards shows the Canonical authenticated NTP servers as expected, but also includes a server on my local network. Some checking around showed that this is caused by (a) the DHCP server on the local net advertises this NTP server (DHCP option 42); (b) NetworkManager's DHCP client picks this up and invokes /usr/lib/
It seems that this defeats the goal of using only trusted servers by default.
A simple fix would be to comment out the "sourcedir /run/chrony-dhcp" in /etc/chrony/
ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: chrony 4.6.1-1ubuntu2
ProcVersionSign
Uname: Linux 6.15.0-3-generic x86_64
NonfreeKernelMo
ApportVersion: 2.33.0-0ubuntu1
Architecture: amd64
CasperMD5CheckR
Date: Sat Jun 28 09:52:53 2025
InstallationDate: Installed on 2025-06-28 (1 days ago)
InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Daily amd64 (20250623)
SourcePackage: chrony
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Jonas Jelten (community): Approve
- Lukas Märdian: Pending requested
- Canonical Server Reporter: Pending requested
- Canonical Server packageset reviewers: Pending requested
- Canonical Server Core Reviewers: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 1977 lines (+1579/-9)23 files modifieddebian/NEWS (+40/-0)
debian/README.container (+72/-0)
debian/changelog (+1115/-0)
debian/chrony.conf (+3/-2)
debian/chrony.config (+10/-0)
debian/chrony.default (+4/-0)
debian/chrony.examples (+1/-0)
debian/chrony.service (+3/-2)
debian/chronyd-starter.sh (+68/-0)
debian/conf.d/ubuntu-nts.conf (+6/-0)
debian/control (+4/-1)
debian/docs (+1/-0)
debian/install (+4/-0)
debian/nts-bootstrap-staging-ubuntu.crt (+11/-0)
debian/nts-bootstrap-ubuntu.crt (+11/-0)
debian/postinst (+26/-3)
debian/postrm (+14/-0)
debian/rules (+0/-1)
debian/templates (+12/-0)
debian/tests/control (+6/-0)
debian/tests/default-ubuntu-sources-behavior (+134/-0)
debian/ubuntu-ntp-pools.sources (+31/-0)
debian/usr.sbin.chronyd (+3/-0)
| Changed in chrony (Ubuntu): | |
| status: | New → Triaged |
| tags: | added: server-todo |
| tags: |
added: server-triage-discuss removed: server-todo |
| tags: | added: server-todo |
| Changed in chrony (Ubuntu): | |
| status: | Triaged → Fix Committed |

Here's an example of chronyc sources, before and after the suggested fix