OSV-2020-2157 Stack-buffer-overflow in insert_key

Not scored Published

A stack buffer overflow in the OpenSC library allows attackers to cause denial of service or potentially execute code via crafted smart card data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
None listed

What is OSV-2020-2157?

OSV-2020-2157 is a memory corruption vulnerability in opensc, published on 15 Nov 2020.

Official description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27480

Crash type: Stack-buffer-overflow READ 1
Crash state:
insert_key
detect_netkey
sc_pkcs15emu_tcos_init_ex

Which versions are affected by OSV-2020-2157?

1 open source package ship an affected version, including opensc.

PackageAffectedFixed in
opensc OSS-FuzzAll versionsNone

How do I fix OSV-2020-2157?

No fix has been published for OSV-2020-2157 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is OSV-2020-2157 being exploited?

There is no known exploitation of OSV-2020-2157 in the wild and no public exploit code.

Sources

Is OSV-2020-2157 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free