CVE-2019-12495 Memory corruption in n/a
A one-byte out-of-bounds write in Tiny C Compiler allows attackers to execute arbitrary code or cause denial of service by providing a crafted source file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-12495?
CVE-2019-12495 is a medium-severity memory corruption vulnerability in n/a, published on 31 May 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2019-12495?
It affects 1 product.
Products include Tinycc Tinycc.
How do I fix CVE-2019-12495?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2019-12495 being exploited?
There is no known exploitation of CVE-2019-12495 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2019-12495, GHSA-pv69-3373-mhhq, UBUNTU-CVE-2019-12495.