Use After Free in GNU Bison
CVE-2020-24240
GNU Bison before 3.7.1 has a use-after-free in _obstack_free in lib/obstack.c (called from gram_lex) when a '\0' byte is encountered. NOTE: there is a risk only if Bison is used with untrusted input, and the observed bug happens to cause unsafe behavior with a specific compiler/architecture. The bug report was intended to show that a crash may occur in Bison itself, not that a crash may occur in code that is generated by Bison.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.013, 70.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GNU Bison — versions 3.7
Weakness classification (CWE)
References
- github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d (Patch, Third Party Advisory)
- lists.gnu.org/r/bug-bison/2020-07/msg00051.html (Mailing List, Vendor Advisory)
- github.com/akimd/bison/compare/v3.7...v3.7.1 (Third Party Advisory)