7.8

CVE-2026-40528: OpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.c

Analyzed
AliasesSUSE-SU-2026:5464-1
Published 29-05-2026Last modified 14-07-2026

Vulnerability summary

CVE-2026-40528 is a high (CVSS 7.8) Stack-based Buffer Overflow vulnerability in opensc_project opensc. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 1, physical access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.19%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 6

Timeline

  1. 29-05-2026
    PublishedVulnerability first disclosed.
  2. 14-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 2 sources · 2 versions

EPSS trend

Probability

0.19%

Chance of exploitation in the next 30 days

Percentile

9%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.19% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: physical access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Suse2 products
  • opensc&distro=SUSE Linux Enterprise Server 12 SP5-LTSS< 0.13.0-3.42.1
  • opensc&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 0.13.0-3.42.1
Opensc1 product
  • opensc< 0.27.0 | < 0358817ec74aeca654f83e7709c7720b14c5db59
Opensc_project1 product

3 vendors · 4 products

References

6 links