
CVE catalog
CVE-2019-12495
tcc: CVE-2019-12495
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.22% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | tcc | sid | 0.9.27+git20200814.62c30a4a-2 | fixed |
| Debian | tcc | trixie | 0.9.27+git20200814.62c30a4a-2 | fixed |
| Debian | tcc | bookworm | 0.9.27+git20200814.62c30a4a-1 | fixed |
| Ubuntu | tcc | 16.04 | 0.9.27~git20140923.9d7fb33-3ubuntu1 | vulnerable |
| Ubuntu | tcc | 16.04 | 0.9.27~git20151227.933c223-1 | vulnerable |
| Ubuntu | tcc | 18.04 | 0.9.27~git20161217.cd9514ab-3ubuntu1 | vulnerable |
| Ubuntu | tcc | 18.04 | 0.9.27-2 | vulnerable |
| Ubuntu | tcc | 18.04 | 0.9.27-4 | vulnerable |
| Ubuntu | tcc | 18.04 | 0.9.27-5 | vulnerable |
| Ubuntu | tcc | 20.04 | 0.9.27-8 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | tcc | source | sid | 0.9.27+git20200814.62c30a4a-1 | not yet assigned | Not reported | [929872] |
| Debian | tcc | source | trixie | 0.9.27+git20200814.62c30a4a-1 | not yet assigned | Not reported | [929872] |
| Debian | tcc | source | bookworm | 0.9.27+git20200814.62c30a4a-1 | not yet assigned | Not reported | [929872] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libtcc-dev]Fixed
Source package: [tcc]
Details (2)
0.9.27+git20200814.62c30a4a-1· amd64 · bookwormFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · bookworm; dsa · tcc · debian · 12
0.9.27+git20200814.62c30a4a-1· arm64 · bookwormFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · bookworm; dsa · tcc · debian · 12
- [tcc]Fixed
Details (2)
0.9.27+git20200814.62c30a4a-1· amd64 · bookwormFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · bookworm; dsa · tcc · debian · 12
0.9.27+git20200814.62c30a4a-1· arm64 · bookwormFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · bookworm; dsa · tcc · debian · 12
[Debian 13 (Trixie)]
- [libtcc-dev]Fixed
Source package: [tcc]
Details (2)
0.9.27+git20200814.62c30a4a-2· amd64 · trixieFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · 13
0.9.27+git20200814.62c30a4a-2· arm64 · trixieFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · 13
- [tcc]Fixed
Details (2)
0.9.27+git20200814.62c30a4a-2· amd64 · trixieFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · 13
0.9.27+git20200814.62c30a4a-2· arm64 · trixieFixed · Fixed:
0.9.27+git20200814.62c30a4a-1dsa · tcc · debian · 13
Observed: