Bug 1300268 (CVE-2015-7976) - CVE-2015-7976 ntp: 'ntpq saveconfig' command allows dangerous characters in filenames
Summary: CVE-2015-7976 ntp: 'ntpq saveconfig' command allows dangerous characters in f...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2015-7976
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1300277
Blocks: 1297474
TreeView+ depends on / blocked
 
Reported: 2016-01-20 11:42 UTC by Martin Prpič
Modified: 2021-02-17 04:29 UTC (History)
2 users (show)

Fixed In Version: ntp 4.2.8p6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-20 14:34:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Martin Prpič 2016-01-20 11:42:08 UTC
The ntpq saveconfig command does not do adequate filtering of special characters from the supplied filename. Note: the ability to use the saveconfig command is controlled by the 'restrict nomodify' directive, and the recommended default configuration is to disable this capability. If the ability to execute a 'saveconfig' is required, it can easily (and should) be limited and restricted to a known small number of IP addresses.

Upstream patches:

https://github.com/ntp-project/ntp/commit/3680c2e4d5f88905ce062c7b43305d610a2c9796
https://github.com/ntp-project/ntp/commit/7fe04606062ed674db3b9553d32dedad29504d61

Comment 2 Martin Prpič 2016-01-20 12:01:52 UTC
Created ntp tracking bugs for this issue:

Affects: fedora-all [bug 1300277]

Comment 3 Martin Prpič 2016-01-20 14:34:52 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Comment 4 Martin Prpič 2016-02-01 08:50:30 UTC
Mitigation:

Use the 'restrict default nomodify' directive in ntp.conf to disable modification of ntp.conf via the ntpq command.


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