CVE-2026-40528
published low CVSS 4.0 · 1.0OpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSC | — | OpenSC0 to < 0.27.0 · 0 to < 0358817ec74aeca654f83e7709c7720b14c5db59 · Other versions: affected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3824 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1988 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | openscaarch64 | Advisory build | 0.13.0-3.42.1 | SUSE-SU-2026:5464-1 |
| Amazon Linux | AL2 | openscaarch64 | Listed in advisory | Not stated | ALAS2-2026-3824 |
| SUSE / openSUSE | SLE-12-SP5 | openscppc64le | Advisory build | 0.13.0-3.42.1 | SUSE-SU-2026:5464-1 |
| SUSE / openSUSE | SLE-12-SP5 | openscs390x | Advisory build | 0.13.0-3.42.1 | SUSE-SU-2026:5464-1 |
| SUSE / openSUSE | SLE-12-SP5 | openscx86_64 | Advisory build | 0.13.0-3.42.1 | SUSE-SU-2026:5464-1 |
Show 39 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP4 | openscaarch64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscppc64le | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscs390x | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscx86_64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscaarch64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscppc64le | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscs390x | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscx86_64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscaarch64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscppc64le | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscs390x | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscx86_64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscaarch64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscppc64le | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscs390x | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscx86_64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-5 | openscppc64le | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscaarch64 | Advisory build | 0.26.1-160000.5.1 | OPENSUSE-SU-2026:21873-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscppc64le | Advisory build | 0.26.1-160000.5.1 | OPENSUSE-SU-2026:21873-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscs390x | Advisory build | 0.26.1-160000.5.1 | OPENSUSE-SU-2026:21873-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscx86_64 | Advisory build | 0.26.1-160000.5.1 | OPENSUSE-SU-2026:21873-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opensc-bash-completionnoarch | Advisory build | 0.26.1-160000.5.1 | OPENSUSE-SU-2026:21873-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscaarch64 | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscppc64le | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscs390x | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscx86_64 | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completionaarch64 | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completionppc64le | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completions390x | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completionx86_64 | Advisory build | 0.27.1-2.1 | OPENSUSE-SU-2026:11022-1 |
| Amazon Linux | AL2 | opensci686 | Listed in advisory | Not stated | ALAS2-2026-3824 |
| Amazon Linux | AL2 | openscsrc | Listed in advisory | Not stated | ALAS2-2026-3824 |
| Amazon Linux | AL2 | openscx86_64 | Listed in advisory | Not stated | ALAS2-2026-3824 |
| Amazon Linux | AL2023 | openscaarch64 | Listed in advisory | Not stated | ALAS2023-2026-1988 |
| Amazon Linux | AL2023 | openscsrc | Listed in advisory | Not stated | ALAS2023-2026-1988 |
| Amazon Linux | AL2023 | openscx86_64 | Listed in advisory | Not stated | ALAS2023-2026-1988 |
Description
OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the do_key_value() function in src/pkcs15init/profile.c that allows attackers to corrupt memory by supplying a crafted profile configuration file. During pkcs15-init invocation, a key value entry beginning with '=' followed by more than sizeof(keybuf) characters is copied into keybuf via memcpy without a length check, causing both stack and heap buffer overruns.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 1.0 / 10
- Severity
- low
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.8 | low | VulnCheck · cna | CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSC | OpenSC | 0 to < 0.27.0 (affected · semver)0 to < 0358817ec74aeca654f83e7709c7720b14c5db59 (affected · git)Default: affected | VulnCheck · cna |
Weaknesses
2- CWE-121 Stack-based Buffer Overflow
- CWE-122 Heap-based Buffer Overflow
References
2Provider assertions
2VulnCheck · cna
OpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.c
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e83d1c7272d07c24fcf557ebd0addfff87cca492c3f2ea0715f8ff86cee6d6e9
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record