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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gnu:bison:3.7:*:*:*:*:*:*:*

History

21 Nov 2024, 05:14

Type Values Removed Values Added
References () https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d - Patch, Third Party Advisory () https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d - Patch, Third Party Advisory
References () https://github.com/akimd/bison/compare/v3.7...v3.7.1 - Third Party Advisory () https://github.com/akimd/bison/compare/v3.7...v3.7.1 - Third Party Advisory
References () https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html - Mailing List, Vendor Advisory () https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html - Mailing List, Vendor Advisory

Information

Published : 2020-08-25 14:15

Updated : 2024-11-21 05:14


NVD link : CVE-2020-24240

Mitre link : CVE-2020-24240

CVE.ORG link : CVE-2020-24240


JSON object : View

Products Affected

gnu

  • bison
CWE
CWE-416

Use After Free