CVE-2023-2977 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 con...
HighCVSS 7.1
EPSS 0.29%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/opensc(Debian:12) | < 0.23.0-0.3 | 0.23.0-0.3 |
| debian/opensc(Debian:13) | < 0.23.0-0.3 | 0.23.0-0.3 |
| debian/opensc(Debian:14) | < 0.23.0-0.3 | 0.23.0-0.3 |
| ubuntu/opensc(Ubuntu:22.04) | < 0.22.0-1ubuntu2+esm1 | 0.22.0-1ubuntu2+esm1 |
| opensc project opensc | = 0.23.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux | = 9.0 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:16.04) | < 0.15.0-1ubuntu1+esm2 | 0.15.0-1ubuntu1+esm2 |
| ubuntu/opensc(Ubuntu:Pro:16.04) | = 0.15.0-1ubuntu1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:16.04) | = 0.15.0-1ubuntu1+esm1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:18.04) | < 0.17.0-3ubuntu0.1~esm2 | 0.17.0-3ubuntu0.1~esm2 |
| ubuntu/opensc(Ubuntu:Pro:18.04) | = 0.17.0-1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:18.04) | = 0.17.0-2 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:18.04) | = 0.17.0-2build1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:18.04) | = 0.17.0-3 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:18.04) | = 0.17.0-3ubuntu0.1~esm1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | < 0.20.0-3ubuntu0.1~esm4 | 0.20.0-3ubuntu0.1~esm4 |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.19.0-2 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-2 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3ubuntu0.1~esm1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3ubuntu0.1~esm2 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:20.04) | = 0.20.0-3ubuntu0.1~esm3 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:22.04) | < 0.22.0-1ubuntu2+esm1 | 0.22.0-1ubuntu2+esm1 |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/opensc(Ubuntu:Pro:22.04) | = 0.21.0-1ubuntu1 | No fix listed |
| ubuntu/opensc(Ubuntu:Pro:22.04) | = 0.22.0-1ubuntu2 | No fix listed |
References
- Debian Security Tracker CVE-2023-2977 vendor-advisory
- access.redhat.com third-party-advisory
- bugzilla.redhat.com issue-tracking third-party-advisory
- github.com issue-tracking patch
- github.com issue-tracking patch
- [debian-lts-announce] 20230621 [SECURITY] [DLA 3463-1] opensc security update mailing-list
- FEDORA-2023-29530cc60b vendor-advisory
- FEDORA-2023-2afb831742 vendor-advisory
- lists.debian.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7346-1 vendor-advisory
- USN-7346-3 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking