Advisory

DEBIAN-CVE-2020-26243

Also known as: CVE-2020-26243

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2020-11-25 17:15 UTC
Modified
2026-10-26 12:01 UTC

Affected packages and fixes

nanopb

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 0.4.4-1 (ecosystem)

Fixed versions

0.4.4-1

Fix

  • Fixed version 0.4.4-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

nanopb

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 0.4.4-1 (ecosystem)

Fixed versions

0.4.4-1

Fix

  • Fixed version 0.4.4-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

nanopb

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 0.4.4-1 (ecosystem)

Fixed versions

0.4.4-1

Fix

  • Fixed version 0.4.4-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences