UBUNTU-CVE-2021-22570

Source
https://ubuntu.com/security/CVE-2021-22570
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-22570.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-22570
Related
Published
2022-01-26T14:15:00Z
Modified
2024-11-20T12:17:46Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

Nullptr dereference when a null char is present in a proto symbol. The symbol is parsed incorrectly, leading to an unchecked call into the proto file's name during generation of the resulting error message. Since the symbol is incorrectly parsed, the file is nullptr. We recommend upgrading to version 3.15.0 or greater.

References

Affected packages

Ubuntu:Pro:14.04:LTS / protobuf

Package

Name
protobuf
Purl
pkg:deb/ubuntu/protobuf?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.0-9ubuntu1+esm1

Affected versions

2.*

2.4.1-3ubuntu2
2.4.1-3ubuntu3
2.4.1-3ubuntu4
2.5.0-5ubuntu2
2.5.0-7ubuntu1
2.5.0-8ubuntu1
2.5.0-9ubuntu1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotobuf-dev"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotobuf-java"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotobuf-lite8"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotobuf-lite8-dbgsym"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotobuf8"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotobuf8-dbgsym"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotoc-dev"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotoc8"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "libprotoc8-dbgsym"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "protobuf-compiler"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "protobuf-compiler-dbgsym"
        },
        {
            "binary_version": "2.5.0-9ubuntu1+esm1",
            "binary_name": "python-protobuf"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / protobuf

Package

Name
protobuf
Purl
pkg:deb/ubuntu/protobuf?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6.1-1.3ubuntu0.1~esm1

Affected versions

2.*

2.6.1-1.2
2.6.1-1.3

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotobuf-dev"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotobuf-java"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotobuf-lite9v5"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotobuf-lite9v5-dbgsym"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotobuf9v5"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotobuf9v5-dbgsym"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotoc-dev"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotoc9v5"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "libprotoc9v5-dbgsym"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "protobuf-compiler"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "protobuf-compiler-dbgsym"
        },
        {
            "binary_version": "2.6.1-1.3ubuntu0.1~esm1",
            "binary_name": "python-protobuf"
        }
    ]
}

Ubuntu:18.04:LTS / protobuf

Package

Name
protobuf
Purl
pkg:deb/ubuntu/protobuf?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.0-9.1ubuntu1.1

Affected versions

3.*

3.0.0-9ubuntu5
3.0.0-9ubuntu6
3.0.0-9.1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotobuf-dev"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotobuf-java"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotobuf-lite10"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotobuf-lite10-dbgsym"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotobuf10"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotobuf10-dbgsym"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotoc-dev"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotoc10"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "libprotoc10-dbgsym"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "protobuf-compiler"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "protobuf-compiler-dbgsym"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "python-protobuf"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "python-protobuf-dbgsym"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "python3-protobuf"
        },
        {
            "binary_version": "3.0.0-9.1ubuntu1.1",
            "binary_name": "python3-protobuf-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / protobuf

Package

Name
protobuf
Purl
pkg:deb/ubuntu/protobuf?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.6.1.3-2ubuntu5.2

Affected versions

3.*

3.6.1.3-2
3.6.1.3-2ubuntu1
3.6.1.3-2ubuntu3
3.6.1.3-2ubuntu4
3.6.1.3-2ubuntu5

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotobuf-dev"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotobuf-java"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotobuf-lite17"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotobuf-lite17-dbgsym"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotobuf17"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotobuf17-dbgsym"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotoc-dev"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotoc17"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "libprotoc17-dbgsym"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "protobuf-compiler"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "protobuf-compiler-dbgsym"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "python-protobuf"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "python-protobuf-dbgsym"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "python3-protobuf"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "python3-protobuf-dbgsym"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "ruby-google-protobuf"
        },
        {
            "binary_version": "3.6.1.3-2ubuntu5.2",
            "binary_name": "ruby-google-protobuf-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / protobuf

Package

Name
protobuf
Purl
pkg:deb/ubuntu/protobuf?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.12.4-1ubuntu7.22.04.1

Affected versions

3.*

3.12.4-1ubuntu3
3.12.4-1ubuntu5
3.12.4-1ubuntu6
3.12.4-1ubuntu7

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "elpa-protobuf-mode"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotobuf-dev"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotobuf-java"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotobuf-lite23"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotobuf-lite23-dbgsym"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotobuf23"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotobuf23-dbgsym"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotoc-dev"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotoc23"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "libprotoc23-dbgsym"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "protobuf-compiler"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "protobuf-compiler-dbgsym"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "python3-protobuf"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "python3-protobuf-dbgsym"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "ruby-google-protobuf"
        },
        {
            "binary_version": "3.12.4-1ubuntu7.22.04.1",
            "binary_name": "ruby-google-protobuf-dbgsym"
        }
    ]
}