UBUNTU-CVE-2023-2977

Source
https://ubuntu.com/security/CVE-2023-2977
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-2977.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2023-2977
Related
Published
2023-06-01T01:15:00Z
Modified
2025-03-12T16:40:15Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardoshaveverifyrcpackage. The attacker can supply a smart card package with malformed ASN1 context. The cardoshaveverifyrcpackage function scans the ASN1 buffer for 2 tags, where remaining length is wrongly caculated due to moved starting pointer. This leads to possible heap-based buffer oob read. In cases where ASAN is enabled while compiling this causes a crash. Further info leak or more damage is possible.

References

Affected packages

Ubuntu:Pro:16.04:LTS / opensc

Package

Name
opensc
Purl
pkg:deb/ubuntu/opensc@0.15.0-1ubuntu1+esm2?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.15.0-1ubuntu1+esm2

Affected versions

0.*

0.15.0-1ubuntu1
0.15.0-1ubuntu1+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.15.0-1ubuntu1+esm2",
            "binary_name": "opensc"
        },
        {
            "binary_version": "0.15.0-1ubuntu1+esm2",
            "binary_name": "opensc-dbgsym"
        },
        {
            "binary_version": "0.15.0-1ubuntu1+esm2",
            "binary_name": "opensc-pkcs11"
        },
        {
            "binary_version": "0.15.0-1ubuntu1+esm2",
            "binary_name": "opensc-pkcs11-dbgsym"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / opensc

Package

Name
opensc
Purl
pkg:deb/ubuntu/opensc@0.17.0-3ubuntu0.1~esm2?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.17.0-3ubuntu0.1~esm2

Affected versions

0.*

0.17.0-1
0.17.0-2
0.17.0-2build1
0.17.0-3
0.17.0-3ubuntu0.1~esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.17.0-3ubuntu0.1~esm2",
            "binary_name": "opensc"
        },
        {
            "binary_version": "0.17.0-3ubuntu0.1~esm2",
            "binary_name": "opensc-dbgsym"
        },
        {
            "binary_version": "0.17.0-3ubuntu0.1~esm2",
            "binary_name": "opensc-pkcs11"
        },
        {
            "binary_version": "0.17.0-3ubuntu0.1~esm2",
            "binary_name": "opensc-pkcs11-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / opensc

Package

Name
opensc
Purl
pkg:deb/ubuntu/opensc@0.20.0-3?arch=source&distro=focal

Affected ranges

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

Affected versions

0.*

0.19.0-2
0.20.0-1
0.20.0-2
0.20.0-3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:20.04:LTS / opensc

Package

Name
opensc
Purl
pkg:deb/ubuntu/opensc@0.20.0-3ubuntu0.1~esm2?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.20.0-3ubuntu0.1~esm2

Affected versions

0.*

0.19.0-2
0.20.0-1
0.20.0-2
0.20.0-3
0.20.0-3ubuntu0.1~esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.20.0-3ubuntu0.1~esm2",
            "binary_name": "opensc"
        },
        {
            "binary_version": "0.20.0-3ubuntu0.1~esm2",
            "binary_name": "opensc-dbgsym"
        },
        {
            "binary_version": "0.20.0-3ubuntu0.1~esm2",
            "binary_name": "opensc-pkcs11"
        },
        {
            "binary_version": "0.20.0-3ubuntu0.1~esm2",
            "binary_name": "opensc-pkcs11-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / opensc

Package

Name
opensc
Purl
pkg:deb/ubuntu/opensc@0.22.0-1ubuntu2?arch=source&distro=jammy

Affected ranges

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

Affected versions

0.*

0.21.0-1ubuntu1
0.22.0-1ubuntu2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:22.04:LTS / opensc

Package

Name
opensc
Purl
pkg:deb/ubuntu/opensc@0.22.0-1ubuntu2+esm1?arch=source&distro=esm-apps/jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.22.0-1ubuntu2+esm1

Affected versions

0.*

0.21.0-1ubuntu1
0.22.0-1ubuntu2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.22.0-1ubuntu2+esm1",
            "binary_name": "opensc"
        },
        {
            "binary_version": "0.22.0-1ubuntu2+esm1",
            "binary_name": "opensc-dbgsym"
        },
        {
            "binary_version": "0.22.0-1ubuntu2+esm1",
            "binary_name": "opensc-pkcs11"
        },
        {
            "binary_version": "0.22.0-1ubuntu2+esm1",
            "binary_name": "opensc-pkcs11-dbgsym"
        }
    ]
}