Out-of-bounds write in tinycc - CVE-2019-12495

 

Out-of-bounds write in tinycc - CVE-2019-12495

Published: May 31, 2019 / Updated: August 8, 2020


Vulnerability identifier: #VU35867
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2019-12495
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: TinyCC
Affected software:
tinycc

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.

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.


How to mitigate CVE-2019-12495

Install update from vendor's website.

Sources