CVE-2024-45616 Libopensc: uninitialized values after incorrect check or usage of apdu response values in libopensc
Attackers can exploit uninitialized memory in OpenSC via crafted smart card responses, potentially leading to code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-45616?
CVE-2024-45616 is a low-severity memory corruption vulnerability in Opensc Project Opensc, published on 3 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs.
The following problems were caused by insufficient control of the response APDU buffer and its length when communicating with the card.
Which versions are affected by CVE-2024-45616?
It affects 2 products.
Products include Opensc Project Opensc, Redhat Enterprise Linux.
How do I fix CVE-2024-45616?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-45616 being exploited?
There is no known exploitation of CVE-2024-45616 in the wild and no public exploit code.
Other vulnerabilities in Opensc Project Opensc
Sources
Also known as AZL-48721, AZL-48768, BELL-CVE-2024-45616, DEBIAN-CVE-2024-45616, GHSA-2mjg-798r-mxwh, UBUNTU-CVE-2024-45616.