Advisory

UBUNTU-CVE-2021-28877

Also known as: CVE-2021-28877

Summary

The record has no summary.

Details

In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

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
2021-04-11 20:15 UTC
Modified
2026-04-22 12:51 UTC

Affected packages and fixes

rustc

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2 (ecosystem)

Fixed versions

1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2

Fix

  • Fixed version 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2
    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: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences