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.
https://security.gentoo.org/glsa/202209-03
https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html
https://github.com/OpenSC/OpenSC/commit/5df913b7