UBUNTU-CVE-2021-28876

Source
https://ubuntu.com/security/CVE-2021-28876
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-28876.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-28876
Related
Published
2021-04-11T20:15:00Z
Modified
2024-12-18T16:39:58Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
[none]
Details

In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls _iteratorget_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

References

Affected packages

Ubuntu:Pro:14.04:LTS / rustc

Package

Name
rustc
Purl
pkg:deb/ubuntu/rustc?arch=src?distro=esm-infra-legacy/trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.15.1+dfsg0-1~exp1ubuntu2~14.04.7
1.17.0+dfsg2-8~ubuntu0.14.04.3
1.21.0+dfsg1+llvm-0ubuntu3~14.04.5
1.22.1+dfsg1+llvm-0ubuntu2~14.04.2
1.24.1+dfsg1+llvm-0ubuntu1~14.04.1
1.25.0+dfsg1+llvm-0ubuntu1~14.04.1
1.28.0+dfsg1+llvm-0ubuntu1~14.04.1
1.30.0+dfsg1+llvm-2ubuntu1~14.04.1
1.31.0+dfsg1+llvm-2ubuntu1~14.04.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / rustc

Package

Name
rustc
Purl
pkg:deb/ubuntu/rustc?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.7.0+dfsg1-1
1.15.1+dfsg0-1~exp1ubuntu2~16.04.3
1.17.0+dfsg2-8~ubuntu0.16.04.2
1.21.0+dfsg1+llvm-0ubuntu3~16.04.1
1.22.1+dfsg1+llvm-0ubuntu2~16.04.2
1.24.1+dfsg1+llvm-0ubuntu1~16.04.1
1.25.0+dfsg1+llvm-0ubuntu1~16.04.1
1.28.0+dfsg1+llvm-0ubuntu1~16.04.1
1.30.0+dfsg1+llvm-2ubuntu1~16.04.1
1.31.0+dfsg1+llvm-2ubuntu1~16.04.1
1.32.0+dfsg1+llvm-1ubuntu1~16.04.1
1.34.1+dfsg2+llvm-0ubuntu1~16.04.1
1.35.0+dfsg0.1+llvm-0ubuntu1~16.04.1
1.36.0+dfsg1+llvm-2ubuntu1~16.04.1
1.37.0+dfsg1+llvm-1ubuntu1~16.04.1
1.39.0+dfsg1+llvm-3ubuntu1~16.04.1
1.41.0+dfsg1+llvm-0ubuntu1~16.04.1
1.43.0+dfsg1+llvm-1~exp1ubuntu2~16.04.1
1.47.0+dfsg1+llvm-1ubuntu1~16.04.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / rustc

Package

Name
rustc
Purl
pkg:deb/ubuntu/rustc?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.53.0+dfsg1+llvm-4ubuntu1~20.04.1

Affected versions

1.*

1.37.0+dfsg1+llvm-1ubuntu1
1.38.0+dfsg0.2+llvm-0ubuntu1
1.38.0+dfsg0.2+llvm-0ubuntu2
1.39.0+dfsg1+llvm-3ubuntu1
1.40.0+dfsg1+llvm-5ubuntu1
1.41.0+dfsg1+llvm-0ubuntu1
1.41.0+dfsg1+llvm-0ubuntu2
1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1
1.47.0+dfsg1+llvm-1ubuntu1~20.04.1
1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "libstd-rust-1.53"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "libstd-rust-1.53-dbgsym"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "libstd-rust-dev"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rust-all"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rust-clippy"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rust-clippy-dbgsym"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rust-doc"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rust-gdb"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rust-lldb"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rust-src"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rustc"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rustc-dbgsym"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rustfmt"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1~20.04.1",
            "binary_name": "rustfmt-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / rustc

Package

Name
rustc
Purl
pkg:deb/ubuntu/rustc?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.53.0+dfsg1+llvm-4ubuntu1

Affected versions

1.*

1.51.0+dfsg1+llvm-1~exp3ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "libstd-rust-1.53"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "libstd-rust-1.53-dbgsym"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "libstd-rust-dev"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rust-all"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rust-clippy"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rust-clippy-dbgsym"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rust-doc"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rust-gdb"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rust-lldb"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rust-src"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rustc"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rustc-dbgsym"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rustfmt"
        },
        {
            "binary_version": "1.53.0+dfsg1+llvm-4ubuntu1",
            "binary_name": "rustfmt-dbgsym"
        }
    ]
}