{"id":"UBUNTU-CVE-2017-16845","details":"hw/input/ps2.c in Qemu does not validate 'rptr' and 'count' values during guest migration, leading to out-of-bounds access.","modified":"2026-02-04T02:31:06.941162Z","published":"2017-11-17T00:00:00Z","related":["USN-3575-1","USN-3649-1"],"upstream":["CVE-2017-16845"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-16845"},{"type":"REPORT","url":"https://lists.gnu.org/archive/html/qemu-devel/2017-11/msg02982.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3575-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3649-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-16845"}],"affected":[{"package":{"name":"qemu","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/qemu@1:2.5+dfsg-5ubuntu10.22?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.5+dfsg-5ubuntu10.22"}]}],"versions":["1:2.3+dfsg-5ubuntu9","1:2.3+dfsg-5ubuntu10","1:2.4+dfsg-4ubuntu1","1:2.4+dfsg-4ubuntu2","1:2.4+dfsg-4ubuntu3","1:2.4+dfsg-5ubuntu3","1:2.5+dfsg-1ubuntu2","1:2.5+dfsg-1ubuntu3","1:2.5+dfsg-1ubuntu4","1:2.5+dfsg-1ubuntu5","1:2.5+dfsg-5ubuntu1","1:2.5+dfsg-5ubuntu2","1:2.5+dfsg-5ubuntu4","1:2.5+dfsg-5ubuntu6","1:2.5+dfsg-5ubuntu7","1:2.5+dfsg-5ubuntu10","1:2.5+dfsg-5ubuntu10.1","1:2.5+dfsg-5ubuntu10.2","1:2.5+dfsg-5ubuntu10.3","1:2.5+dfsg-5ubuntu10.4","1:2.5+dfsg-5ubuntu10.5","1:2.5+dfsg-5ubuntu10.6","1:2.5+dfsg-5ubuntu10.7","1:2.5+dfsg-5ubuntu10.8","1:2.5+dfsg-5ubuntu10.9","1:2.5+dfsg-5ubuntu10.10","1:2.5+dfsg-5ubuntu10.11","1:2.5+dfsg-5ubuntu10.13","1:2.5+dfsg-5ubuntu10.14","1:2.5+dfsg-5ubuntu10.15","1:2.5+dfsg-5ubuntu10.16","1:2.5+dfsg-5ubuntu10.20","1:2.5+dfsg-5ubuntu10.21"],"ecosystem_specific":{"binaries":[{"binary_name":"qemu","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-block-extra","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-guest-agent","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-kvm","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-aarch64","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-arm","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-common","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-mips","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-misc","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-ppc","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-s390x","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-sparc","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-system-x86","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-user","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-user-binfmt","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-user-static","binary_version":"1:2.5+dfsg-5ubuntu10.22"},{"binary_name":"qemu-utils","binary_version":"1:2.5+dfsg-5ubuntu10.22"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16845.json"}},{"package":{"name":"qemu","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/qemu@1:2.11+dfsg-1ubuntu7.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.11+dfsg-1ubuntu7.1"}]}],"versions":["1:2.10+dfsg-0ubuntu3","1:2.10+dfsg-0ubuntu4","1:2.10+dfsg-0ubuntu5","1:2.11+dfsg-1ubuntu1","1:2.11+dfsg-1ubuntu2","1:2.11+dfsg-1ubuntu4","1:2.11+dfsg-1ubuntu5","1:2.11+dfsg-1ubuntu6","1:2.11+dfsg-1ubuntu7"],"ecosystem_specific":{"binaries":[{"binary_name":"qemu","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-block-extra","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-guest-agent","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-kvm","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-arm","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-common","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-mips","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-misc","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-ppc","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-s390x","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-sparc","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-system-x86","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-user","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-user-binfmt","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-user-static","binary_version":"1:2.11+dfsg-1ubuntu7.1"},{"binary_name":"qemu-utils","binary_version":"1:2.11+dfsg-1ubuntu7.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-16845.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}