Ubuntu 18.04 LTS / 20.04 LTS / 22.04 LTS : Protocol Buffers vulnerabilities (USN-5945-1)

high Nessus Plugin ID 172495

Synopsis

The remote Ubuntu host is missing one or more security updates.

Description

The remote Ubuntu 18.04 LTS / 20.04 LTS / 22.04 LTS / 22.10 host has packages installed that are affected by multiple vulnerabilities as referenced in the USN-5945-1 advisory.

- An issue in protobuf-java allowed the interleaving of com.google.protobuf.UnknownFieldSet fields in such a way that would be processed out of order. A small malicious payload can occupy the parser for several minutes by creating large numbers of short-lived objects that cause frequent, repeated pauses. We recommend upgrading libraries beyond the vulnerable versions. (CVE-2021-22569)

- 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. (CVE-2021-22570)

- A parsing vulnerability for the MessageSet type in the ProtocolBuffers versions prior to and including 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 and 3.21.5 for protobuf-cpp, and versions prior to and including 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 and 4.21.5 for protobuf-python can lead to out of memory failures.
A specially crafted message with multiple key-value per elements creates parsing issues, and can lead to a Denial of Service against services receiving unsanitized input. We recommend upgrading to versions 3.18.3, 3.19.5, 3.20.2, 3.21.6 for protobuf-cpp and 3.18.3, 3.19.5, 3.20.2, 4.21.6 for protobuf-python. Versions for 3.16 and 3.17 are no longer updated. (CVE-2022-1941)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://ubuntu.com/security/notices/USN-5945-1

Plugin Details

Severity: High

ID: 172495

File Name: ubuntu_USN-5945-1.nasl

Version: 1.2

Type: local

Agent: unix

Published: 3/13/2023

Updated: 10/16/2023

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2021-22569

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS Score Source: CVE-2022-1941

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:18.04:-:lts, cpe:/o:canonical:ubuntu_linux:20.04:-:lts, cpe:/o:canonical:ubuntu_linux:22.04:-:lts, p-cpe:/a:canonical:ubuntu_linux:elpa-protobuf-mode, p-cpe:/a:canonical:ubuntu_linux:libprotobuf-dev, p-cpe:/a:canonical:ubuntu_linux:libprotobuf-java, p-cpe:/a:canonical:ubuntu_linux:libprotobuf-lite10, p-cpe:/a:canonical:ubuntu_linux:libprotobuf-lite17, p-cpe:/a:canonical:ubuntu_linux:libprotobuf-lite23, p-cpe:/a:canonical:ubuntu_linux:libprotobuf-lite8, p-cpe:/a:canonical:ubuntu_linux:libprotobuf10, p-cpe:/a:canonical:ubuntu_linux:libprotobuf17, p-cpe:/a:canonical:ubuntu_linux:libprotobuf23, p-cpe:/a:canonical:ubuntu_linux:libprotobuf8, p-cpe:/a:canonical:ubuntu_linux:libprotoc-dev, p-cpe:/a:canonical:ubuntu_linux:libprotoc10, p-cpe:/a:canonical:ubuntu_linux:libprotoc17, p-cpe:/a:canonical:ubuntu_linux:libprotoc23, p-cpe:/a:canonical:ubuntu_linux:libprotoc8, p-cpe:/a:canonical:ubuntu_linux:protobuf-compiler, p-cpe:/a:canonical:ubuntu_linux:python-protobuf, p-cpe:/a:canonical:ubuntu_linux:python3-protobuf, p-cpe:/a:canonical:ubuntu_linux:ruby-google-protobuf

Required KB Items: Host/cpu, Host/Ubuntu, Host/Ubuntu/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/13/2023

Vulnerability Publication Date: 1/10/2022

Reference Information

CVE: CVE-2021-22569, CVE-2021-22570, CVE-2022-1941

USN: 5945-1