DEBIAN-CVE-2023-2977

Source
https://security-tracker.debian.org/tracker/CVE-2023-2977
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-2977.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2023-2977
Upstream
Downstream
DLA (2)
Published
2023-06-01T01:15:17Z
Modified
2026-10-21T06:02:15Z
Summary
[none]
Details

A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The attacker can supply a smart card package with malformed ASN1 context. The cardos_have_verifyrc_package 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

Debian:12 / opensc

Package

Name
opensc
Purl
pkg:deb/debian/opensc?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.23.0-0.3

Ecosystem specific

{
    "urgency":  "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-2977.json"

Debian:13 / opensc

Package

Name
opensc
Purl
pkg:deb/debian/opensc?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.23.0-0.3

Ecosystem specific

{
    "urgency":  "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-2977.json"

Debian:14 / opensc

Package

Name
opensc
Purl
pkg:deb/debian/opensc?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.23.0-0.3

Ecosystem specific

{
    "urgency":  "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-2977.json"