]> Git Repo - qemu.git/commit - ui/input-legacy.c
hmp: fix sendkey out of bounds write (CVE-2015-8619)
authorWolfgang Bumiller <[email protected]>
Wed, 13 Jan 2016 08:09:58 +0000 (09:09 +0100)
committerMarkus Armbruster <[email protected]>
Wed, 3 Feb 2016 09:13:06 +0000 (10:13 +0100)
commit64ffbe04eaafebf4045a3ace52a360c14959d196
tree57ccddbc02a6c706c89ff44f78ee62f65f9d397c
parentc65db7705b7926f4a084b93778e4bd5dd3990aad
hmp: fix sendkey out of bounds write (CVE-2015-8619)

When processing 'sendkey' command, hmp_sendkey routine null
terminates the 'keyname_buf' array. This results in an OOB
write issue, if 'keyname_len' was to fall outside of
'keyname_buf' array.

Since the keyname's length is known the keyname_buf can be
removed altogether by adding a length parameter to
index_from_key() and using it for the error output as well.

Reported-by: Ling Liu <[email protected]>
Signed-off-by: Wolfgang Bumiller <[email protected]>
Message-Id: <20160113080958.GA18934@olga>
[Comparison with "<" dumbed down, test for junk after strtoul()
tweaked]
Signed-off-by: Markus Armbruster <[email protected]>
hmp.c
include/ui/console.h
ui/input-legacy.c
This page took 0.02325 seconds and 4 git commands to generate.