{"id":"UBUNTU-CVE-2016-20040","details":"TiEmu 3.03-nogdb+dfsg-3 contains a buffer overflow vulnerability in the ROM parameter handling that allows local attackers to crash the application or execute arbitrary code. Attackers can supply an oversized ROM parameter to the tiemu command-line interface to overflow the stack buffer and overwrite the instruction pointer with malicious addresses.","modified":"2026-04-02T04:47:45Z","published":"2026-03-28T12:15:00Z","upstream":["CVE-2016-20040"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-20040"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-20040"},{"type":"REPORT","url":"https://www.exploit-db.com/exploits/39692"},{"type":"REPORT","url":"http://lpg.ticalc.org/prj_tiemu/"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/tiemu-nogdb-dfsg-3-buffer-overflow-via-rom-parameter"}],"affected":[{"package":{"name":"tiemu","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/tiemu@3.03-nogdb+dfsg-3?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.03-nogdb+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_name":"tiemu","binary_version":"3.03-nogdb+dfsg-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-20040.json"}},{"package":{"name":"tiemu","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/tiemu@3.04~git20110801-nogdb+dfsg-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04~git20110801-nogdb+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"tiemu","binary_version":"3.04~git20110801-nogdb+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-20040.json"}},{"package":{"name":"tiemu","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/tiemu@3.04~git20110801-nogdb+dfsg1-2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04~git20110801-nogdb+dfsg1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.04~git20110801-nogdb+dfsg1-2","binary_name":"tiemu"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-20040.json"}},{"package":{"name":"tiemu","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/tiemu@3.04~git20110801-nogdb+dfsg1-2build1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04~git20110801-nogdb+dfsg1-2","3.04~git20110801-nogdb+dfsg1-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"tiemu","binary_version":"3.04~git20110801-nogdb+dfsg1-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-20040.json"}},{"package":{"name":"tiemu","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/tiemu@3.04~git20220826.cda2db4+dfsg-2build2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04~git20220826.cda2db4+dfsg-2","3.04~git20220826.cda2db4+dfsg-2build1","3.04~git20220826.cda2db4+dfsg-2build2"],"ecosystem_specific":{"binaries":[{"binary_name":"tiemu","binary_version":"3.04~git20220826.cda2db4+dfsg-2build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-20040.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}