DescriptionGNU 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
bison (PTS)stretch2:3.0.4.dfsg-1fixed
bookworm, sid2:3.8.2+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
bisonsourcestretch(not affected)
bisonsourcebuster(not affected)


[buster] - bison <not-affected> (Vulnerable code introduced later)
[stretch] - bison <not-affected> (Vulnerable code introduced later)
Introduced by: (v3.5.91)
Fixed by: (v3.7.1)
Crash in CLI tool, no security impact

Search for package or bug name: Reporting problems