A double free when handling responses from an HSM Card in sc_pkcs15emu_sc_hsm_init in libopensc/pkcs15-sc-hsm.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.
The product calls free() twice on the same memory address.
Link | Tags |
---|---|
https://github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1 | release notes third party advisory patch |
https://github.com/OpenSC/OpenSC/commit/360e95d45ac4123255a4c796db96337f332160ad#diff-d643a0fa169471dbf2912f4866dc49c5 | third party advisory patch |
https://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/ | third party advisory exploit |
https://lists.debian.org/debian-lts-announce/2019/09/msg00009.html | mailing list |