]> git.ipfire.org Git - thirdparty/chrony.git/commit
cmdmon: fix initialization of allocated reply slots
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 30 Mar 2015 13:13:27 +0000 (15:13 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 7 Apr 2015 09:09:02 +0000 (11:09 +0200)
commit10b2b53aa77e915346ea0ad4eaae274a5ffb730c
treeacecb471293a6d06fddad46012280d25767ee2dd
parente18ee0bb4671ce1a2fcd7eb131d699651cedaa71
cmdmon: fix initialization of allocated reply slots

When allocating memory to save unacknowledged replies to authenticated
command requests, the last "next" pointer was not initialized to NULL.
When all allocated reply slots were used, the next reply could be
written to an invalid memory instead of allocating a new slot for it.

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.
cmdmon.c