CVE-2026-40528: OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the d
CVE-2026-40528 is a low-severity flaw (CVSS 3.8) affecting opensc. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 he
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Last updated 2026-07-21 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40528?
opensc: upgrade to 0.27.0. Exact commands for each OS are on this page.
Is CVE-2026-40528 being exploited?
CVE-2026-40528 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40528 affect?
CVE-2026-40528 affects opensc. Severity is low (CVSS 3.8). 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 configur
How urgent is CVE-2026-40528?
Priority 15/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-40510 LOW 3.8 UPGRADE OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_proce