Bug 2483275 (CVE-2026-40528) - CVE-2026-40528 opensc: OpenSC: Memory corruption via crafted profile configuration file
Summary: CVE-2026-40528 opensc: OpenSC: Memory corruption via crafted profile configur...
Keywords:
Status: NEW
Alias: CVE-2026-40528
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2490261
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-29 14:02 UTC by OSIDB Bzimport
Modified: 2026-06-18 09:41 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-29 14:02:16 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.