Cloudanix VulnDB

CVE-2020-27350

Medium · 5.7

CVSS

5.7

EPSS

0.4%

Published

Dec 10, 2020

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the tool that installs and updates software on many Linux systems can let a privileged local user cause crashes or limited interference with package operations.

Exploitation
Local Privilege
Attacker needs
High Privilege
Complexity
Low
Impact
Data Tampering
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflows and underflows during .deb package parsing in apt-pkg/contrib/extracttar.cc, apt-pkg/deb/debfile.cc, and apt-pkg/contrib/arfile.cc result in memory corruption.

Why it matters to the business

Local attackers with administrative access on package-managed systems can trigger memory corruption that may lead to limited code execution or denial of service, affecting software installation and update processes across Debian, Ubuntu, and derivative deployments.

How an attack unfolds

An attacker with local administrative privileges supplies a specially crafted .deb archive that triggers the integer arithmetic errors during extraction or header processing, causing out-of-bounds memory access.

How to fix it

Upgrade apt to the fixed Ubuntu releases 1.2.32ubuntu0.2, 1.6.12ubuntu0.2, 2.0.2ubuntu0.2, or 2.1.10ubuntu0.1 (or later) on affected distributions; rebuild or replace packages on Debian-based systems once corrected builds are available.

How to confirm the fix worked

Confirm apt binary and library versions match or exceed the listed fixed releases; run package parsing tests against known-good and malformed .deb files; verify no crashes or incorrect memory handling occur.

Typical attack path

  1. Obtain local administrative access on a target system using apt
  2. Craft a malicious .deb package containing malformed archive headers or tar entries
  3. Invoke apt or dpkg operations that parse the package
  4. Trigger integer overflow/underflow leading to memory corruption

How to detect it

Review system logs for unexpected apt or dpkg crashes during package operations; inspect process core dumps or sanitizer reports indicating arithmetic errors in apt-pkg libraries.

What your security team should do

  • Prioritize patching apt on all internet-facing or multi-tenant systems within the next maintenance window
  • Restrict local administrative access to package management tools where feasible
  • Monitor vendor advisories for Debian and Ubuntu for backported fixes

The record

APT had several integer overflows and underflows while parsing .deb packages, aka GHSL-2020-168 GHSL-2020-169, in files apt-pkg/contrib/extracttar.cc, apt-pkg/deb/debfile.cc, and apt-pkg/contrib/arfile.cc. This issue affects: apt 1.2.32ubuntu0 versions prior to 1.2.32ubuntu0.2; 1.6.12ubuntu0 versions prior to 1.6.12ubuntu0.2; 2.0.2ubuntu0 versions prior to 2.0.2ubuntu0.2; 2.1.10ubuntu0 versions prior to 2.1.10ubuntu0.1;

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 apt 0 1.8.2.2
Debian:11 apt 0 2.1.13
Debian:12 apt 0 2.1.13
Debian:13 apt 0 2.1.13
Debian:9 apt 0 1.4.11
Ubuntu:14.04:LTS apt 0 1.0.1ubuntu2.24+esm3
Ubuntu:16.04:LTS apt 0 1.2.32ubuntu0.2
Ubuntu:18.04:LTS apt 0 1.6.12ubuntu0.2
Ubuntu:20.04:LTS apt 0 2.0.2ubuntu0.2
Ubuntu:Pro:14.04:LTS apt 0 1.0.1ubuntu2.24+esm3

Related vulnerabilities