SB2024101467 - Multiple vulnerabilities in OpenSC
Published: October 14, 2024 Updated: April 2, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 7 vulnerabilities.
1) Missing initialization of resource (CVE-ID: CVE-2024-45615)
CWE-ID: CWE-909 - Missing initialization of resource
CVSSv4: CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows an attacker to escalate privileges on the system.
The vulnerability exists due to missing initialization in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker with physical access to the system can 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.
2) Use of uninitialized resource (CVE-ID: CVE-2024-45616)
CWE-ID: CWE-908 - Use of Uninitialized Resource
CVSSv4: CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows an attacker to bypass certain security restrictions.
The vulnerability exists due to usage of uninitialized resources in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker with physical access to the system can 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.
3) Use of uninitialized resource (CVE-ID: CVE-2024-45617)
CWE-ID: CWE-908 - Use of Uninitialized Resource
CVSSv4: CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows an attacker to bypass certain security restrictions.
The vulnerability exists due to usage of uninitialized resources in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker with physical access to the system can 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.
4) Use of uninitialized resource (CVE-ID: CVE-2024-45618)
CWE-ID: CWE-908 - Use of Uninitialized Resource
CVSSv4: CVSS:4.0/AV:P/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows an attacker to bypass certain security restrictions.
The vulnerability exists due to usage of uninitialized resources in pkcs15-init in OpenSC. An attacker with physical access to the system can 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.
5) Use of uninitialized resource (CVE-ID: CVE-2024-45619)
CWE-ID: CWE-908 - Use of Uninitialized Resource
CVSSv4: CVSS:4.0/AV:P/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows an attacker to bypass certain security restrictions.
The vulnerability exists due to usage of uninitialized resources in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker with physical access to the system can 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.
6) Buffer overflow (CVE-ID: CVE-2024-45620)
CWE-ID: CWE-119 - Memory corruption
CVSSv4: CVSS:4.0/AV:P/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows an attacker to bypass implemented security restrictions.
The vulnerability exists due to a boundary error in the pkcs15-init tool in OpenSC. An attacker with physical access to the system can 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.
7) Heap-based buffer overflow (CVE-ID: CVE-2024-8443)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: CVSS:4.0/AV:P/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows an attacker to bypass implemented security restrictions.
The vulnerability exists due to a boundary error in the libopensc OpenPGP driver. An attacker with physical access to the system can use a crafted USB device or smart card with malicious responses to the APDUs during the card enrollment process using the pkcs15-init tool to trigger an out-of-bound rights, possibly resulting in arbitrary code execution.
Remediation
Install update from vendor's website.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2309285
- https://github.com/advisories/GHSA-3q68-hm47-94vg
- https://github.com/OpenSC/OpenSC/releases/tag/0.26.0-rc1
- https://github.com/OpenSC/OpenSC/pull/3225
- https://github.com/OpenSC/OpenSC/security/advisories/GHSA-p3mx-7472-h3j8
- https://bugzilla.redhat.com/show_bug.cgi?id=2309290
- https://github.com/advisories/GHSA-2mjg-798r-mxwh
- https://github.com/OpenSC/OpenSC/security/advisories/GHSA-h5f7-rjr5-vx54
- https://bugzilla.redhat.com/show_bug.cgi?id=2309286
- https://github.com/advisories/GHSA-cf2w-h975-2fpg
- https://bugzilla.redhat.com/show_bug.cgi?id=2309287
- https://github.com/advisories/GHSA-f2v6-mw6x-qmwc
- https://bugzilla.redhat.com/show_bug.cgi?id=2309288
- https://github.com/advisories/GHSA-9vxw-3j77-cj78
- https://bugzilla.redhat.com/show_bug.cgi?id=2309289
- https://github.com/advisories/GHSA-9c2g-6v5v-57qg
- https://bugzilla.redhat.com/show_bug.cgi?id=2310494
- https://github.com/advisories/GHSA-mgc5-p43f-72pc
- https://github.com/OpenSC/OpenSC/pull/3219