{"id":"UBUNTU-CVE-2019-12495","details":"An issue was discovered in Tiny C Compiler (aka TinyCC or TCC) 0.9.27. Compiling a crafted source file leads to a one-byte out-of-bounds write in the gsym_addr function in x86_64-gen.c. This occurs because tccasm.c mishandles section switches.","modified":"2026-04-22T12:08:54.757805Z","published":"2019-05-31T11:29:00Z","upstream":["CVE-2019-12495"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-12495"},{"type":"REPORT","url":"https://lists.nongnu.org/archive/html/tinycc-devel/2019-05/msg00044.html"},{"type":"REPORT","url":"https://repo.or.cz/tinycc.git/commit/d04ce7772c2bc2781ab2502e0b1f1964488814b5"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-12495"}],"affected":[{"package":{"name":"tcc","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/tcc@0.9.27~git20151227.933c223-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.27~git20140923.9d7fb33-3ubuntu1","0.9.27~git20151227.933c223-1"],"ecosystem_specific":{"binaries":[{"binary_name":"tcc","binary_version":"0.9.27~git20151227.933c223-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12495.json"}},{"package":{"name":"tcc","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/tcc@0.9.27-5?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.27~git20161217.cd9514ab-3ubuntu1","0.9.27-2","0.9.27-4","0.9.27-5"],"ecosystem_specific":{"binaries":[{"binary_name":"tcc","binary_version":"0.9.27-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12495.json"}},{"package":{"name":"tcc","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/tcc@0.9.27-8?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.27-8"],"ecosystem_specific":{"binaries":[{"binary_name":"tcc","binary_version":"0.9.27-8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-12495.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}