UBUNTU-CVE-2020-24240

Source
https://ubuntu.com/security/CVE-2020-24240
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-24240.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2020-24240
Upstream
Published
2020-08-25T14:15:00Z
Modified
2026-04-22T12:34:32Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - low
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:16.04:LTS / bison

Package

Name
bison
Purl
pkg:deb/ubuntu/bison@2:3.0.4.dfsg-1?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2:3.*
2:3.0.2.dfsg-2
2:3.0.4.dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "bison",
            "binary_version": "2:3.0.4.dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-24240.json"

Ubuntu:18.04:LTS / bison

Package

Name
bison
Purl
pkg:deb/ubuntu/bison@2:3.0.4.dfsg-1build1?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2:3.*
2:3.0.4.dfsg-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "bison",
            "binary_version": "2:3.0.4.dfsg-1build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-24240.json"

Ubuntu:20.04:LTS / bison

Package

Name
bison
Purl
pkg:deb/ubuntu/bison@2:3.5.1+dfsg-1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2:3.*
2:3.4.1+dfsg-4
2:3.4.2+dfsg-1
2:3.5.1+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "bison",
            "binary_version": "2:3.5.1+dfsg-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-24240.json"

Ubuntu:22.04:LTS / bison

Package

Name
bison
Purl
pkg:deb/ubuntu/bison@2:3.8.2+dfsg-1build1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2:3.*
2:3.7.6+dfsg-1build1
2:3.8.2+dfsg-1
2:3.8.2+dfsg-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "bison",
            "binary_version": "2:3.8.2+dfsg-1build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-24240.json"