]> git.ipfire.org Git - thirdparty/chrony.git/commit
addrfilt: fix access configuration with subnet size indivisible by 4
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 30 Mar 2015 12:41:37 +0000 (14:41 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 7 Apr 2015 14:35:16 +0000 (16:35 +0200)
commitcf19042ecb656b8afec0cc4906e7dd3ea9266ac8
tree7985c5cbe64059463acf1d838010e2e71319a026
parentd856bd34c4862398411d29200520e3a3b1d4569e
addrfilt: fix access configuration with subnet size indivisible by 4

When NTP or cmdmon access was configured (from chrony.conf or via
authenticated cmdmon) with a subnet size that is indivisible by 4 and
an address that has nonzero bits in the 4-bit subnet remainder (e.g.
192.168.15.0/22 or f000::/3), the new setting was written to an
incorrect location, possibly outside the allocated array.

An attacker that has the command key and is allowed to access cmdmon
(only localhost is allowed by default) could exploit this to crash
chronyd or possibly execute arbitrary code with the privileges of the
chronyd process.
addrfilt.c