Vulnerability · Published Aug 25, 2020 · Assigned by mitre
CVE-2020-24240
Medium 5.5
In plain English
A medium-severity security flaw in the bison package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | bison | 3.7.2-r0 | ALPINE-CVE-2020-24240 |
| Alpine:v3.21 | bison | 3.7.2-r0 | ALPINE-CVE-2020-24240 |
| Alpine:v3.22 | bison | 3.7.2-r0 | ALPINE-CVE-2020-24240 |
| Alpine:v3.23 | bison | 3.7.2-r0 | ALPINE-CVE-2020-24240 |
| Alpine:v3.24 | bison | 3.7.2-r0 | ALPINE-CVE-2020-24240 |
| Debian:12 | bison | 2:3.7.2+dfsg-1 | DEBIAN-CVE-2020-24240 |
| Debian:13 | bison | 2:3.7.2+dfsg-1 | DEBIAN-CVE-2020-24240 |
| Debian:14 | bison | 2:3.7.2+dfsg-1 | DEBIAN-CVE-2020-24240 |
Affected products (as reported)
References
- https://github.com/akimd/bison/commit/be95a4fe2951374676efc9454ffee8638faaf68d x_refsource_MISC
- https://lists.gnu.org/r/bug-bison/2020-07/msg00051.html x_refsource_MISC
- https://github.com/akimd/bison/compare/v3.7...v3.7.1 x_refsource_MISC