Bug 479972 - ntpd reveals kernel version on server system
Summary: ntpd reveals kernel version on server system
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ntp
Version: 5.2
Hardware: i686
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Miroslav Lichvar
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-14 11:00 UTC by Peder Strand
Modified: 2009-01-14 13:08 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-14 13:08:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peder Strand 2009-01-14 11:00:31 UTC
Description of problem:
If you are allowing other systems to syncronize time from an ntpd timeserver you also automatically give away ntpd server version and the exact kernel version of your server system.

ntp-4.2.2p1-8.el5
Seems to be the same on Fedora, Redhat 4 and 5.

Steps to Reproduce:
ntpq -c readvar your.ntp.server

gives 

...
version="ntpd 4.2.2p1
processor="i686", system="Linux/2.6.18-92.1.22.el5", leap=00,
...

There should be a way to turn this behaviour off, or have it turned off permanently.

Comment 1 Miroslav Lichvar 2009-01-14 11:18:21 UTC
This can be configured by adding noquery keyword to the restrict command. The default ntp.conf has it included in default restrict, so this shouldn't be a problem:

restrict default kod nomodify notrap nopeer noquery

Maybe you have more restrict commands specified in ntp.conf that allow the clients to query the server?

Comment 2 Peder Strand 2009-01-14 12:32:03 UTC
If the noquery option is used then it's no timeserver anymore.

The problem is that if you allow other hosts to syncronize time you must give away the system information too. 

This behaviour seems to compiled in the daemon and cannot be turned off.

It's not good to have the kernel patchlevel on the timeservers accessible for everyone.

One way to solve it might be a patch applied in the ntp source rpm, preventing this information to be sent to the remote server.

Comment 3 Miroslav Lichvar 2009-01-14 13:08:43 UTC
No, noquery just denies ntpq and ntpdc queries. See the ntp_acc(5) manpage or documentation in /usr/share/doc/ntp-*.

The default ntp.conf denies the queries and doesn't block serving time.


Note You need to log in before you can comment on or make changes to this bug.