← Übersicht Red Hat Enterprise Linux

Memory leak in nanopb

CVE-2020-26243 · DEBIAN-CVE-2020-26243 · GHSA-85rr-4rh9-hhwh · PYSEC-2026-684 · UBUNTU-CVE-2020-26243

Hoch · CVSS 7.5 SUSE: importantUbuntu: mediumRed Hat: Important Netzwerk · ohne Login Kein Fix bekannt

Veröffentlicht
25.11.2020
Zuletzt geändert
26.10.2026
EPSS (30 Tage)
2.7 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

Nanopb is a small code-size Protocol Buffers implementation. In Nanopb before versions 0.4.4 and 0.3.9.7, decoding specifically formed message can leak memory if dynamic allocation is enabled and an oneof field contains a static submessage that contains a dynamic field, and the message being decoded contains the submessage multiple times. This is rare in normal messages, but it is a concern when untrusted data is parsed. This is fixed in versions 0.3.9.7 and 0.4.4. The following workarounds are available: 1) Set the option `no_unions` for the oneof field. This will generate fields as separate instead of C union, and avoids triggering the problematic code. 2) Set the type of the submessage field inside oneof to `FT_POINTER`. This way the whole submessage will be dynamically allocated and the problematic code is not executed. 3) Use an arena allocator for nanopb, to make sure all memory can be released afterwards.

Status beim Hersteller

SUSE stuft seine Produktlinien ein: 1 betroffen, 1 behoben.

OpenShift Service Mesh 1 Betroffenwird nicht behoben servicemesh-proxy
openSUSE Tumbleweed Behoben libprotobuf-nanopb0-0.4.5-1.3, nanopb-devel-0.4.5-1.3, nanopb-source-0.4.5-1.3

Betroffene Pakete im beobachteten Stack

Red Hat:service_mesh:1servicemesh-proxykein Fix bekanntCVE-2020-26243
Weitere betroffene Pakete (11)
CVEnanopb/nanopbkein Fix bekanntCVE-2020-26243
Debian:12nanopb0.4.4-1DEBIAN-CVE-2020-26243
Debian:13nanopb0.4.4-1DEBIAN-CVE-2020-26243
Debian:14nanopb0.4.4-1DEBIAN-CVE-2020-26243
NVDnanopb_project:nanopb0.3.9.7, 0.4.0 → 0.4.4CVE-2020-26243
PyPInanopb0.4.0 → 0.4.4GHSA-85rr-4rh9-hhwh
PyPInanopb0.3.2 → 0.3.9.7GHSA-85rr-4rh9-hhwh
PyPInanopb0.3.2 → 0.3.9.7, 0.4.0 → 0.4.4PYSEC-2026-684
Ubuntu:Pro:20.04:LTSnanopb0.4.1-1ubuntu0.1~esm1UBUNTU-CVE-2020-26243
Ubuntu:Pro:20.04:LTSnanopb0.4.1-1ubuntu0.1~esm1USN-6121-1
openSUSE:Tumbleweednanopb0.4.5-1.3openSUSE-SU-2024:11074-1

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.