{"id":"CVE-2021-42780","published":"2022-04-18T00:00:00Z","modified":"2025-11-03T21:45:29Z","title":"A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash…","vendor":null,"product":null,"tier":"tail","description":{"text":"A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02161,"percentile":0.82671,"provenance":"source"},"cwes":[{"id":"CWE-252","name":"Unchecked Return Value"}],"references":[{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28383","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2016139","tags":[]},{"url":"https://github.com/OpenSC/OpenSC/commit/5df913b7","tags":[]},{"url":"https://security.gentoo.org/glsa/202209-03","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html","tags":[]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":16.53}]},"affectedVersions":[{"vendor":"n/a","product":"opensc","versions":["opensc 0.22.0"]}],"euvd":{"id":"EUVD-2021-29736","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-opensc-cve-2018-16426","parents":[{"from":"CVE-2018-16427","to":"CVE-2021-42780","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libopensc/pkcs15-tcos.c"],"commits":["https://github.com/OpenSC/OpenSC/commit/8fe377e93b4b56060e5bbfb6f3142ceaeca744fa","https://github.com/OpenSC/OpenSC/commit/5df913b7f57ad89b9832555d24c08d23a534311e"],"basis":"shared function","functions":["insert_pin"]}]}],"children":[{"from":"CVE-2021-42780","to":"CVE-2021-42782","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libopensc/pkcs15-tcos.c"],"commits":["https://github.com/OpenSC/OpenSC/commit/5df913b7f57ad89b9832555d24c08d23a534311e","https://github.com/OpenSC/OpenSC/commit/78cdab949f098ad7e593d853229fccf57d749d0c","https://github.com/OpenSC/OpenSC/commit/7114fb71b54ddfe06ce5dfdab013f4c38f129d14"],"basis":"rarely changed file"}]}]}}