CVE-2024-45620 Libopensc: incorrect handling of the length of buffers or files in pkcs15init
An attacker with physical access can exploit incorrect buffer handling in OpenSC's pkcs15init tool via a crafted smart card, potentially leading to memory corruption.
- 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-45620?
CVE-2024-45620 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 the pkcs15-init tool in OpenSC. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. When buffers are partially filled with data, initialized parts of the buffer can be incorrectly accessed.
Weakness: CWE-120
Which versions are affected by CVE-2024-45620?
It affects 2 products.
Products include Opensc Project Opensc, Redhat Enterprise Linux.
How do I fix CVE-2024-45620?
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-45620 being exploited?
There is no known exploitation of CVE-2024-45620 in the wild and no public exploit code.
Other vulnerabilities in Opensc Project Opensc
Sources
Also known as AZL-48711, AZL-48817, BELL-CVE-2024-45620, DEBIAN-CVE-2024-45620, GHSA-9c2g-6v5v-57qg, UBUNTU-CVE-2024-45620.